Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext.commands import Bot
- from discord.ext import commands
- import asyncio
- import time
- Client = discord.Client() #Initialise Client
- client = commands.Bot(command_prefix = "?") #Initialise client bot
- @client.event
- async def on_ready():
- print("yooo, monika bot is ready!!!") #This will be called when the bot connects to the server
- @client.event
- async def on_message(message):
- if message.content.startswith('m'):
- if message.content.includes('hello'):
- await client.send_message(message.channel, "hellooo!!!! x3")
- await client.send_message(message.channel, "debug: cmd end")
- return
- client.run("NDM1OTQ2ODc5NDAyOTAxNTA0.DbgWtg.G0qxdoU0FA0nOWDpzOnv2icdA-U")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement