use message nick

This commit is contained in:
Daniel afx 2022-03-24 02:02:57 +02:00
parent 6f8ff2abec
commit 62704394d7

View file

@ -16,7 +16,7 @@ class MyClient(discord.Client):
print('Logged on as', self.user) print('Logged on as', self.user)
async def on_message(self, message): async def on_message(self, message):
print (']' + message.author + '<'+message.content+'>') print (']' + message.author.nick + '<' + message.content + '>')
# don't respond to ourselves # don't respond to ourselves
if message.author == self.user: if message.author == self.user:
return return