Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- client = discord.Client()
- @client.event
- async def on_ready():
- print('Logged in as {}'.format(client))
- @client.event
- async def on_message(message):
- if message.author == client.user:
- return
- if message.content == 'Hello':
- await message.channel.send('Hi')
- client.run(YourToken)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement