Advertisement
Guest User

CodeProblem

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