Advertisement
Guest User

For Cyber :P

a guest
Mar 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. # testing by Kitt
  2.  
  3. import discord
  4. from discord.ext import commands
  5. from discord.ext.commands import Bot
  6. import asyncio
  7. import chalk
  8.  
  9. bot = commands.Bot(command_prefix='#')
  10.  
  11. @bot.event
  12. async def on_ready():
  13. print ("Ready when you are xd")
  14. print ("I am running on " + bot.user.name)
  15. print ("With the ID: " + bot.user.id)
  16.  
  17. @bot.command(pass_context=True)
  18. async def ping(ctx):
  19. await bot.say(":ping_pong: ping!! xSSS")
  20. print ("user has pinged")
  21.  
  22. @bot.command(pass_context=True)
  23. async def info(ctx, user: discord.Member):
  24. await bot.say("The users name is: {}".format(user.name))
  25. await bot.say("The users ID is: {}".format(user.id))
  26. await bot.say("The users status is: {}".format(user.status))
  27. await bot.say("The users highest role is: {}".format(user.top_role))
  28. await bot.say("The user joined at: {}".format(user.joined_at))
  29.  
  30. @bot.command(pass_context=True)
  31. async def kick(ctx, user: discord.Member):
  32. await bot.say(":boot: Cya, {}. Ya loser!".format(user.name))
  33. await bot.kick(user)
  34.  
  35. bot.run("NDI2MDgyNTkyNTg0ODkyNDE2.DZQz6A.lOFxWKrKjLBzdObrhAnhkdDFwIQ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement