Advertisement
5m1le

bot

Apr 8th, 2020
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import discord
  2.  
  3. class MyClient(discord.Client):
  4.     async def on_ready(self):
  5.         print('logged on as {0}!'.format(self.user))
  6.  
  7.     async def on_message(self, message):
  8.         print('Message from {0.author}: {0.content}'.format(message))
  9.  
  10. client = MyClient()
  11. client.run('Njk3NDcwMTUyODc4MzI1ODM3.Xo3wPw.N4OpnJJRr-bYaNEfKLTuDK221eI')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement