From 541ad25af24c26430aad3db3a30d43e12494365a Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Wed, 14 Oct 2020 04:33:33 -0400 Subject: [PATCH] Changed Message Sending I changed the send message function I use for the twitch commands. --- commands/implemented/command_roll.py | 4 ++-- commands/implemented/command_test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/implemented/command_roll.py b/commands/implemented/command_roll.py index 97bcfbb..48a87cb 100644 --- a/commands/implemented/command_roll.py +++ b/commands/implemented/command_roll.py @@ -18,7 +18,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta): #twitch_message.chat.send("test acknowledged") diceRoll: str = "" - twitch_message.chat.send("Rolling Dice...") + bot.send_message("Rolling Dice...") print("Rolling Dice...") temp_preParsedMessage = twitch_message.text.split("+") @@ -63,4 +63,4 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta): diceRoll = "@" + twitch_message.sender + " rolled: " + diceRoll print(diceRoll) - twitch_message.chat.send(diceRoll) \ No newline at end of file + bot.send_message(diceRoll) \ No newline at end of file diff --git a/commands/implemented/command_test.py b/commands/implemented/command_test.py index d6fb5a5..1432e14 100644 --- a/commands/implemented/command_test.py +++ b/commands/implemented/command_test.py @@ -14,4 +14,4 @@ class CommandTest(AbstractCommand, metaclass=ABCMeta): def do_command(self, bot, twitch_message): print("!test Detected") - twitch_message.chat.send("test acknowledged") + bot.send_message("testing acknowledged")