Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. #narwhalter by snoopus
  2.  
  3. import discord
  4. from discord.ext import commands
  5. from discord.ext.commands import Bot
  6. import asyncio
  7.  
  8.  
  9. bot = commands.Bot(command_prefix='!n ')
  10.  
  11. print (discord.__version__)
  12.  
  13. @bot.event
  14. async def on_ready():
  15. print ("ready u hecc")
  16. print ("i am running on" + bot.user.name)
  17. print ("with the id;" + bot.user.id)
  18.  
  19. @bot.command(passcontext=True)
  20. async def ping(ctx):
  21. await bot.say("pong")
  22. print ("user has pinged")
  23.  
  24. @bot.command(pass_context=True)
  25. async def info(ctx, user: discord.Member):
  26. await bot.say("The users name is: {}".format(user.name))
  27. await bot.say("The users ID is: {}".format(user.id))
  28. await bot.say("The users status is: {}".format(user.status))
  29. await bot.say("The users highest role is: {}".format(user.top_role))
  30. await bot.say("The user joined at: {}".format(user.joined_at))
  31.  
  32. @bot.command(pass_context=True)
  33. async def kick(ctx, user: discord.Member):
  34. await bot.say(":boot: Cya {}. Ya Looser!".format(user.name))
  35. await bot.kick(user)
  36.  
  37.  
  38. @bot.command(pass_context=True)
  39. async def embed(ctx):
  40. embed = discord.Embed(title="test", description="dab on haters", color=0x00ff00)
  41. embed.set_footer(text="this is a footer")
  42. embed.set_author(name="Snoopus")
  43. embed.add_field(name="this is a field", value="no it isnt", inline=True)
  44. await bot.say(embed=embed)
  45.  
  46.  
  47. @bot.command(pass_context=True)
  48. async def narwhalter(ctx):
  49. embed = discord.Embed(title="Gib Narwhalter pics", description="https://drive.google.com/drive/folders/1ibAXVqhVuTnvxTNJooe7s7Qpi5DpDCVp?usp=sharing", color=0x00FFFF)
  50. embed.set_footer(text="Made by Snoopus")
  51. embed.set_author(name="Snoopus")
  52. embed.add_field(name="this is a field", value="no it isnt", inline=True)
  53. await bot.say(embed=embed)
  54.  
  55. @bot.command(pass_context=True)
  56. async def speak(ctx):
  57. await bot.say("no u")
  58.  
  59. @bot.command(pass_context=True)
  60. async def worms(ctx):
  61. await bot.say("how do they eat? how to they reproduce? how do they know how to reproduce if they cant see?")
  62.  
  63.  
  64. @bot.command(pass_context=True)
  65. async def marinara(ctx):
  66. await bot.say("is marinara spagetti sauce? or is it a not all rectangles are squares situation")
  67.  
  68. @bot.command(pass_context=True)
  69. async def whatis(ctx):
  70. await bot.say("this command aint done yet ok")
  71.  
  72. @bot.command(pass_context=True)
  73. async def whattimeisit(ctx):
  74. await bot.say(":ramen: :watch: https://imgur.com/pD3t2ME")
  75.  
  76.  
  77. @bot.command(pass_context=True)
  78. async def commandslist(ctx):
  79. embed = discord.Embed(title="Commands", description="I don't know how to make a website to show these commands so here u go", color=0x00ff00)
  80. embed.set_footer(text="Made by Snoopus")
  81. embed.set_author(name="Commands")
  82. embed.add_field(name="Heres the list", value="narwhalter, speak, worms, marinara, drawings, whattimeisit, whatis", inline=True)
  83. await bot.say(embed=embed)
  84.  
  85. @bot.command(pass_context=True)
  86. async def drawings(ctx):
  87. embed = discord.Embed(title="link to snoopus' world renowned drawings", description="https://drive.google.com/drive/folders/1GlK3PzfYceZ-1Hi6xk2ZhX9yNdZcylIR?usp=sharing", color=0xE8FF00)
  88. embed.set_footer(text="Made by Snoopus")
  89. await bot.say(embed=embed)
  90.  
  91.  
  92.  
  93. bot.run("token here")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement