aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorziro <palembani@gmail.com>2020-08-05 05:33:41 +0000
committerziro <palembani@gmail.com>2020-08-05 05:33:41 +0000
commit96f76a593e6460b890465c4cc33d9c4071d75231 (patch)
tree9a0d50b8ceee938df795be2003d42d38e8cbdce5 /bot.py
parentdbc3db1f273ec42e20227368705b77bf690ba5a8 (diff)
downloadsteve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar.gz
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar.bz2
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar.lz
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar.xz
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.tar.zst
steve-bot-96f76a593e6460b890465c4cc33d9c4071d75231.zip
+ Automatically add role "Member" to new member
Diffstat (limited to 'bot.py')
-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)