18 lines
504 B
Python
18 lines
504 B
Python
from abc import ABCMeta
|
|
|
|
import twitch.chat
|
|
|
|
from commands.command_base import AbstractCommand
|
|
from twitch_script import Twitch_Module
|
|
|
|
|
|
class CommandTest(AbstractCommand, metaclass=ABCMeta):
|
|
command = "!test"
|
|
|
|
def __init__(self):
|
|
super().__init__(CommandTest.command, command_type=AbstractCommand.CommandType.TWITCH)
|
|
|
|
def do_command(self, bot: Twitch_Module, twitch_message: twitch.chat.Message):
|
|
print("!test Detected")
|
|
twitch_message.chat.send("test acknowledged")
|