use message nick
This commit is contained in:
parent
6f8ff2abec
commit
62704394d7
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -16,7 +16,7 @@ class MyClient(discord.Client):
|
|||
print('Logged on as', self.user)
|
||||
|
||||
async def on_message(self, message):
|
||||
print (']' + message.author + '<'+message.content+'>')
|
||||
print (']' + message.author.nick + '<' + message.content + '>')
|
||||
# don't respond to ourselves
|
||||
if message.author == self.user:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue