Advertisement
Guest User

w0ndera monstra bots

a guest
Jun 19th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 KB | None | 0 0
  1. import discord
  2. from discord.ext import commands
  3. import asyncio
  4. import youtube_dl
  5. TOKEN = ''
  6.  
  7. client = commands.Bot(command_prefix = '!')
  8.  
  9. @client.event
  10. async def on_ready():
  11. print('Bot is ready')
  12.  
  13.  
  14.  
  15.  
  16.  
  17. #################################################################!kick,!ban, !mute################################################################################################
  18.  
  19. @client.command()
  20. @commands.has_permissions(manage_messages=True)
  21. async def clear(self, ctx, amount: int):
  22. await ctx.channel.purge(limit=amount + 1)
  23. await ctx.send(f"{amount} messages got deleted")
  24.  
  25. @client.command()
  26. @commands.has_permissions(kick_members=True)
  27. async def kick(ctx, member: discord.Member=None):
  28. if not member:
  29. await ctx.send("please specify a member")
  30. return
  31. await member.kick()
  32. await ctx.send("The user has been kicked")
  33.  
  34. @client.command()
  35. @commands.has_permissions(ban_members=True)
  36. async def ban(ctx, member: discord.Member=None, reason = None):
  37. if not member:
  38. await ctx.send("please specify a member")
  39. return
  40. if reason == None:
  41. reason = "For no reason."
  42. message = f"You have been banned from {ctx.guild.name} for {reason}"
  43. await member.send(message)
  44. await member.ban()
  45. await ctx.send(f"{member.mention} got banned for {reason}")
  46.  
  47.  
  48. @client.command()
  49. @commands.has_permissions(manage_roles=True)
  50. async def mute(ctx, member: discord.Member=None):
  51. role = discord.utils.get(ctx.guild.roles, name="Muted")
  52. if not member:
  53. await ctx.send("Please specify a member")
  54. return
  55. await member.add_roles(role)
  56. await ctx.send("User has been muted")
  57.  
  58. @client.command()
  59. @commands.has_permissions(manage_roles=True)
  60. async def unmute(ctx, member: discord.Member=None):
  61. role = discord.utils.get(ctx.guild.roles, name="Muted")
  62. if not member:
  63. await ctx.send("Please specify a member")
  64. return
  65. await member.remove_roles(role)
  66. await ctx.send("User has been unmuted")
  67.  
  68. @client.command()
  69. @commands.has_permissions(kick_members=True)
  70. async def userinfo(ctx, member: discord.Member):
  71.  
  72.  
  73. roles = [role for role in member.roles]
  74.  
  75.  
  76. embed = discord.Embed(colour=member.colour, timestamp=ctx.message.created_at)
  77.  
  78. embed.set_author(name=f"User info - {member}")
  79. embed.set_thumbnail(url=member.avatar_url)
  80. embed.set_footer(text=f"requested by {ctx.author}", icon_url=ctx.author.avatar_url)
  81.  
  82. embed.add_field(name="ID", value=member.id)
  83. embed.add_field(name="Guild name:", value=member.display_name)
  84.  
  85. embed.add_field(name="Created at:", value=member.created_at.strftime("%a, %#d %B %Y, %I:%M %p UTC"))
  86. embed.add_field(name="Joined at:", value=member.joined_at.strftime("%a, %#d %B %Y, %I:%M %p UTC"))
  87. await ctx.send(embed=embed)
  88.  
  89. ################################################################################################errors###################################################################################################################
  90.  
  91. #####################################################################################################################################################################################
  92.  
  93. @client.command()
  94. async def ahri(ctx):
  95. embed = discord.Embed(title='Ahri Guide', description='LAST UPDATED: 20/03/2019 :white_check_mark: ')
  96. embed.colour = 0x880003
  97. embed.set_image(url='https://media.discordapp.net/attachments/556521044408795149/558045339412725780/ahri.PNG')
  98.  
  99. await ctx.send(embed=embed)
  100.  
  101. @client.command()
  102. async def akali(ctx):
  103. embed = discord.Embed(title='Akali Guide', description='LAST UPDATED: 20/03/2019 :white_check_mark: ')
  104. embed.colour = 0x880003
  105. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045350238224399/akali.PNG')
  106.  
  107. await ctx.send(embed=embed)
  108.  
  109. @client.command()
  110. async def ashe(ctx):
  111. embed = discord.Embed(title='Ashe Guide', description='LAST UPDATED: 20/03/2019 :white_check_mark: ')
  112. embed.colour = 0x880003
  113. embed.set_image(url='https://media.discordapp.net/attachments/556521044408795149/558045344592691211/ashe.PNG')
  114.  
  115. await ctx.send(embed=embed)
  116.  
  117. @client.command()
  118. async def darius(ctx):
  119. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  120. embed.colour = 0xFFFFFF
  121. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045347872636964/darius.PNG')
  122.  
  123. await ctx.send(embed=embed)
  124.  
  125. @client.command()
  126. async def draven(ctx):
  127. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  128. embed.colour = 0xFFFFFF
  129. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045358425505793/draven.PNG')
  130.  
  131. await ctx.send(embed=embed)
  132.  
  133. @client.command()
  134. async def jhin(ctx):
  135. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark: ')
  136. embed.colour = 0xFFFFFF
  137. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045376662470690/jhin.PNG')
  138.  
  139. await ctx.send(embed=embed)
  140.  
  141. @client.command()
  142. async def jinx(ctx):
  143. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  144. embed.colour = 0xFFFFFF
  145. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045379300425746/jinx.PNG')
  146.  
  147. await ctx.send(embed=embed)
  148.  
  149. @client.command()
  150. async def katarina(ctx):
  151. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  152. embed.colour = 0xFFFFFF
  153. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045369716441098/katarina.PNG')
  154.  
  155. await ctx.send(embed=embed)
  156.  
  157. @client.command()
  158. async def lux(ctx):
  159. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  160. embed.colour = 0xFFFFFF
  161. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045373143187486/lux.PNG')
  162.  
  163. await ctx.send(embed=embed)
  164.  
  165. @client.command()
  166. async def master_yi(ctx):
  167. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  168. embed.colour = 0xFFFFFF
  169. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045379405414441/master_yi.PNG')
  170.  
  171. await ctx.send(embed=embed)
  172.  
  173. @client.command()
  174. async def riven(ctx):
  175. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  176. embed.colour = 0xFFFFFF
  177. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045383457112105/riven.PNG')
  178.  
  179. await ctx.send(embed=embed)
  180.  
  181. @client.command()
  182. async def teemo(ctx):
  183. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  184. embed.colour = 0xFFFFFF
  185. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045385604726784/teemo.PNG')
  186.  
  187. await ctx.send(embed=embed)
  188.  
  189. @client.command()
  190. async def vayne(ctx):
  191. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  192. embed.colour = 0xFFFFFF
  193. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045387156357141/Vayne.PNG')
  194.  
  195. await ctx.send(embed=embed)
  196.  
  197. @client.command()
  198. async def veigar(ctx):
  199. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  200. embed.colour = 0xFFFFFF
  201. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045388804849664/veigar.PNG')
  202.  
  203. await ctx.send(embed=embed)
  204.  
  205. @client.command()
  206. async def vi(ctx):
  207. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  208. embed.colour = 0xFFFFFF
  209. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045322849550336/Vi.PNG')
  210.  
  211. await ctx.send(embed=embed)
  212.  
  213. @client.command()
  214. async def xin(ctx):
  215. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  216. embed.colour = 0xFFFFFF
  217. embed.set_image(url='https://media.discordapp.net/attachments/556521044408795149/558045326993391617/xin.PNG')
  218.  
  219. await ctx.send(embed=embed)
  220.  
  221. @client.command()
  222. async def yasuo(ctx):
  223. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  224. embed.colour = 0xFFFFFF
  225. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045361537810433/yasuo.PNG')
  226.  
  227. await ctx.send(embed=embed)
  228.  
  229. @client.command()
  230. async def yorick(ctx):
  231. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  232. embed.colour = 0xFFFFFF
  233. embed.set_image(url='https://cdn.discordapp.com/attachments/556521044408795149/558045366621044739/Yorick.PNG')
  234.  
  235. await ctx.send(embed=embed)
  236.  
  237. @client.command()
  238. async def zoe(ctx):
  239. embed = discord.Embed(title='Test Embed', description='LAST UPDATED: 20/03/2019 :white_check_mark:')
  240. embed.colour = 0xFFFFFF
  241. embed.set_image(url='https://media.discordapp.net/attachments/556521044408795149/558045339534360585/zoe.PNG')
  242.  
  243. await ctx.send(embed=embed)
  244.  
  245. client.run(TOKEN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement