Compare commits

...

3 Commits

Author SHA1 Message Date
Alex Orid
cef938b10d Fixed Linux Restart Command 2020-12-09 05:48:58 -05:00
Alex Orid
c574b4cd14 Deleted Spaces 2020-12-08 21:28:37 -05:00
Alex Orid
b9a28a503c Changed prefix 2020-12-08 21:28:06 -05:00
5 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
import utilities_script as utilities
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
command = "//restart"
command = "!restart"
def __init__(self):
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)

View File

@ -22,7 +22,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
async def do_command(self, bot, discord_message: discord.Message):
print("!roll Detected")
#twitch_message.chat.send("test acknowledged")
diceRoll: str = ""
await bot.send_message(discord_message, "Rolling Dice...")
#await discord_message.channel.send("Rolling Dice...")
@ -68,7 +68,6 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
else:
diceRoll = str(roll)
diceRoll = discord_message.author.mention + " rolled: " + diceRoll
print(diceRoll)
await bot.send_message(discord_message, diceRoll)

View File

@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
import utilities_script as utilities
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
command = "//shutdown"
command = "!shutdown"
def __init__(self):
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)

View File

@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
command = "//tts"
command = "!tts"
def __init__(self):
super().__init__(CommandTTS.command, n_args=1, command_type=AbstractCommand.CommandType.TWITCH)

View File

@ -25,7 +25,7 @@ def restart_self():
os.system('start cmd /k python main.py')
hard_shutdown()
if platform.system() == 'Linux':
os.system('python main.py')
os.system('xfce4-terminal -e "python main.py"')
hard_shutdown()
#os.system('python twitch_script.py')