Advertisement
Guest User

Untitled

a guest
Oct 6th, 2018
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.80 KB | None | 0 0
  1. import discord
  2. import datetime
  3. from discord.ext import commands
  4. from discord.ext.commands import BucketType
  5. from discord.ext.commands import Bot
  6. from discord.utils import get
  7. import random
  8. import asyncio
  9. import time
  10.  
  11.  
  12. uptime = datetime.datetime.utcnow()
  13. Client = discord.Client()
  14. bot = commands.Bot(command_prefix='$')
  15. bot.remove_command('help')
  16. lines = open(r'creepybot.txt').read().splitlines()
  17.  
  18. owner = ["244169411026485259"]
  19.  
  20.  
  21. @bot.event
  22. async def on_ready():
  23. print("The CreepyBot is online!")
  24. await bot.change_presence(game=discord.Game(name='Currently on ' + str(len(bot.servers)) +
  25. ' servers', type=2))
  26.  
  27.  
  28. @bot.command(pass_context = True)
  29. @commands.has_any_role('staff')
  30. async def ban(member: discord.Member, days: int = 1000):
  31. await bot.ban(member, days)
  32.  
  33. @bot.command()
  34. async def invite():
  35. """Bot Invite"""
  36. await bot.say("\U0001f44d")
  37. await bot.whisper("Add me with this link {}".format(discord.utils.oauth_url(467728819835371540)))
  38.  
  39. @bot.command(pass_context=True, hidden=True)
  40. async def setname(ctx, *, name):
  41. if ctx.message.author.id not in owner:
  42. return
  43. name = name.strip()
  44. if name != "":
  45. try:
  46. await bot.edit_profile(username=name)
  47. except:
  48. await bot.say("Failed to change name")
  49. else:
  50. await bot.say("Successfuly changed name to {}".format(name))
  51. else:
  52. await bot.send_cmd_help(ctx)
  53.  
  54. @bot.command(pass_context=True, hidden=True)
  55. async def setgame(ctx, *, game):
  56. if ctx.message.author.id not in owner:
  57. return
  58. game = game.strip()
  59. if game != "":
  60. try:
  61. await bot.change_presence(game=discord.Game(name=game))
  62. except:
  63. await bot.say("Failed to change game")
  64. else:
  65. await bot.say("Successfuly changed game to {}".format(game))
  66. else:
  67. await bot.send_cmd_help(ctx)
  68.  
  69. @bot.command(pass_context = True)
  70. @commands.has_any_role('Special Role')
  71. async def leave(ctx):
  72. await bot.send_message(ctx.message.author, "to invite me back copy this link (https://discordapp.com/api/oauth2/authorize?client_id=467728819835371540&permissions=0&scope=bot)")
  73. await asyncio.sleep(2)
  74. toleave = bot.get_server(ctx.message.server.id)
  75. await bot.leave_server(toleave)
  76.  
  77. @bot.command(pass_context = True)
  78. async def bans(ctx):
  79. x = await bot.get_bans(ctx.message.server)
  80. x = '\n'.join([y.name for y in x])
  81. embed = discord.Embed(title = "Those who got banned",
  82. description = x, color = 0xFFFFF)
  83. return await bot.say(embed = embed)
  84.  
  85. @bot.event
  86. async def on_message(message):
  87. if 'vote' in message.content.lower():
  88. await bot.add_reaction(message, '\U0001f1fe')
  89. await bot.add_reaction(message, '\U0001f1f3')
  90. await bot.send_message(message.channel, ':regional_indicator_y: for yes :regional_indicator_n: for no')
  91. await bot.process_commands(message)
  92.  
  93.  
  94.  
  95. @bot.command()
  96. async def square(number):
  97. squared_value = int(number) * int(number)
  98. await bot.say(str(number) + " squared is " + str(squared_value))
  99.  
  100. @bot.command(name='8ball',
  101. description="Answers a yes/no question.",
  102. brief="Answers from the beyond.",
  103. aliases=['eight_ball', 'eightball', '8-ball'],
  104. pass_context=True)
  105. async def eight_ball(context):
  106. possible_responses = [
  107. 'That is a resounding no',
  108. 'It is not looking likely',
  109. 'Too hard to tell',
  110. 'It is quite possible',
  111. 'Definitely',
  112. ]
  113. await bot.say(random.choice(possible_responses) + ", " + context.message.author.mention)
  114.  
  115.  
  116.  
  117. @bot.command(pass_context=True)
  118. async def serverinfo(ctx):
  119. server = ctx.message.server
  120. roles = [x.name for x in server.role_hierarchy]
  121. role_length = len(roles)
  122.  
  123. if role_length > 50:
  124. roles = roles[:50]
  125. roles.append('>>>> [50/%s] Roles'%len(roles))
  126.  
  127. roles = ', '.join(roles);
  128. channelz = len(server.channels);
  129. time = str(server.created_at); time = time.split(' '); time= time[0];
  130.  
  131. join = discord.Embed(description= '%s '%(str(server)),title = 'Server Name', colour = 0xFFFF);
  132. join.set_thumbnail(url = server.icon_url);
  133. join.add_field(name = '__Owner__', value = str(server.owner) + '\n' + server.owner.id);
  134. join.add_field(name = '__ID__', value = str(server.id))
  135. join.add_field(name = '__Member Count__', value = str(server.member_count));
  136. join.add_field(name = '__Text/Voice Channels__', value = str(channelz));
  137. join.add_field(name = '__Roles (%s)__'%str(role_length), value = roles);
  138. join.set_footer(text ='Created: %s'%time);
  139.  
  140. return await bot.say(embed = join);
  141.  
  142. @bot.command(pass_context=True, no_pm=True)
  143. async def avatar(ctx, member: discord.Member):
  144. """User Avatar"""
  145. await bot.reply("{}".format(member.avatar_url))
  146.  
  147. @bot.command(description='Choices')
  148. async def choose(*choices : str):
  149. await bot.say(random.choice(choices))
  150.  
  151. @bot
  152.  
  153. @bot.command(pass_context=True)
  154. async def Money(ctx):
  155. edit = await bot.say("Calculating how many i earn :moneybag: give me 3 seconds")
  156. await asyncio.sleep(3)
  157. await bot.edit_message(edit, "200 SRD that is 26.82 USD each month")
  158.  
  159.  
  160. @bot.command(pass_context = True)
  161. async def flip(ctx):
  162. Special = 'Special'
  163. flip = random.choice (['Heads','Tails', Special])
  164. await bot.send_message(ctx.message.channel, flip)
  165.  
  166. @bot.command(pass_context=True)
  167. async def yt(ctx, url: str):
  168. url = ctx.message.content
  169. url = name.strip('!yt ')
  170.  
  171. author = ctx.message.author
  172. voice_channel = author.voice_channel
  173. vc = await bot.join_voice_channel(voice_channel)
  174.  
  175. player = await vc.create_ytdl_player(url)
  176. player.start()
  177.  
  178. @bot.event
  179. async def on_reaction_add(reaction, user):
  180. if reaction.me == True:
  181. if user.id != '495319988056489986':
  182. if reaction.emoji == '\U00002705':
  183. embed=discord.Embed(title="Help", description="------------", color=0x7100e1)
  184. embed.set_author(name=" This Is The Second Help")
  185. embed.add_field(name='1. $Cat', value='------------', inline=False)
  186. embed.add_field(name='2. $Ghost', value='------------', inline=True)
  187. embed.add_field(name='3. $add (*numbers) (example: if you do %add 4 1 bot will do the math it will add the plus between the 2 numbers and it will say 5)', value='Done', inline=False)
  188. embed.add_field(name='4. $minus (same as %add only it does minus)', value='------------', inline=True)
  189. embed.add_field(name='5. $times (same as %add only it does times)', value='------------', inline=True)
  190. embed.add_field(name='6. $joined_at (Membername))', value='------------', inline=False)
  191. embed.add_field(name='react with :x: to go back to help 1', value='done', inline=True)
  192. msg = await bot.send_message(reaction.message.channel, embed=embed)
  193. await bot.add_reaction(msg, '\U0000274c')
  194. elif reaction.emoji == '\U0000274c':
  195. embed=discord.Embed(title="Help", description="------------", color=0x7100e1)
  196. embed.set_author(name="Welcome Back To Help 1")
  197. embed.add_field(name='1. $sudo text', value='------------', inline=False)
  198. embed.add_field(name='2. $botuptime', value='------------', inline=True)
  199. embed.add_field(name='3. $info @user/$serverinfo', value='------------', inline=False)
  200. embed.add_field(name='react with :white_check_mark: to read more', value='done', inline=False)
  201. msg = await bot.send_message(reaction.message.channel, embed=embed)
  202. await bot.add_reaction(msg, '\U00002705')
  203.  
  204. @bot.command()
  205. async def add(a: int, b: int):
  206. await bot.say(a+b)
  207.  
  208. @bot.command()
  209. async def minus(a: int, b: int):
  210. await bot.say(a-b)
  211.  
  212. @bot.command()
  213. async def times(a: int, b:int):
  214. await bot.say(a*b)
  215.  
  216. @bot.command()
  217. async def divide(a: int, b:int):
  218. await bot.say(a^b)
  219.  
  220.  
  221.  
  222.  
  223. @bot.command(pass_context=True)
  224. async def DoneReadingRules(ctx):
  225. await bot.delete_message(ctx.message)
  226. await bot.say("Really?")
  227. await bot.add_reaction(message, '\U0001f44d')
  228. await bot.add_reaction(message, '\U0001f44e')
  229.  
  230. @bot.command(pass_context=True)
  231. @commands.cooldown(1, 50, commands.BucketType.user)
  232. async def Cat(ctx):
  233. await bot.delete_message(ctx.message)
  234. Picture = ["https://i.imgur.com/xFmNXWj.png", "https://i.imgur.com/5Y1OScF.png", "https://i.imgur.com/vv6Su8d.png", "https://i.imgur.com/CLANTSt.png", "https://i.imgur.com/FbrsPBT.png", "https://i.imgur.com/mfQGRLb.png", "https://i.imgur.com/vBIpg9l.png", "https://i.imgur.com/lUp0L3C.png", "https://i.imgur.com/yzHZBWz.png", "https://i.imgur.com/YbINCvc.png", "https://i.imgur.com/UryZYf3.png", "https://i.imgur.com/e0D1ORV.png", "https://i.imgur.com/pWHdHxO.png", "https://i.imgur.com/t6nE65v.png", "https://i.imgur.com/Yp2b9tD.png", "https://i.imgur.com/skURKzI.png", "https://i.imgur.com/4PhUY5b.png"]
  235. await bot.send_message(ctx.message.channel, random.choice(Picture))
  236.  
  237. @bot.command(pass_context=True)
  238. async def ping(ctx):
  239. channel = ctx.message.channel
  240. t1 = time.perf_counter()
  241. await bot.send_typing(channel)
  242. t2 = time.perf_counter()
  243. embed=discord.Embed(title="Pong", description='Ping: {}'.format(round((t2-t1)*1000)), color=0x2874A6)
  244. await bot.say(embed=embed)
  245.  
  246.  
  247.  
  248. def get_uptime(brief=False):
  249. now = datetime.datetime.utcnow()
  250. delta = now - uptime
  251. hours, remainder = divmod(int(delta.total_seconds()), 3600)
  252. minutes, seconds = divmod(remainder, 60)
  253. days, hours = divmod(hours, 24)
  254. if not brief:
  255. if days:
  256. fmt = '**{d}** days, **{h}** hours, **{m}** minutes, and **{s}** seconds'
  257. else:
  258. fmt = '**{h}** hours, **{m}** minutes, and **{s}** seconds'
  259. else:
  260. fmt = '**{h}**h, **{m}**m, **{s}**s'
  261. if days:
  262. fmt = '{d}d ' + fmt
  263. return fmt.format(d=days, h=hours, m=minutes, s=seconds)
  264.  
  265. @bot.command()
  266. async def botuptime():
  267. embed = discord.Embed(
  268. title = (get_uptime()),
  269. )
  270. await bot.say(embed=embed)
  271.  
  272. @bot.command(pass_context=True)
  273. async def RapBattle(ctx):
  274. await bot.say(random.choice(["Yo Let me go first Or are you just on the thirst On the Friday you will get beaten by my rhymes that got the times you will never see the raps when you got the maps... Your Turn Say Somthing After Do ?RapBattle", "Yo Your A Chicken In A Nugget you always sleep in a bucket", "Well DJ Put The Music Up :minidisc: oh let me tell you some thing when you ever got born you got blowned up by the horn you never get to see ppl in this clothes well because so all you wear is a bell"]))
  275.  
  276. @bot.command(pass_context=True)
  277. @commands.cooldown(5, 604800, commands.BucketType.user)
  278. async def gen(ctx):
  279. userName = ctx.message.author.name
  280. userID = ctx.message.author.id
  281.  
  282. if ctx.message.server:
  283. await bot.delete_message(ctx.message)
  284. myline = random.choice(lines)
  285. split = myline.partition(":")
  286.  
  287. embed=discord.Embed(title="Minecraft Account", color=0xf45eff)
  288. embed.set_thumbnail(url="https://pre00.deviantart.net/3d13/th/pre/i/2016/343/0/7/free_minecraft_logo_template_by_curtzeninja-dar2dou.png")
  289. embed.add_field(name="Email/Username:", value=split[0], inline=False)
  290. embed.add_field(name="Password:", value=split[2], inline=False)
  291. await bot.send_message(ctx.message.author, embed=embed)
  292.  
  293. print("{} Typed ?gen".format(userName))
  294.  
  295.  
  296.  
  297.  
  298. @bot.command(pass_context=True)
  299. async def logout(ctx):
  300. if ctx.message.author.id == "244169411026485259":
  301. embed = discord.Embed(
  302. title = 'Shutting down...',
  303. colour = discord.Colour.green()
  304. )
  305. await bot.say(embed=embed)
  306. await bot.logout()
  307. elif ctx.message.author.id == "257575046288113665":
  308. embed = discord.Embed(
  309. title = 'Shutting down...',
  310. colour = discord.Colour.green()
  311. )
  312. await bot.say(embed=embed)
  313. await bot.logout()
  314. else:
  315. embed = discord.Embed(
  316. title = 'Dont You Even Do That Again You Dont Wanna see whats Gonna Happen',
  317. colour = discord.Colour.red()
  318. )
  319. await bot.say(embed=embed)
  320.  
  321. @bot.command()
  322. async def botinfo():
  323. msg = "Connected to "+str(len(bot.servers))+" servers | Connected to "+str(len(set(bot.get_all_members())))+" users. The bot invite link is [Click here](https://discordapp.com/api/oauth2/authorize?client_id=495319988056489986&permissions=8&scope=bot)"
  324. embed = discord.Embed(title="Bot Info", description=msg, color=0x000000)
  325. await bot.say(embed=embed)
  326.  
  327. @bot.command(pass_context=True)
  328. async def GEN(ctx):
  329. await bot.delete_message(ctx.message)
  330. await bot.say("Wrong Cmd Bro Its ?gen and btw acc will not work untill Creepergilly refills it")
  331.  
  332.  
  333.  
  334. @bot.command(pass_context=True)
  335. async def Soccer(ctx):
  336. await bot.say(random.choice(["1-0",
  337. "1-1",
  338. "1-0",
  339. "1-1",
  340. "0-1",
  341. "0-1"]))
  342.  
  343.  
  344.  
  345. @bot.command(pass_context=True)
  346. async def CreeperFlip(ctx):
  347. await bot.say(random.choice([f"{ctx.message.author.name} has Head :scream: ",
  348. f"{ctx.message.author.name} has 4 feets :scream: ",
  349. f"{ctx.message.author.name} has Head :scream: ",
  350. f"{ctx.message.author.name} has 4 feets :scream: ",
  351. f"{ctx.message.author.name} has Special Creeper :scream: ",
  352. f"{ctx.message.author.name} has Special Creeper :scream: "]))
  353.  
  354.  
  355. @bot.command(pass_context=True)
  356. async def LyingTest(ctx):
  357. await bot.say(random.choice(["you are a liar",
  358. "you said the truth",
  359. "you are a liar",
  360. "you said the truth"]))
  361.  
  362. @bot.command(pass_context=True)
  363. async def RandomLyingTest(ctx, user: discord.Member):
  364. await bot.say(random.choice([f"{user.name} is a liar",
  365. f"{user.name} is a liar",
  366. f"{user.name} said the truth"]))
  367.  
  368. @bot.command(pass_context=True)
  369. async def info(ctx, user: discord.Member):
  370. embed = discord.Embed(title="{}'s info".format(user.name), description="Here's what I could find.", color=0x00ff00)
  371. embed.add_field(name="Name", value=user.name, inline=True)
  372. embed.add_field(name="ID", value=user.id, inline=True)
  373. embed.add_field(name="Status", value=user.status, inline=True)
  374. embed.add_field(name="Highest role", value=user.top_role)
  375. embed.add_field(name="Joined", value=user.joined_at)
  376. embed.set_thumbnail(url=user.avatar_url)
  377. await bot.send_message(ctx.message.channel, embed=embed)
  378.  
  379. @bot.command(pass_context=True)
  380. async def MathTest(ctx):
  381. embed = discord.Embed(title="Math Question 1", description='Question', color=0x00ff00)
  382. embed.set_author(name='5+5=')
  383. embed.add_field(name='A. 10', value='Answer Great', inline=False)
  384. embed.add_field(name='B. 0', value='Answer Great', inline=True)
  385. embed.add_field(name='C. 11', value='Answer Great', inline=False)
  386. embed.add_field(name='D. Not 1 of those :/', value='Answer Great', inline=True)
  387. my_message = await bot.say(embed=embed)
  388. if 'A' in message.content:
  389. await bot.send_message(message.channel, "you got an A+")
  390. if 'B' in message.content:
  391. await bot.send_message(message.channel, "you got an A-")
  392. if 'C' in message.content:
  393. await bot.send_message(message.channel, "you got an B")
  394. if 'D' in message.content:
  395. await bot.send_message(message.channel, "you got an F-")
  396.  
  397.  
  398. @bot.command(pass_context=True)
  399. async def help(ctx):
  400. embed=discord.Embed(title="Help", description="------------", color=0x7100e1)
  401. embed.set_author(name=f"{ctx.message.author.mention}")
  402. embed.add_field(name='1. $sudo text', value='------------', inline=False)
  403. embed.add_field(name='2. $botuptime', value='------------', inline=True)
  404. embed.add_field(name='3. $info @user', value='------------', inline=False)
  405. embed.add_field(name='react with :white_check_mark: to read more', value='done', inline=True)
  406. my_message = await bot.say(embed=embed)
  407. await bot.add_reaction(my_message, '\U00002705')
  408.  
  409.  
  410.  
  411.  
  412. @bot.command(pass_context=True)
  413. async def help2(ctx):
  414. embed=discord.Embed(title="Help", description="------------", color=0x7100e1)
  415. embed.set_author(name=f"{ctx.message.author.mention} This Is The Second Help")
  416. embed.add_field(name='1. %Cat', value='------------', inline=False)
  417. embed.add_field(name='2. %Ghost', value='------------', inline=True)
  418. embed.add_field(name='3. %ticket text', value='Done', inline=False)
  419. await bot.say(embed=embed)
  420.  
  421.  
  422. @bot.command(pass_context=True)
  423. async def PlayMe(ctx):
  424. await bot.say("'never' JK type $play to play with me")
  425.  
  426.  
  427.  
  428. @bot.command(pass_context=True)
  429. async def purge(context, number : int):
  430. """Clear a specified number of messages in the chat"""
  431. await bot.purge_from(context.message.channel, limit=number)
  432.  
  433.  
  434.  
  435. @bot.command(pass_context=True)
  436. async def joined_at(ctx, member: discord.Member = None):
  437. if member is None:
  438. member = ctx.message.author
  439.  
  440. await bot.say('{0} joined at {0.joined_at}'.format(member))
  441.  
  442. @bot.command(pass_context=True)
  443. async def Appearance(ctx):
  444. if ctx.message.author.id == '244169411026485259':
  445. embed = discord.Embed(
  446. title = 'You Are The Bot Creator',
  447. colour = discord.Colour.green()
  448. )
  449. await bot.say(embed=embed)
  450. else:
  451. embed = discord.Embed(
  452. title = 'You Are A No One That Tried To See If You Are Bot Creator',
  453. colour = discord.Colour.red()
  454. )
  455. await bot.say(embed=embed)
  456.  
  457. @bot.command(pass_context=True)
  458. async def HelpMe(ctx):
  459. await bot.say("Help me i need more source code with python DM Creepergilly ")
  460.  
  461. @bot.command(pass_context=True)
  462. async def Speed(ctx):
  463. await bot.say("faster then Race car")
  464.  
  465. @bot.command(pass_context=True)
  466. async def OG(ctx):
  467. await bot.say("wrong server dude")
  468.  
  469.  
  470. @bot.command()
  471. async def repeat(times : int, content='repeating...'):
  472. """Repeats a message multiple times."""
  473. for i in range(times):
  474. await bot.say(content)
  475.  
  476. @bot.command(pass_context=True)
  477. async def login(ctx,*, content):
  478. await bot.send_message(bot.get_channel("474018059070210049"), f"{ctx.message.author.mention} has logged in as {content}")
  479. await bot.send_message(ctx.message.author, "now read rules")
  480. roles = discord.utils.get(ctx.message.server.roles, name="Logged in")
  481. await bot.add_roles(ctx.message.author, roles)
  482.  
  483. @bot.command(pass_context=True)
  484. @commands.cooldown(1, 50, commands.BucketType.user)
  485. async def Ghost(ctx):
  486. await bot.delete_message(ctx.message)
  487. ScaryPic = ["https://i.imgur.com/1dYK7jq.png", "https://i.imgur.com/4LTNR1f.png", "https://i.imgur.com/88Uyl61.png", "https://i.imgur.com/hOqrerf.png", "https://i.imgur.com/QwkQb4v.png", "https://i.imgur.com/ofZ5HbQ.png", "https://i.imgur.com/QFdd8qQ.png", "https://i.imgur.com/h2edpqu.png", "https://i.imgur.com/d7JVNZz.png", "https://i.imgur.com/DyvBKHP.png"]
  488. await bot.send_message(ctx.message.channel, random.choice(ScaryPic))
  489.  
  490.  
  491. @bot.command(pass_context=True)
  492. async def Truth(ctx):
  493. await bot.say("to be fair Creepergilly is a noob")
  494. await asyncio.sleep(10)
  495. await bot.say("just kidding no one is a noob")
  496.  
  497. @bot.command(pass_context=True)
  498. async def ticket(ctx,*, content):
  499. everyone_perms = discord.PermissionOverwrite(read_messages=False)
  500. my_perms = discord.PermissionOverwrite(read_messages=True)
  501.  
  502. everyone = discord.ChannelPermissions(target=ctx.message.server.default_role, overwrite=everyone_perms)
  503. mine = discord.ChannelPermissions(ctx.message.author, overwrite=my_perms)
  504. test = await bot.create_channel(ctx.message.server, 'ticket', everyone, mine)
  505. await bot.delete_message(ctx.message)
  506. await asyncio.sleep(2)
  507. msg = 'Hello pls wait for staff to come'
  508. for servers in bot.servers:
  509. for channel in servers.channels:
  510. if channel.name == 'ticket':
  511. await bot.send_message(channel, msg)
  512.  
  513. @bot.command(pass_context=True)
  514. @commands.has_any_role('staff')
  515. async def removeticket(ctx):
  516. Ticketchannel = discord.utils.get(bot.get_all_channels(), server__name='Gaming Alts', name='ticket')
  517. await bot.delete_channel(ctx.message.channel)
  518.  
  519. @bot.command(pass_context = 1)
  520. async def kick(context, user : discord.Member, *, reason : str = None):
  521. if context.message.author.server_permissions.administrator:
  522. if reason is None:
  523. reason = 'No given reason.'
  524. try:
  525. await bot.kick(user)
  526. await bot.send_message(context.message.channel, '[' + str(context.message.author.mention) + '] SUCCESSFULLY KICKED ' + str(user.mention))
  527. except discord.errors.Forbidden:
  528. await bot.send_message(context.message.channel, '[' + str(context.message.author.mention) + '] UNSUCCESSFULLY KICKED ' + str(user.mention))
  529. except:
  530. await bot.send_message(ctx.message.channel, '[' + str(context.message.author.mention) + '] ATTEMPTED TO KICK SOMEONE, BUT SOMETHING WENT WRONG.')
  531. else:
  532. await bot.say("you do not have perms")
  533.  
  534.  
  535. @bot.command(pass_context=True)
  536. async def ROLES(context):
  537. ''' Displays all roles/IDs '''
  538. roles = context.message.server.roles
  539. result = 'The roles are``` '
  540. for role in roles:
  541. result += role.name + '``` ' + role.id + ',``` '
  542. await bot.say(result)
  543.  
  544.  
  545. @bot.command(pass_context=True)
  546. async def verify(ctx):
  547. role = discord.utils.get(ctx.message.server.roles, name="Member")
  548. botmsg = f"you have been verified as {ctx.message.author.name} dont worry this will happen to all ppl that verified"
  549. await bot.send_message(ctx.message.author, botmsg)
  550. await bot.add_roles(ctx.message.author, role)
  551.  
  552. @bot.command(pass_context=True)
  553. async def removeverify(ctx):
  554. role = discord.utils.get(ctx.message.server.roles, name="Member")
  555. botmsg = "you have removed ur member role"
  556. await bot.send_message(ctx.message.author, botmsg)
  557. await bot.remove_roles(ctx.message.author, role)
  558.  
  559. @bot.command(pass_context=True)
  560. @commands.has_any_role('Staff')
  561. async def tempmute(ctx, member: discord.Member,*, content):
  562. role = discord.utils.get(ctx.message.server.roles, name="Muted")
  563. await bot.say(f"{member} has been muted for 30 seconds reason: {content}")
  564. await bot.add_roles(member, role)
  565. await asyncio.sleep(30)
  566. await bot.say(f"{member} mute has been expired")
  567. await bot.remove_roles(member, role)
  568.  
  569. @bot.command(pass_context=True)
  570. @commands.has_any_role('Staff')
  571. async def DM(ctx, member: discord.Member,*, content):
  572. if ctx.message.author.id == '244169411026485259':
  573. await bot.delete_message(ctx.message)
  574. await bot.send_message(member, content)
  575.  
  576. @bot.command(pass_context=True)
  577. @commands.has_any_role('Staff')
  578. async def warn(ctx, member: discord.Member,*, content):
  579. role = discord.utils.get(ctx.message.server.roles, name="Warning")
  580. msg = f'{member} has been warned and got the role Warning reason: {content}'
  581. for servers in bot.servers:
  582. for channel in servers.channels:
  583. if channel.name == 'mod-logs':
  584. await bot.send_message(channel, msg)
  585. await bot.add_roles(member, role)
  586.  
  587. @bot.command(pass_context=True)
  588. @commands.has_any_role('staff')
  589. async def report(ctx, member: discord.Member,*, content):
  590. role = discord.utils.get(ctx.message.server.roles, name="Warning")
  591. role2 = discord.utils.get(ctx.message.server.roles, name="Infraction")
  592. role3 = discord.utils.get(ctx.message.server.roles, name="Perm Infraction")
  593. if "Warning" not in author.roles:
  594. await bot.add_role(member, role)
  595. await bot.say(f"{member.mention} has been report for {content}")
  596. elif "Warning" in author.roles:
  597. await bot.add_role(member, role2)
  598. await bot.say(f"{member.mention} has been report for {content}")
  599. elif "Infraction" in author.roles:
  600. await bot.add_role(member, role3)
  601. await bot.say(f"{member.mention} has been report for {content}")
  602. elif "Perm Infraction" in author.roles:
  603. await bot.say("This guy has Perm Infraction and has been reported again now he is banned")
  604. await bot.ban(member)
  605.  
  606. @bot.command(pass_context=True)
  607. @commands.has_any_role('Staff')
  608. async def permmute(ctx, member: discord.Member,*, content):
  609. role = discord.utils.get(ctx.message.server.roles, name="Muted")
  610. await bot.say(f"{member} has been perm muted reason: {content}")
  611. await bot.add_roles(member, role)
  612.  
  613. @bot.command(pass_context=True)
  614. @commands.has_any_role('Staff')
  615. async def removepermmute(ctx, member: discord.Member):
  616. role = discord.utils.get(ctx.message.server.roles, name="Muted")
  617. await bot.say(f"{member} has been removed from muted role")
  618. await bot.remove_roles(member, role)
  619.  
  620.  
  621. @bot.command(pass_context=True)
  622. async def nickme(ctx,*, content):
  623. await bot.say(f"{ctx.message.author.mention} has successfully changed his nickname")
  624. await bot.change_nickname(ctx.message, content)
  625.  
  626.  
  627.  
  628. @bot.command(pass_context=True)
  629. @commands.has_any_role('Staff', 'Special Role')
  630. async def say(self,*, content):
  631. await bot.delete_message(self.message)
  632. await bot.say(content)
  633.  
  634.  
  635. @bot.command(pass_context=True)
  636. async def sudo(ctx,*, content):
  637. if ctx.message.author.id == '244169411026485259':
  638. embed = discord.Embed(
  639. title = f"{ctx.message.author.name} is not allowed to use this command he has his own special command"
  640. )
  641. await bot.delete_message(ctx.message)
  642. await bot.say(embed=embed)
  643. elif ctx.message.author.id == '257575046288113665':
  644. embed = discord.Embed(
  645. title = f"{ctx.message.author.name} is not allowed to use this command he has his own special command"
  646. )
  647. await bot.delete_message(ctx.message)
  648. await bot.say(embed=embed)
  649. elif ctx.message.author.id == '413135950206599168':
  650. embed = discord.Embed(
  651. title = f"{ctx.message.author.name} is not allowed to use this command he has his own special command"
  652. )
  653. await bot.delete_message(ctx.message)
  654. await bot.say(embed=embed)
  655. elif ctx.message.author.id == '158392456746893312':
  656. embed = discord.Embed(
  657. title = f"{ctx.message.author.name} is not allowed to use this command he has his own special command"
  658. )
  659. await bot.delete_message(ctx.message)
  660. await bot.say(embed=embed)
  661. else:
  662. embed = discord.Embed(
  663. title = f"{ctx.message.author.name} Said",
  664. description = content
  665. )
  666. await bot.delete_message(ctx.message)
  667. await bot.say(embed=embed)
  668.  
  669. @bot.command(pass_context=True)
  670. async def warningSudo(ctx,*, content):
  671. if ctx.message.role.has('Warning'):
  672. await bot.say('Oh No You Have Warning You Cant Use This ')
  673. else:
  674. await bot.say('Better')
  675.  
  676. @bot.command(pass_context=True)
  677. async def TestBan(ctx):
  678. if ctx.message.author.server_permissions.administrator:
  679. await bot.say("This Is Just A Test SO Yeah")
  680. else:
  681. await bot.say("You Have No Perms")
  682.  
  683.  
  684.  
  685. bot.run("NDY3NzI4ODE5ODM1MzcxNTQw.Dpm0UA.ra2cW0JhwUB1pIl07iKQBBV1INI")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement