Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import discord
  2. from discord.ext.commands import Bot
  3. from discord.ext import commands
  4. import asyncio
  5. import time
  6.  
  7.  
  8. Client = discord.Client() #Initialise Client
  9. client = commands.Bot(command_prefix = "?") #Initialise client bot
  10.  
  11.  
  12. @client.event
  13. async def on_ready():
  14. print("yooo, monika bot is ready!!!") #This will be called when the bot connects to the server
  15.  
  16. @client.event
  17. async def on_message(message):
  18. if message.content.startswith('m'):
  19. if message.content.includes('hello'):
  20. await client.send_message(message.channel, "hellooo!!!! x3")
  21. await client.send_message(message.channel, "debug: cmd end")
  22. return
  23.  
  24. client.run("NDM1OTQ2ODc5NDAyOTAxNTA0.DbgWtg.G0qxdoU0FA0nOWDpzOnv2icdA-U")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement