Update connect_discord.py

This commit is contained in:
AskDavis
2023-05-20 18:10:34 -07:00
committed by GitHub
parent 830a1bb55a
commit 7a6e14bdb1

View File

@@ -9,7 +9,7 @@ logging.basicConfig(level=logging.INFO)
discord_token=os.getenv('DISCORD_TOKEN')
class MyClient(discord.Client):
async def on_ready(self):
logging.info('Logged in as: ', self.user)
logging.info('Logged in as: ', self.name)
async def on_message(self, message):
logging.info('Message from {0.author}: {0.content}'.format(message))
if message.author == client.user: