Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import time
  2. import discord
  3. from discord.ext import commands
  4.  
  5. client = commands.Bot(command_prefix= '!')
  6.  
  7. @client.event
  8. async def on_ready():
  9. print("Bot is ready.")
  10. await client.change_presence(status=discord.Status.online, activity=discord.Game('I want die kek'))
  11. @client.event
  12. async def on_member_join(member):
  13. print(f'{member} has joined the server')
  14.  
  15. @client.event
  16. async def on_member_remove(member):
  17. print(f'{member} has left the server')
  18.  
  19. @client.command()
  20. async def ping(ctx):
  21. await ctx.send(f"Pong! ({round(client.latency * 1000)}ms)")
  22.  
  23. @client.command()
  24. async def clear(ctx, amount=10):
  25. await ctx.channel.purge(limit=amount)
  26.  
  27. @client.command()
  28. async def partner(ctx):
  29. await ctx.send(f"```Join MOONLIGHT FOR THE MOST TRUSTED COMMINTIY```https://discord.gg/37jacd")
  30.  
  31.  
  32. client.run("NjIyODY0NDIxMDgxMDU1MjUy.XX6Wlg.HgsLBsYlM4Iz6ZS0E1XwsQlt3J")
  33. #goals as of 9/15. add a timed wait say 1-6 hours to add the partner to the server invite
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement