Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- class MyClient(discord.Client):
- async def on_ready(self):
- print('logged on as {0}!'.format(self.user))
- async def on_message(self, message):
- print('Message from {0.author}: {0.content}'.format(message))
- client = MyClient()
- client.run('Njk3NDcwMTUyODc4MzI1ODM3.Xo3wPw.N4OpnJJRr-bYaNEfKLTuDK221eI')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement