Compare commits
No commits in common. "cef938b10d4c29e9435dbe4ccbee92c4c8c15f95" and "f7e33651166ff0109a77fb7156a2819acd3e703b" have entirely different histories.
cef938b10d
...
f7e3365116
@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
|
|||||||
import utilities_script as utilities
|
import utilities_script as utilities
|
||||||
|
|
||||||
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
||||||
command = "!restart"
|
command = "//restart"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)
|
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)
|
||||||
|
|||||||
@ -68,6 +68,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
|
|||||||
else:
|
else:
|
||||||
diceRoll = str(roll)
|
diceRoll = str(roll)
|
||||||
|
|
||||||
|
|
||||||
diceRoll = discord_message.author.mention + " rolled: " + diceRoll
|
diceRoll = discord_message.author.mention + " rolled: " + diceRoll
|
||||||
print(diceRoll)
|
print(diceRoll)
|
||||||
await bot.send_message(discord_message, diceRoll)
|
await bot.send_message(discord_message, diceRoll)
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
|
|||||||
import utilities_script as utilities
|
import utilities_script as utilities
|
||||||
|
|
||||||
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
||||||
command = "!shutdown"
|
command = "//shutdown"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)
|
super().__init__(CommandTTS.command, n_args=0, command_type=AbstractCommand.CommandType.TWITCH)
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from commands.command_base import AbstractCommand
|
|||||||
|
|
||||||
|
|
||||||
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
||||||
command = "!tts"
|
command = "//tts"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(CommandTTS.command, n_args=1, command_type=AbstractCommand.CommandType.TWITCH)
|
super().__init__(CommandTTS.command, n_args=1, command_type=AbstractCommand.CommandType.TWITCH)
|
||||||
|
|||||||
@ -57,15 +57,10 @@ class Discord_Module(discord.Client):
|
|||||||
#print(str(message.id))
|
#print(str(message.id))
|
||||||
#print(str(message.channel.id))
|
#print(str(message.channel.id))
|
||||||
if message.content == "//test":
|
if message.content == "//test":
|
||||||
#pass
|
pass
|
||||||
await message.channel.send('test response')
|
#await message.channel.send('test response')
|
||||||
#test = self.get_channel(431129571308339210)
|
#test = self.get_channel(431129571308339210)
|
||||||
#await test.send("testerino")
|
#await test.send("testerino")
|
||||||
temp = message.channel.last_message
|
|
||||||
delayTime:float = 3
|
|
||||||
await message.delete(delay=delayTime)
|
|
||||||
await temp.delete(delay=delayTime)
|
|
||||||
|
|
||||||
|
|
||||||
if not await self.isSenderBot(message):
|
if not await self.isSenderBot(message):
|
||||||
# This will check for the praxis_bot-tts channel and will TTS stuff from there.
|
# This will check for the praxis_bot-tts channel and will TTS stuff from there.
|
||||||
|
|||||||
@ -25,7 +25,7 @@ def restart_self():
|
|||||||
os.system('start cmd /k python main.py')
|
os.system('start cmd /k python main.py')
|
||||||
hard_shutdown()
|
hard_shutdown()
|
||||||
if platform.system() == 'Linux':
|
if platform.system() == 'Linux':
|
||||||
os.system('xfce4-terminal -e "python main.py"')
|
os.system('python main.py')
|
||||||
hard_shutdown()
|
hard_shutdown()
|
||||||
|
|
||||||
#os.system('python twitch_script.py')
|
#os.system('python twitch_script.py')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user