Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext import commands
- client = commands.Bot(command_prefix = '!')
- @client.event
- async def on_ready():
- print("bot is ready")
- @client.command()
- async def ping(ctx):
- await ctx.send(f'!Pong')
- @client.command(aliases= ['suggest'])
- async def purgy(ctx):
- mgs = []
- async for x in client.logs_from(ctx.message.channel, limit = 2):
- mgs.append(x)
- await client.delete_messages(mgs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement