Experimental Discord bot written in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rocketbot.py 352B

1234567891011121314151617
  1. import discord
  2. client = discord.Client()
  3. @client.event
  4. async def on_ready():
  5. print('We have logged in as {0.user}'.format(client))
  6. @client.event
  7. async def on_message(message):
  8. if message.author == client.user:
  9. return
  10. if message.content.startswith('$hello'):
  11. await message.channel.send('Hello!')
  12. client.run('bot token')