aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot.py b/bot.py
index c2ff74d..634605a 100644
--- a/bot.py
+++ b/bot.py
@@ -48,7 +48,8 @@ class ziBot(commands.Bot):
command = message.content.split()[0]
except IndexError:
pass
- print('Message from {0.author}: {0.content} on {0.channel}'.format(message))
+ self.logger.warning('Message from {message.author}: {message.content} \n on {message.channel}')
+ print('Message from {0.author}: {0.content} \n on {0.channel}'.format(message))
def run(self):
super().run(self.config["token"], reconnect=True)