GrummHD

amogus

Apr 5th, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.26 KB | None | 0 0
  1. import discord
  2. import sqlite3
  3. import random
  4. import time
  5. import googletrans
  6. import requests
  7. import io
  8. import os
  9. import datetime
  10. import json
  11. """
  12.  
  13. from discord_slash import SlashCommand
  14. from discord_slash.utils.manage_commands import create_option
  15. """
  16. from discord.ext.commands.cooldowns import BucketType
  17. from io import BytesIO
  18. from PIL import Image, ImageFont, ImageDraw
  19. from googletrans import Translator
  20. from asyncio import sleep
  21. from discord.ext import commands
  22. from discord_components import DiscordComponents, Button, ButtonStyle
  23. from discord.utils import get
  24. from Cybernator import Paginator
  25.  
  26. trash_listt = ['HELLo', 'а', 'VERKEY', 'test', 'list', 'test']
  27. #cogs = [
  28. # "Test"
  29. #]
  30. #
  31.  
  32. # os.chdir("C:\\Pyhton\\bot\\Manager\\JSON")
  33.  
  34.  
  35. bot = commands.Bot(command_prefix=['~'], intents=discord.Intents.all())
  36. # slash = SlashCommand(bot, sync_commands = True)
  37. bot.remove_command("help")
  38.  
  39. async def w():
  40. await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~help"))
  41. await sleep(10)
  42. await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~news"))
  43. await sleep(10)
  44. await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~хелп"))
  45. await sleep(10)
  46.  
  47. @bot.event
  48. async def on_ready():
  49. print('Ready!')
  50. DiscordComponents(bot)
  51. while True:
  52. await w()
  53.  
  54.  
  55.  
  56. #(activity=nextcord.Streaming(name=status, url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"))
  57.  
  58. @bot.command(aliases = ['youtube', 'channel', 'ютуб', 'grummplay', 'grummhd'])
  59. async def yt(ctx):
  60. await ctx.send(
  61. embed = discord.Embed(title = 'Наш YouTube канал **GrummPlay**', color = discord.Color.red()),
  62. components = [
  63. Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/channel/UC3Q3VLnJUYoclmXJgFWedIQ?sub_confirmation', label = 'Подписатся' , emoji = '💥'),
  64. Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/watch?v=VhrSs43WH-s', label = 'Поставить лайк', emoji = '👍'),
  65. Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/channel/UC3Q3VLnJUYoclmXJgFWedIQ', label = 'Перейти', emoji = '🌐')
  66. ]
  67.  
  68. #response = await bot.wait_for('button_click')
  69. #if response.channel == ctx.channel:
  70. # if response.component.label == 'Подписатся':
  71. # await response.respond(content = 'Gp')
  72. )
  73. await message.add_reaction('✅')
  74. """
  75. @bot.command()
  76. async def help(ctx, arg = None):
  77. emb = discord.Embed(title = 'documentation of **WolkBot**.', color = discord.Color.green())
  78. emb.add_field(name = 'Information', value = info, inline = False)
  79. emb.add_field(name = 'Images', value = img, inline = False)
  80. emb.add_field(name = 'Role-Play', value = rp, inline = False)
  81. emb.add_field(name = 'Mini-Games', value = mini, inline = False)
  82. emb.add_field(name = 'Moderation', value = moder, inline = False)
  83. emb.add_field(name = 'Effective', value = do, inline = False)
  84. await ctx.reply(embed = emb)
  85. """
  86.  
  87. @bot.command()
  88. async def buy(ctx, *, arg):
  89. emb = discord.Embed(description = f'**{ctx.message.author.mention} покупает '+str(arg)+'**', color = discord.Color.purple())
  90. await ctx.send(embed = emb)
  91.  
  92. """
  93. @bot.command()
  94. async def help(ctx, arg = None):
  95. emb = discord.Embed(title = 'documentation of **WolkBot**.', color = discord.Color.green())
  96. emb.add_field(name = 'Information', value = info, inline = False)
  97. emb.add_field(name = 'Images', value = img, inline = False)
  98. emb.add_field(name = 'Role-Play', value = rp, inline = False)
  99. emb.add_field(name = 'Mini-Games', value = mini, inline = False)
  100. emb.add_field(name = 'Moderation', value = moder, inline = False)
  101. emb.add_field(name = 'Effective', value = do, inline = False)
  102. emb.add_field(name = 'Legend', value = legend, inline = False)
  103. await ctx.reply(embed = emb)
  104. await message.add_reaction('✅')
  105. """
  106. @bot.command(aliases = ['хелп'])
  107. async def help(ctx, arg = None):
  108. emb = discord.Embed(title = 'Команды бота **WolkBot**.', color = discord.Color.green())
  109. emb.add_field(name = 'Информация', value = info, inline = False)
  110. emb.add_field(name = 'Картинки', value = img, inline = False)
  111. emb.add_field(name = 'Ролевые-Игры', value = rp, inline = False)
  112. emb.add_field(name = 'Мини-Игры', value = mini, inline = False)
  113. emb.add_field(name = 'Админитсративные', value = moder, inline = False)
  114. emb.add_field(name = 'Полезные', value = '`~random(aliase: randomaze)`,`~avatar <member>`,`~embed <title> <description> <color>`, `~calculate(aliase: calc)`, `~say`,`~link`, `~add_command <the message to creater (command name, function)>`', inline = False)
  115. emb.add_field(name = 'Легендальные', value = legend, inline = False)
  116. emb.add_field(name = 'Фан', value = fun, inline = False)
  117. await ctx.reply(embed = emb)
  118.  
  119. ######
  120.  
  121. #if __name__ == "__main__":
  122. # for extention in cogs:
  123. # cog = f"cogs.{extention}"
  124. # try:
  125. # bot.load_extention(cog)
  126. # except Exception as e:
  127. # print(e)
  128.  
  129.  
  130. # ECO
  131.  
  132.  
  133.  
  134. @bot.command()
  135. async def balance(ctx):
  136. await open_account(ctx.author)
  137.  
  138. user = ctx.author
  139. users = await get_bank_data()
  140.  
  141. wallet_amt = users[str(user.id)]["wallet"]
  142. xp_amt = users[str(user.id)]["xp"]
  143.  
  144. emb = discord.Embed(title = f'Баланс участника {ctx.author.name}.', color = discord.Color.orange())
  145. emb.add_field(name = 'Валюта', value = wallet_amt)
  146. emb.add_field(name = 'XP', value = xp_amt, inline = False)
  147. await ctx.reply(embed = emb)
  148. """
  149. @bot.command()
  150. async def beg(ctx):
  151. await open_account(ctx.author)
  152.  
  153. user = ctx.author
  154.  
  155. users = await get_bank_data()
  156.  
  157. earnings = random.randrange(101)
  158.  
  159. await ctx.reply(f'Кто-то вам дал {earnings} денег!')
  160.  
  161.  
  162. users[str(user.id)]["wallet"] += earnings
  163.  
  164. with open("main_bank.json", "w") as f:
  165. json.dump(users, f, indent = 4)
  166. """
  167. async def open_account(user):
  168.  
  169. users = await get_bank_data()
  170.  
  171. if str(user.id) in users:
  172. return False
  173.  
  174. else:
  175. users[str(user.id)] = {}
  176. users[str(user.id)]["wallet"] = 0
  177. users[str(user.id)]["xp"] = 0
  178. users[str(user.id)]["store_q"] = 0
  179. users[str(user.id)]["store_q_lv"] = 1 # 20
  180. users[str(user.id)]["ccot"] = 1
  181. users[str(user.id)]["store_ac"] = False
  182.  
  183. with open("main_bank.json", "w") as f:
  184. json.dump(users, f, indent = 4)
  185.  
  186. return True
  187.  
  188. async def get_bank_data():
  189. with open("main_bank.json", "r") as f:
  190. users = json.load(f)
  191.  
  192. return users
  193.  
  194. @bot.command()
  195. @commands.cooldown(1, 60, commands.BucketType.user)
  196. async def work(ctx):
  197. await open_account()
  198. users = await get_bank_data()
  199. user = ctx.author
  200.  
  201.  
  202. works = [
  203. '4',
  204. '3',
  205. '2',
  206. '1',
  207. '0'
  208. ]
  209.  
  210. a = random.choice(works)
  211. work = a
  212.  
  213. emb = None
  214. money = 0
  215.  
  216. if work == 0:
  217. emb = discord.Embed(title = 'Работа', description = 'вы поработали так плохо что не чего не получили((', color = discord.Color.orange())
  218.  
  219. elif work == 1:
  220. money = random.randint(1, 10)
  221. emb = discord.Embed(title = 'Работа', description = f'Вы плохо поработали но хоть что-то получили( +{money} питонов', color = discord.Color.orange())
  222.  
  223. elif work == 2:
  224. money = random.randint(10, 30)
  225. emb = discord.Embed(title = 'Работа', description = f'вы нормально поработали и заработали {money} питонов!', color = discord.Color.orange())
  226.  
  227. elif work == 3:
  228. money = random.randint(40, 70)
  229. emb = discord.Embed(title = 'Работа', description = f'Вы хорошо поработали и получили целых {money} питонов!!!', color = discord.Color.orange())
  230.  
  231. else:
  232. money = random.randint(100, 400)
  233. emb = discord.Embed(title = 'Работа', description = f'Вы так хорошо поработали что заработали целых **{money}**!!!!!!!', color = discord.Color.orange())
  234.  
  235. @bot.event
  236. async def on_command_error(ctx, error):
  237. if isinstance(error, commands.commandOnCooldown):
  238. emb = discord.Embed(title = '❌ Error', description = 'подождите еще {:.2f} секунд'.format(error.retry_after))
  239. await ctx.reply(embed = emb)
  240.  
  241. """
  242. @bot.command()
  243. async def start_store(ctx):
  244.  
  245. await open_account(ctx.author)
  246. user = ctx.author
  247.  
  248. users = await get_bank_data()
  249. store_q = users[str(user.id)]["store_ac"]
  250.  
  251. if users[str(user.id)]["store_ac"] == False:
  252. emb = discord.Embed(title = '✅Successful', description = 'Вы начили своё копление питонов!', color = discord.Color.green())
  253. await ctx.reply(embed = emb)
  254.  
  255. else:
  256. eremb = discord.Embed(title = '❌ Error', description = 'Вы уже копите питоны!')
  257. await ctx.reply(embed = eremb)
  258. return
  259.  
  260. inonetc = users[str(user.id)]["ccot"]
  261.  
  262. users[str(user.id)]["store_ac"] = True
  263.  
  264.  
  265. store = users[str(user.id)]["store_ac"]
  266.  
  267. store_time_lvl = users[str(user.id)]["store_q_lv"]
  268.  
  269.  
  270.  
  271.  
  272.  
  273. while store == True:
  274. time.sleep(store_time_lvl)
  275. users[str(user.id)]["store_q"] = users[str(user.id)]["store_q"] + users[str(user.id)]["ccot"]
  276. with open("main_bank.json", "w") as f:
  277. json.dump(users, f, indent = 4)
  278.  
  279.  
  280.  
  281. @bot.command()
  282. async def stop_store(ctx):
  283. await open_account(ctx.author)
  284. users = await get_bank_data()
  285. user = ctx.author
  286.  
  287. users[str(user.id)]["store_ac"] = False
  288.  
  289. with open("main_bank.json", "w") as f:
  290. json.dump(users, f, indent = 4)
  291.  
  292. @bot.command()
  293. async def update_balance(ctx):
  294. try:
  295.  
  296. users = await get_bank_data()
  297. user = ctx.author
  298.  
  299. a = users[str(user.id)]["store_q"]
  300.  
  301. users[str(user.id)]["wallet"] = users[str(user.id)]["wallet"] + users[str(user.id)]["store_q"]
  302. users[str(user.id)]["store_q"] = 0
  303.  
  304. with open("main_bank.json", "w") as f:
  305. json.dump(users, f, indent = 4)
  306.  
  307.  
  308. embb = discord.Embed(title = '✅Successful', description = f'Вы пополнили свой баланс! +{a}', color = discord.Color.green())
  309.  
  310.  
  311. await ctx.reply(embed = embb)
  312. except:
  313.  
  314. await open_account(ctx.author)
  315. users = await get_bank_data()
  316. user = ctx.author
  317.  
  318. a = users[str(user.id)]["store_q"]
  319.  
  320. users[str(user.id)]["wallet"] = users[str(user.id)]["wallet"] + users[str(user.id)]["store_q"]
  321. users[str(user.id)]["store_q"] = 0
  322.  
  323. with open("main_bank.json", "w") as f:
  324. json.dump(users, f, indent = 4)
  325.  
  326.  
  327. embb = discord.Embed(title = '✅Successful', description = f'Вы пополнили свой баланс! +{a}', color = discord.Color.green())
  328.  
  329.  
  330. await ctx.reply(embed = embb)
  331.  
  332. # await start_store(ctx)
  333. """
  334. @bot.command()
  335. async def ping(ctx):
  336. emb = discord.Embed(title = 'Pong:', description = f'Ваш ping: {round(bot.latency * 1000)}ms', color = discord.Color.blue())
  337. await ctx.reply(embed=emb)
  338.  
  339.  
  340. @bot.command(aliases = ['iqtwst', 'IQ', 'IQ-test'])
  341. async def iq(ctx, member: discord.Member = None):
  342.  
  343. if ctx.author.id == 816581481106505729:
  344. member = ctx.author
  345. emb2 = discord.Embed(title = 'IQ test', description = f'**у вас 1000000 IQ!**', color = discord.Color.blue())
  346. await ctx.reply(embed = emb2)
  347. return
  348. if member == None:
  349. member = ctx.author
  350. emb2 = discord.Embed(title = 'IQ test', description = f'**у вас {random.randint(0, 200)} IQ!**', color = discord.Color.blue())
  351. await ctx.reply(embed = emb2)
  352.  
  353. else:
  354. emb = discord.Embed(title = 'IQ test', description = f'**у участника {member} {random.randint(0, 100)} % IQ!**', color = discord.Color.blue())
  355. await ctx.reply(embed = emb)
  356.  
  357. @bot.command(aliases = ['чс', 'ЧС'])
  358. async def hc(ctx, member: discord.Member = None):
  359. if member == None:
  360. eremb = discord.Embed(title = 'Ошибка', description = 'напишите участника которого вы хотите записать в черный спимок)', color = discord.Color.red())
  361. await ctx.reply(embed = eremb)
  362.  
  363. elif member.id == 816581481106505729:
  364. embb = discord.Embed(title = 'Ошибка', description = 'данного участника не существует...', color = discord.Color.red())
  365. await ctx.reply(embed = embb)
  366.  
  367. else:
  368. emb = discord.Embed(title = 'ЧС', description = f'{member.mention} записан в Черный-Список.')
  369. await ctx.reply(embed = emb)
  370.  
  371.  
  372.  
  373.  
  374. @bot.command()
  375. async def add_command(ctx, *, arg):
  376. user = bot.get_user(816581481106505729)
  377. hc = []
  378. if ctx.author.id == hc:
  379. er = discord.Embed(color = discord.Color.red(), title = 'Ошибка', description = 'вы в ЧС иза негативных сообщений с помощю команды `~add_command`!Если хотите размута то напишите Gᖇᑌᗰᗰᕼᗪ#5555!')
  380. await ctx.reply(embed = emb2)
  381.  
  382. else:
  383. emb = discord.Embed(title = 'Выполнено ✅', color = discord.Color.green(), description = 'сообщение было отправлено создателю, если сообщение будет негативное то вы попадаете в ЧС бота.')
  384. await ctx.reply(embed = emb)
  385. emb = discord.Embed(title = 'Сообщение', description = f'{ctx.author.mention}, хочет добавить команду **'+str(arg)+'** в бота.')
  386. await user.send(embed = emb)
  387.  
  388.  
  389. """
  390.  
  391. @bot.command(aliases = ['calc', 'посчитать', 'вычиcлить'])
  392. async def calculate(ctx, arg1, arg, arg2):
  393. try:
  394. if arg == '+':
  395. a = int(arg1) + int(arg2)
  396.  
  397. elif arg == '-':
  398. a = int(arg1) - int(arg2)
  399.  
  400. elif arg == '*' or 'x':
  401. a = int(arg1) * int(arg2)
  402.  
  403. elif arg == '/' or 'r':
  404. a = int(arg1) / int(arg2)
  405. except:
  406. if arg == '+':
  407. a = float(arg1) + float(arg2)
  408.  
  409. elif arg == '-':
  410. a = float(arg1) - float(arg2)
  411.  
  412. elif arg == '*' or 'x':
  413. a = float(arg1) * float(arg2)
  414.  
  415. elif arg == '/' or 'r':
  416. a = float(arg1) / float(arg2)
  417.  
  418.  
  419. emb = discord.Embed(title = 'Результат вычисления выражения `'+str(arg1)+str(arg)+str(arg2)+'`:', description = '```'+str(a)+'```', color = discord.Color.red())
  420.  
  421. await ctx.reply(embed = emb)
  422. await message.add_reaction('✅')
  423. """
  424. @bot.command(aliases = ['random'])
  425. async def randomize(ctx, arg, arg2):
  426. a = int(arg)
  427. b = int(arg2)
  428. rn = random.randint(a, b)
  429. try:
  430. emb = discord.Embed(title = f'Рандомное число из '+str(arg)+' до '+str(arg2)+':', description = f'```'+str(rn)+'```', color = discord.Color.green())
  431. await ctx.reply(embed = emb)
  432.  
  433. except:
  434. await ctx.reply(str(rn))
  435.  
  436.  
  437. @bot.command()
  438. async def servers(ctx):
  439. guilds = await bot.fetch_guilds(limit = None).flatten()
  440. emb = discord.Embed(description = f'**Бот на {len(guilds)} серверах!**', color = discord.Color.red())
  441. await ctx.reply(embed = emb)
  442.  
  443. for guild in bot.guilds:
  444. emb = discord.Embed(title = str(guild), color = discord.Color.green())
  445. emb.set_thumbnail(url = guild.icon_url)
  446. emb.add_field(name = 'Owner:', value = guild.owner.mention, inline=False)
  447. emb.add_field(name = 'Members:', value = guild.member_count, inline=False)
  448. await ctx.reply(embed = emb)
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. @bot.command()
  458. async def report(ctx, *, text):
  459.  
  460. hcm = []
  461.  
  462. if ctx.author.id == hcm:
  463. error = discord.Embed(title = 'Ошибка', description = 'вы заборкировоны', color = discord.Color.red())
  464. await ctx.reply(embed = error)
  465.  
  466. else:
  467. file = open('REPORTS.txt', 'a', encoding = 'utf-8')
  468. file.write(f'FROM {ctx.author.name} : {text} \n ID: {ctx.author.id} \n {ctx.author.mention}\n\n')
  469. file.close()
  470. emb = discord.Embed(title = 'REPORT', description = 'Жалоба / Ворпрос: отправлено', color = discord.Color.red())
  471. await ctx.reply(embed = emb)
  472.  
  473. # @commands.has_permissions(administrator=True)
  474.  
  475.  
  476. @bot.command(aliases = ['trans'])
  477. async def translate(ctx, lang, *, args):
  478. t = Translator()
  479. a = t.translate(args, dest=lang)
  480. emb = discord.Embed(title = 'Перевод: ', description = a.text, color = discord.Color.purple())
  481. await ctx.reply(embed = emb)
  482.  
  483.  
  484. @bot.command()
  485. async def link(ctx):
  486. emb = discord.Embed(title = 'link на бота', description = 'https://discord.com/api/oauth2/authorize?client_id=915182499636854794&permissions=545394785527&scope=bot', color = discord.Color.blue())
  487. await ctx.author.send(embed = emb)
  488. await ctx.reply('Ссылка на бота была отправлина вам в лс!')
  489.  
  490.  
  491. moder = '`~set_vote <question> <a> <b> <channel-id>`, `~clear`, `~ban`, `~kick`, `~report <text>`, `~add_command <the message to creater (command name, function)>`'
  492. info = '`~servers`,`~youtube(aliases: yt, grummplay)`, `~bot_server(aliases: bs, botsv)`, `~creater(aliases: owner)`,`~language`' #~best_people(aliases: top)
  493. rp = '`~hc`,`~bite <user>`,`~shoot <user>`,`~kill <user>`,`~buy`,`~iq`,`~крутой <user>`,`~meme`,`~who <@user>`,`~kill <@user>`'
  494. img = '`~card`,`~amogus`,`~snake`,`~meme`,`~xd`,`~avatar <member>`, `~печенька - aliases = 173`'
  495. mini = '`~ball`, `~popit`, `~xd`,`~embed <title> <description> <color>`'
  496. do = '`~random(aliase: randomaze)`,`~report <text>`,`~avatar <member>`,`~embed <title> <description> <color>`, `~calculate(aliase: calc)`, `~say`,`~link`, `~add_command <the message to creater (command name, function)>`'
  497. legend = '`~trash <text>`, `~trash_list`, `~card`, `hc`, `~iq`, `~embed <title> <description> <color>`'
  498. fun = '`~hc`, `~IQ`, `~ball`, `~trash,~trash_list`, `~buy`, `~meme`, `~who <@user>`, `~embed <title> <description> <color>`'
  499. ######
  500. @bot.command()
  501. async def say(ctx, *, saymsg, amount=1):
  502. await ctx.channel.purge(limit=1)
  503. emb = discord.Embed(title = saymsg, description = f'автор: {ctx.message.author.mention}')
  504. await ctx.send(embed = emb)
  505.  
  506.  
  507. @bot.command(aliases=["bs", "botsv"])
  508. async def bot_server(ctx):
  509. await ctx.author.send(
  510. f"{ctx.author.mention} поддержка Бота Wolk https://discord.gg/H7skVqbdE2"
  511. )
  512.  
  513. @bot.command(aliases=['кр'])
  514. async def крутой(ctx, member:discord.Member):
  515. emb = discord.Embed(title = f'{member.name} крутой на {random.randint(0, 101)}%!', color = discord.Color.red())
  516. emb.set_image(url = 'https://scontent-nrt1-1.xx.fbcdn.net/v/t1.6435-9/cp0/e15/q65/p64x64/45460305_377994779409241_6487756677104795648_n.jpg?_nc_cat=100&ccb=1-5&_nc_sid=85a577&_nc_ohc=DY5YrrLMiGsAX827w8q&_nc_ht=scontent-nrt1-1.xx&oh=00_AT_1syg7dte_RDyXmfmvSp46pdsmuxNdhh7C7ORq1IXHjA&oe=61FDE220')
  517. await ctx.reply(embed = emb)
  518.  
  519.  
  520. @bot.command()
  521. async def server_avatar(ctx):
  522. emb = discord.Embed(title = f'Аватарка сервера - {ctx.guild.name}')
  523. emb.set_image(url = guild.avatar_url())
  524. await ctx.reply(embed = emb)
  525.  
  526. @bot.command()
  527. async def ball(ctx, *, arg):
  528. rd_word = random.choice(co1)
  529. emb = discord.Embed(title = 'Предсказание', color = discord.Color.purple(), description = rd_word)
  530. await ctx.reply(embed = emb)
  531.  
  532.  
  533.  
  534. @bot.command(aliases=['мем','Мем','мемы','.m'])
  535. async def meme(ctx):
  536. emb = discord.Embed(title = 'Мем', color = discord.Color.green())
  537. rd_link = random.choice(memes)
  538. emb.set_image(url = rd_link)
  539. await ctx.reply(embed = emb)
  540.  
  541. channel_error = discord.Embed(title = 'Error', description = 'этот канал не зарегестривон.', color = discord.Color.red())
  542.  
  543.  
  544. @bot.command()
  545. async def xd_spam(ctx, num):
  546. channels = [892452947269660783]
  547.  
  548. if ctx.channel.id in channels:
  549. for i in range(int(num)):
  550. await ctx.send('XD XD XDXDXDXD\n XD XD XD XD\n XD XD XD XD\n XD XD XD XD\n XDXD XD XD\n XD XD XD XD\n XD XD XD XD\n XD XD XD XD\nXD XD XDXDXDXD')
  551. else:
  552. await ctx.send(embed = channel_error)
  553.  
  554. @bot.command()
  555. async def embed(ctx, title, description, color = discord.Color.green()):
  556. if color == 'red':
  557. color = discord.Color.red()
  558.  
  559. elif color == 'blue':
  560. color = discord.Color.blue()
  561.  
  562. elif color == 'green':
  563. color = discord.Color.green()
  564.  
  565. elif color == 'orange':
  566. color = discord.Color.orange()
  567.  
  568. elif color == 'purple':
  569. color = discord.Color.purple()
  570.  
  571. emb = discord.Embed(title = title, description = description, color = color)
  572. await ctx.reply(embed = emb)
  573.  
  574. @bot.command()
  575. async def coin(ctx, arg = 'решка', arg2 = 'орел'):
  576. if arg and arg2 == None:
  577. rd2 = random.choice('решка','орел')
  578. emb2 = discord.Embed(title = 'Решение: ', description = rd2, color = discord.Color.orange())
  579. await ctx.reply(embed = emb2)
  580.  
  581. else:
  582. args_list = [arg, arg2]
  583. rd = random.choice(args_list)
  584. emb1 = discord.Embed(title = 'Решение:', description = rd, color = discord.Color.orange())
  585. await ctx.reply(embed = emb1)
  586.  
  587. @bot.command()
  588. async def avatar(ctx, member: discord.Member = None):
  589. if member == None:#если не упоминать участника тогда выводит аватар автора сообщения
  590. member = ctx.author
  591. embed = discord.Embed(color = 0x22ff00, title = f"Аватар участника - {member.name}", description = f"[Нажмите что бы скачать аватар]({member.avatar_url})")
  592. embed.set_image(url = member.avatar_url)
  593. await ctx.send(embed = embed)
  594.  
  595. @bot.command()
  596. async def language(ctx):
  597. emb = discord.Embed(description = 'бот написан на языке **Python**')
  598. await ctx.reply(embed = emb)
  599.  
  600. @bot.command()
  601. async def xd(ctx):
  602. await ctx.reply('XD XD XDXDXDXD\n XD XD XD XD\n XD XD XD XD\n XD XD XD XD\n XDXD XD XD\n XD XD XD XD\n XD XD XD XD\n XD XD XD XD\nXD XD XDXDXDXD')
  603. await message.add_reaction('✅')
  604.  
  605. memes = [
  606. 'https://i.imgur.com/JQGhevZ.jpg',
  607. 'https://b1.filmpro.ru/c/824432.700xp.jpg',
  608. 'https://b1.filmpro.ru/c/824433.700xp.jpg',
  609. 'https://b1.filmpro.ru/c/824434.700xp.jpg',
  610. 'https://b1.filmpro.ru/c/824435.700xp.jpg',
  611. 'https://b1.filmpro.ru/c/824436.700xp.jpg',
  612. 'https://b1.filmpro.ru/c/824437.700xp.jpg',
  613. 'https://b1.filmpro.ru/c/824438.700xp.jpg',
  614. 'https://b1.filmpro.ru/c/824439.700xp.jpg',
  615. 'https://b1.filmpro.ru/c/824440.700xp.jpg',
  616. 'https://b1.filmpro.ru/c/824441.700xp.jpg',
  617. 'https://user92966.clients-cdnnow.ru/upload/medialibrary/faf/faf273d27c36991db3c1158e32fd8d9e.png?1530630973390529',
  618. 'https://user92966.clients-cdnnow.ru/upload/medialibrary/83b/83b10d5849522495eff36f2d5a70dabe.png?1530636584947773',
  619. 'https://lux.fm/uploads/media_news/2020/12/5fec7f041b85d694636641.jpg?w=770&h=433&il&q=85&output=jpg&fit=cover&a=top',
  620. 'https://lux.fm/uploads/media_news/2020/12/5fec80b836f00267998545.jpg?w=640&v=63',
  621. 'https://lux.fm/uploads/media_news/2020/12/5fec80b952156411885523.jpg?w=640&v=63',
  622. 'https://lux.fm/uploads/media_news/2020/12/5fec80bb83a96256126480.jpg?w=640&v=63',
  623. 'https://lux.fm/uploads/media_news/2020/12/5fec80bc1461b073027666.png?w=640&v=63',
  624. 'https://lux.fm/uploads/media_news/2020/12/5fec80bb039dd591220909.jpg?w=640&v=63',
  625. 'https://lux.fm/uploads/media_news/2020/12/5fec80bd53b44008115809.jpg?w=640&v=63',
  626. 'https://lux.fm/uploads/media_news/2020/12/5fec80b9ead9a555581986.jpg?w=640&v=63',
  627. 'https://lux.fm/uploads/media_news/2020/12/5fec80ba767df921674189.jpg?w=640&v=63'
  628.  
  629. ]
  630.  
  631. co1 = [
  632. 'Да',
  633. 'Секрет',
  634. 'Лучше вам не знать',
  635. 'Чут-чуть',
  636. 'Нет',
  637. 'Совсем нет',
  638. 'Да но лунтик упадет вот что будет'
  639. ]
  640.  
  641. @bot.command()
  642. async def amogus(ctx):
  643. emb = discord.Embed(title = 'AMOGUS', color = discord.Color.red())
  644. rd_link = random.choice(amogus)
  645. emb.set_image(url = rd_link)
  646. await ctx.reply(embed = emb)
  647. await message.add_reaction('✅')
  648.  
  649.  
  650. amogus = [
  651. 'https://c.tenor.com/_w6ZZRaMtlQAAAAi/amongus-datass.gif',
  652. 'https://c.tenor.com/j4Sp6zsl87IAAAAC/among-us.gif',
  653. 'https://c.tenor.com/YebbLUmkg9YAAAAd/among-us.gif',
  654. 'https://c.tenor.com/vHroFuuevf0AAAAC/among-us.gif',
  655. 'https://c.tenor.com/H46daZMWzi4AAAAC/sus-buff.gif',
  656. 'https://c.tenor.com/dEE3Md_6h9cAAAAC/amogus.gif',
  657. 'https://c.tenor.com/h99LQHUExJIAAAAd/19dollar-fortnite-card-among-us.gif',
  658. 'https://c.tenor.com/auHXPbtu824AAAAM/sushichaeng-among-us.gif',
  659. 'https://c.tenor.com/nhqXUHVKCJcAAAAC/puppyy3533amoung-us-puppyy-kitchen-pantry-amoung-us-impostor.gif',
  660. 'https://c.tenor.com/1bHFBLnruUUAAAAC/among-us.gif'
  661. ]
  662.  
  663. @bot.command()
  664. async def snake(ctx):
  665. emb = discord.Embed(title = 'змея', color = discord.Color.green())
  666. rd_link = random.choice(snakes)
  667. emb.set_image(url = rd_link)
  668. await ctx.reply(embed = emb)
  669. await message.add_reaction('✅')
  670.  
  671.  
  672. @bot.command()
  673. async def shoot(ctx, member:discord.Member):
  674. emb = discord.Embed(description = f'{ctx.message.author.mention}⠀застрелил(а) {member.mention}')
  675. rd = random.choice(shoot)
  676. emb.set_image(url = rd)
  677. await ctx.reply(embed=emb)
  678. await message.add_reaction('✅')
  679.  
  680. @bot.command()
  681. async def kill(ctx, member:discord.Member):
  682. emb = discord.Embed(description = f'{ctx.message.author.mention}, Убил {member.mention}')
  683. rd = random.choice(kill)
  684. emb.set_image(url = rd)
  685. await ctx.reply(embed = emb)
  686. await message.add_reaction('✅')
  687.  
  688. @bot.command(aliases=['kto','who is','who'])
  689. async def кто(ctx, member:discord.Member):
  690. rd = random.choice(whos)
  691. emb = discord.Embed( title = rd)
  692. await ctx.reply(embed=emb)
  693. await message.add_reaction('✅')
  694.  
  695.  
  696.  
  697.  
  698. snakes = [
  699. 'https://cdn.pixabay.com/photo/2019/02/06/17/09/snake-3979601_1280.jpg',
  700. 'https://cdn.pixabay.com/photo/2014/11/23/21/22/snake-543243_1280.jpg',
  701. 'https://cdn.pixabay.com/photo/2014/08/15/21/40/snake-419043_1280.jpg',
  702. 'https://cdn.pixabay.com/photo/2014/12/25/14/54/snake-579682_1280.jpg',
  703. 'https://cdn.pixabay.com/photo/2014/10/25/00/17/snake-501986_1280.jpg',
  704. 'https://cdn.pixabay.com/photo/2015/02/28/15/25/rattlesnake-653642_1280.jpg',
  705. 'https://cdn.pixabay.com/photo/2016/03/31/19/29/animals-1295060_1280.png',
  706. 'https://cdn.pixabay.com/photo/2016/06/30/11/44/grass-snake-1488853_1280.jpg',
  707. 'https://cdn.pixabay.com/photo/2015/09/17/20/21/snake-944651_1280.jpg'
  708.  
  709. ]
  710.  
  711.  
  712. shoot = [
  713. 'https://c.tenor.com/AGTqt-wXyiEAAAAC/nichijou-minigun.gif',
  714. 'https://c.tenor.com/iMtcqbBzc5sAAAAC/anime-shooting.gif',
  715. 'https://c.tenor.com/AeOgMT85jokAAAAC/assasination-classrom-gun.gif',
  716. 'https://c.tenor.com/gQkJLMcaZiIAAAAd/anime-gun.gif',
  717. 'https://c.tenor.com/9xF9nWcq-6AAAAAC/shoot-pow.gif',
  718. 'https://c.tenor.com/sPTgNZ57croAAAAC/bang-black-lagoon.gif',
  719.  
  720. ]
  721.  
  722. kill = [
  723. 'https://c.tenor.com/Ce8ZMfAcjdoAAAAC/anime.gif',
  724. 'https://c.tenor.com/9Ql_VyYvMZkAAAAC/anime-sleeping.gif',
  725. 'https://c.tenor.com/_aMkVJcxClIAAAAC/yu-yu-hakusho-anime.gif',
  726. 'https://c.tenor.com/mV2LIwcx7nEAAAAC/kiznaiver-katsuhira-agata.gif',
  727. 'https://c.tenor.com/BEpigDhNThMAAAAS/de-ad-ch-at-xd-chat-ded.gif',
  728. 'https://c.tenor.com/zZ2NA1iyuIsAAAAS/noragami-yato.gif',
  729. 'https://c.tenor.com/zcN9bE0QtOUAAAAC/sponge-bob-meme.gif',
  730. 'https://c.tenor.com/-ELNZ-i1Up0AAAAS/faint-blush.gif',
  731. 'https://c.tenor.com/mV2LIwcx7nEAAAAC/kiznaiver-katsuhira-agata.gif',
  732.  
  733. ]
  734.  
  735.  
  736.  
  737.  
  738. whos = [
  739. 'про',
  740. 'крутой чел',
  741. 'гений',
  742. 'бабуиин',
  743. 'лузер',
  744. 'уборщик',
  745. 'приемный',
  746. 'дшка',
  747. 'гей',
  748. '5 летний боб',
  749. 'красотка'
  750.  
  751. ]
  752.  
  753.  
  754.  
  755. @bot.command(aliases=['кусь','укусить','ук','.k'])
  756. async def bite(ctx, member: discord.Member):
  757. await ctx.reply(f'{ctx.author.mention}, кусает {member.mention}')
  758. await ctx.send(f'https://c.tenor.com/w4T323o46uYAAAAC/anime-bite.gif')
  759. await message.add_reaction('✅')
  760.  
  761. @bot.command(aliases = ['owner'])
  762. async def creater(ctx):
  763. emb = discord.Embed(title='Меня создал GrummHD#8373')
  764. emb.set_image(url = 'https://wmpics.pics/di-7JX8.png')
  765. await ctx.reply(embed=emb)
  766. await message.add_reaction('✅')
  767.  
  768. @bot.command(aliases=["hello", "прив", "hi"])
  769. async def привет(ctx):
  770. await ctx.reply(f"привет {ctx.author.mention}")
  771.  
  772.  
  773.  
  774. @bot.command()
  775. @commands.has_permissions(administrator=True)
  776. async def ban(ctx, member: discord.Member, *, reason):
  777. await ctx.guild.ban(user = member, reason = reason)
  778. await ctx.reply(f'**Пользователь {member}, был забанен на сервере!**')
  779. await message.add_reaction('✅')
  780.  
  781. @bot.command(pass_context=True)
  782. @commands.has_permissions(administrator=True)
  783. async def clear(ctx, amount=9999):
  784. await ctx.channel.purge(limit=1)
  785. await ctx.channel.purge(limit=amount)
  786.  
  787. @bot.command(pass_context=True)
  788. @commands.has_permissions(administrator=True)
  789. async def set_vote(ctx, text, a, b, channel):
  790. channel = bot.get_channel(int(channel))
  791. emb = discord.Embed(title = f'Ворпрос: {text} ?', description = f'**{a} или {b}** \n \n:a: - **{a}**\n\n :b: - **{b}**', color = discord.Color.orange())
  792. message = await channel.send(embed = emb)
  793. await message.add_reaction('🅰')
  794. await message.add_reaction('🅱')
  795. """
  796. @slash.slash(name = 'set_vote', description = 'голосовани', options = [{"name": "member", "description": "пользователь", "type": 6, "requied": False}], guild_ids = [680754330022051890])
  797. @client.command(aliase = ['hi'])
  798.  
  799. async def hi(ctx, member: discord.Member = None):
  800. await ctx.send(f"Передаю привет, {member}!")
  801. """
  802. @bot.command()
  803. async def clean(ctx, amount = 1):
  804. i1 = 929670201233006622
  805. i2 = 716609465956171787
  806. i3 = 838688790964338729
  807.  
  808. if ctx.author.id == i1:
  809. await ctx.channel.purge(limit=1)
  810. await ctx.channel.purge(limit=amount)
  811.  
  812. elif ctx.author.id == i2:
  813. await ctx.channel.purge(limit=1)
  814. await ctx.channel.purge(limit=amount)
  815.  
  816. elif ctx.author.id == i2:
  817. await ctx.channel.purge(limit=1)
  818. await ctx.channel.purge(limit=amount)
  819.  
  820. else:
  821. erb = discord.Embed(title = 'Ошибка', description = 'вы не в роли модерации', color = discord.Color.red())
  822. await ctx.reply(embed = erb)
  823.  
  824. @bot.command()
  825. async def d(ctx, amount = 1):
  826. if ctx.author.id == 816581481106505729:
  827. await ctx.channel.purge(limit = 1)
  828. await ctx.channel.purge(limit = amount)
  829.  
  830. else:
  831. emb = discord.Embed(title = 'команда создателя', description = 'эту команду может использовать только создатель(GrummHD)\
  832. эта команда для того чтобы удалять сообщения **бота** и не чего больше, если вы админ то можете использовать\
  833. команду - `~clear <amount>` только не пишите просто `~clear` все сообщения будус стератся.', color = discord.Color.red())
  834. await ctx.reply(embed = emb)
  835. await message.add_reaction('❌')
  836.  
  837. @bot.command()
  838. async def original(ctx):
  839. emb = discord.Embed(title = 'Оригинальные команды бота', color = discord.Color.orange())
  840. emb.add_field(name = 'SHOOT', value = '`~shoot <member>` - застрелить', inline = False)
  841. emb.add_field(name = 'POP-IT', value = '`~popit` - Пупыт', inline = False)
  842. emb.add_field(name = 'NEWS', value = '`~news` - Новости бота', inline = False)
  843. emb.add_field(name = 'BUY', value = '`~buy <text>` - купить, рп действие для приколов', inline = False)
  844. emb.add_field(name = 'ADD-CMD', value = '`~add_command <description>` - добавить команду, в <description> пишите о команде клторую вы хотите добавить в бота.', inline = False)
  845. emb.add_field(name = 'ORIGINAL', value = '`~original` - оригинальные/свои команды бота', inline = False)
  846. emb.add_field(name = 'POP-IT', value = '`~coin` - подбросить монету', inline = False)
  847. await ctx.reply(embed = emb)
  848.  
  849. """
  850. @bot.command()
  851.  
  852. async def test(ctx, member:discord.Member):
  853. em = discord.Embed(title = 'TEST')
  854. em.set_thumbnail(url = user.icon_url)
  855. await ctx.send(embed = em)
  856. """
  857.  
  858. @bot.command()
  859. async def news(ctx):
  860. page1 = discord.Embed(title = 'Page 2', description = '**Новости бота :\n6 Новой Команды!**', color = discord.Color.green())
  861. page1.add_field(name = 'Calc', value = 'calc - calculate(калькулятор)\n~calc <число> <действие> <число>', inline = False)
  862. page1.add_field(name = 'Random', value = 'random - randomize(рандомазер)\n~random <число> <число>', inline = False)
  863. page1.add_field(name = 'link', value = '~link - дает ссылку на бота', inline = False)
  864. page1.add_field(name = 'Help', value = '~help - показывает все команды', inline = False)
  865. page1.add_field(name = 'News', value = '~news - новости бота', inline = False)
  866. page1.add_field(name = 'Другое', value = 'Вы можете стать частью команды Wolk если напишите Gᖇᑌᗰᗰᕼᗪ#5555 в ЛС и зайдете на сервер поддержки!(в обо мне сылка на серв пд)', inline = False)
  867. page1.add_field(name = 'servers', value = '~servers бот говорит на скольких серверах он есть', inline = False)
  868. page1.add_field(name = 'XD', value = '~xd - делоет XD сообщение', inline = False)
  869.  
  870. page2 = discord.Embed(title = 'Page 1', description = '**Новости бота :\n2 Новой Команды!**', color = discord.Color.green())
  871. page2.add_field(name = 'Buy', value = '~buy - рп действие для приколов - `~buy <text>`', inline = False)
  872. page2.add_field(name = 'Add_command', value = '~add_command - идеи для новох команд - `~add_command <text - хочу команду *команда* , что она делает>` если команда будет использоватся не по назночению то вас кидает в ЧС бота!', inline = False)
  873. #page1 = discord.Embed(title = 'Page 1', description = )
  874. #page1 = discord.Embed(title = 'Page 1', description = )
  875. #page1 = discord.Embed(title = 'Page 1', description = )
  876. #page1 = discord.Embed(title = 'Page 1', description = )
  877. #page1 = discord.Embed(title = 'Page 1', description = )
  878. pages = [page2, page1]
  879. message = await ctx.send(embed = page2)
  880. page = Paginator(bot, message, only=ctx.author, use_more=False, embeds=pages)
  881. await page.start()
  882. await message.add_reaction('✅')
  883. """
  884. person = int(['816581481106505729'])
  885.  
  886. @bot.command()
  887. async def give(ctx):
  888. await person.send('f')
  889. """
  890. @bot.command()
  891. async def popit(ctx):
  892. text = '\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n'
  893. #emb = discord.Embed(title = 'Пупыт - Pop-it', description = text, color = discord.Color.purple)
  894. await ctx.send('||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n')
  895. await ctx.send('||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n')
  896. await ctx.send('||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||\n||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:blue_circle:||||:yellow_circle:||||:red_circle:||||:green_circle:||||:yellow_circle:||||:red_circle:||||:blue_circle:||||:blue_square:||\n')
  897. await message.add_reaction('✅')
  898.  
  899.  
  900. @bot.command(aliases = ['tr'])
  901. async def trash(ctx, *, arg):
  902. ch = [923727727964618772]
  903. if ctx.author.id in ch:
  904. error = discord.Embed(title = 'Ошибка', description = 'вы заборкировоны иза добавлений длинных , плохох слов.+ вы не избраный', color = discord.Color.red())
  905. await ctx.reply(embed = error)
  906.  
  907. else:
  908. trash_listt.append(arg)
  909. emb = discord.Embed(title = 'Trash - CMD', description = 'Вы добавили **'+arg+'** в Trash_List', color = discord.Color.green())
  910. await ctx.reply(embed = emb)
  911.  
  912. file = open('log.txt', 'a', encoding = 'utf-8')
  913. file.write(f'Now trash-list is {trash_listt} !\nUserName - {ctx.author.name}, UserID - {ctx.author.id}, UserMENTION - {ctx.author.mention}')
  914. file.close()
  915.  
  916.  
  917. @bot.command(aliases = ['cmds'])
  918. async def commands(ctx):
  919. emb = discord.Emebed(title = f'Количество команд в боте', description = f'в боте {len(bot)}', color = discord.Color.green())
  920. await ctx.reply(embed = emb)
  921.  
  922. @bot.command()
  923. async def emoji(ctx):
  924. await ctx.send("Превед, медвед! %s" % bot.get_emoji(953616400486899772))
  925.  
  926. @bot.command()
  927. async def p(ctx, m, num):
  928. u = [936574238519877657, 936575131776589866, 936574238519877657, 953589946181095425, 953589985007796295, 953590025457655808, 953590061541261342, 953590093216616488]
  929.  
  930. if ctx.channel.id in u:
  931. for i in range(int(num)):
  932. await ctx.send(m)
  933.  
  934. else:
  935. await ctx.reply('команда только для определенного канала')
  936.  
  937. @bot.command(aliases = ['trl'])
  938. async def trash_list(ctx):
  939. emb = discord.Embed(title = 'Trash List', description = '**'+str(trash_listt)+'**', color = discord.Color.green())
  940. grumm = bot.get_user(816581481106505729)
  941. await ctx.send(embed = emb)
  942. await grumm.send(embed = emb)
  943.  
  944. scp173 = [
  945. 'https://steamuserimages-a.akamaihd.net/ugc/578996305555749494/9B50341A0BB29583AC7EB8C2E64A114BB33F9497/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true',
  946. 'https://twitter.com/scpwiki/status/1488632370001432578/photo/1',
  947. 'https://cdn.wikiwiki.jp/to/w/scpsl/SCP%E9%99%A3%E5%96%B6/SCP-173/::attach/203px-MatthewModel.png?rev=f76a947b3b8eafc425ab5bce67cb4cb9&t=20220213092636',
  948. 'https://qph.fs.quoracdn.net/main-qimg-9eab4685309d9f6f1abef51f0d21cf13-lq',
  949. 'https://steamuserimages-a.akamaihd.net/ugc/920291347190066455/ECB0F887CCC15F2D2C44FCFDF1EAECC37D8E2828/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true',
  950. 'https://file-image-storage.bowlroll.net/storage/eyJhbGciOiJIUzUxMiJ9.eyJhY3Rpb24iOiJTSE9XIiwicmV2aXNpb24iOjQ2NzY2LCJyZXNvdXJjZS1pZCI6IjE3MDc5MCIsImJ1Y2tldCI6ImZpbGUtaW1hZ2UifQ.S6yPi4prTyXJatIqW1LMkM82cL15Hfx0IXIxV8rrEHA4BIwYxcpxuuNP46Ts9lD-YMokITOpzoMhhUGYV6AL0g',
  951. 'https://en.wikipedia.org/wiki/File:2ChocolateChipCookies.jpg',
  952. 'https://images.aws.nestle.recipes/resized/5b069c3ed2feea79377014f6766fcd49_Original_NTH_Chocolate_Chip_Cookie_750_750.jpg',
  953. 'https://www.inkatrinaskitchen.com/wp-content/uploads/2012/03/Rainbow-Chocolate-Chip-Cookies-Recipe-In-Katrinas-Kitchen-600.jpg'
  954.  
  955. ]
  956.  
  957. @bot.command(aliases = ['coockie', 'cooki', 'печенька', 'scp-173', '173'])
  958. async def scp_173(ctx):
  959. rd = random.choice(scp173)
  960. emb = discord.Embed(title = 'печенька', color = discord.Color.orange())
  961. emb.set_image(url = rd)
  962. await ctx.reply(embed = emb)
  963.  
  964. @bot.command()
  965. async def card(ctx, user: discord.Member = None):
  966.  
  967. if user == None:
  968. user = ctx.author
  969.  
  970. image = Image.open("file.jpg")
  971. img = image.resize((400, 200))
  972. idraw = ImageDraw.Draw(img)
  973. title = ImageFont.truetype('d9464-arkhip_font.ttf', size = 30)
  974.  
  975. name = user.name
  976. idraw.text((170, 80), name, font = title, fill = "white")
  977.  
  978. avatar = user.avatar_url_as(size = 128)
  979. avt = BytesIO(await avatar.read())
  980. imga = Image.open(avt)
  981. imguser = imga.resize((70, 70))
  982.  
  983. img.paste(imguser, (60, 60))
  984. img.save("profile.jpg")
  985. await ctx.send(file = discord.File("profile.jpg"))
  986. img.delet()
  987.  
  988. autobump = False
  989.  
  990. @bot.command()
  991. async def stopbump(ctx):
  992. autobump = False
  993. await ctx.send('auto bump is stopped')
  994.  
  995. @bot.command()
  996. async def channels_del(ctx):
  997. if ctx.author.id == 816581481106505729:
  998.  
  999. for channel in ctx.guild.channels:
  1000. try:
  1001. await channel.delete()
  1002.  
  1003. except:
  1004. pass
  1005.  
  1006. else:
  1007. await ctx.reply('вы не создатель.')
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013. @set_vote.error
  1014. async def er(error, ctx):
  1015. if isinstance(error, MissingPermissions):
  1016. await ctx.send("Looks like you don't have the permissions.")
  1017.  
  1018.  
  1019. @bot.command()
  1020. async def autobump(ctx, arg, time, ch):
  1021. channel = bot.get_channel(int(ch))
  1022. autobump = True
  1023. await ctx.send('auto bump is activeted')
  1024. while autobump == True:
  1025. await channel.send(arg)
  1026. await sleep(time)
  1027.  
  1028. play = False
  1029.  
  1030. @bot.command()
  1031. async def stop(ctx):
  1032. play = False
  1033.  
  1034.  
  1035. @bot.command()
  1036. async def print(ctx, num1, num):
  1037. if ctx.author.id == 816581481106505729:
  1038. play = True
  1039. while play == True:
  1040. for num1 in range(int(num)):
  1041. num1 = num1 + 1
  1042. await ctx.send(num1)
  1043.  
  1044. else:
  1045. emb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
  1046. await ctx.reply(embed = emb)
  1047.  
  1048.  
  1049. @bot.command()
  1050. async def do(ctx, arg, num):
  1051. if ctx.author.id == 816581481106505729:
  1052. for i in range(int(num)):
  1053. await ctx.send(arg)
  1054.  
  1055. else:
  1056. emb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
  1057. await ctx.reply(embed = emb)
  1058.  
  1059.  
  1060. """
  1061. @bot.command()
  1062. async def popcornhackcommand(ctx):
  1063. emb = discord.Embed(title = 'POP CORN HACKING. . .', description = 'hacking . . .', color = discord.Color.red())
  1064. await ctx.reply(embed = emb)
  1065. await sleep(3)
  1066. emb2 = discord.Embed(title = 'POP CORN IS - Sucessfully hacked', color = discord.Color.red())
  1067. await ctx.reply(embed = emb2)"""
  1068.  
  1069.  
  1070. # embeds = [embed1, embed2, embed3, embed4]
  1071. # message = await ctx.send(embed=embed1)
  1072. # page = Paginator(bot, message, only=ctx.author, use_more=False, embeds=embeds)
  1073. # await page.start()
  1074.  
  1075. alpha_news = '**Новости бота :2 Новой Команды!\n\n1) calc - calculate(калькулятор)\n~calc <число> <действие> <число>\n\n2) random - randomize(рандомазер)\n~random <число> <число>**\n\nВы можете стать частью команды Wolk если напишите Gᖇᑌᗰᗰᕼᗪ#5555 в ЛС и зайдете на сервер поддержки!(в обо мне сылка на серв пд)'
  1076.  
  1077. # cogs
  1078. """
  1079. @bot.command()
  1080. async def load(ctx, extension):
  1081. if ctx.author.id == 816581481106505729:
  1082. bot.load_extention(f'cogs.{extension}')
  1083. emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully loaded.', color = discord.Color.green())
  1084. await ctx.send(embed = emb)
  1085.  
  1086. else:
  1087. emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
  1088. await ctx.reply(embed = emb)
  1089.  
  1090. @bot.command()
  1091. async def reload(ctx, extension):
  1092. if ctx.author.id == 816581481106505729:
  1093. bot.unload_extention(f'cogs.{extension}')
  1094. bot.load_extention(f'cogs.{extension}')
  1095. emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully reloaded.', color = discord.Color.green())
  1096. await ctx.send(embed = emb)
  1097.  
  1098. else:
  1099. emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
  1100. await ctx.reply(embed = emb)
  1101.  
  1102. @bot.command()
  1103. async def unload(ctx, extension):
  1104. if ctx.author.id == 816581481106505729:
  1105. bot.unload_extention(f'cogs.{extension}')
  1106. emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully reloaded.', color = discord.Color.green())
  1107. await ctx.send(embed = emb)
  1108.  
  1109. else:
  1110. emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
  1111. await ctx.reply(embed = emb)
  1112.  
  1113. for filename in os.listdir('./cogs'):
  1114. if filename.endswith('.py'):
  1115. bot.load_extension(f'cogs.{filename[:-3]}')
  1116.  
  1117. """
  1118.  
  1119. @bot.event
  1120. async def on_message(message):
  1121. if "+1" in message.content.lower():
  1122. for i in range(1):
  1123. await message.channel.send('<@!420176777143648257>')
  1124. await bot.process_commands(message)
  1125.  
  1126.  
  1127. def write(data, filename):
  1128. data = json.dumps(data)
  1129. data = json.loads(str(data))
  1130. with open(filename, 'w', encoding = 'utf-8') as file:
  1131. json.dump(data, file, indent = 4)
  1132.  
  1133.  
  1134. buttons = [
  1135. [
  1136. Button(style=ButtonStyle.grey, label='1'),
  1137. Button(style=ButtonStyle.grey, label='2'),
  1138. Button(style=ButtonStyle.grey, label='3'),
  1139. Button(style=ButtonStyle.blue, label='×'),
  1140. Button(style=ButtonStyle.red, label='выйти')
  1141. ],
  1142. [
  1143. Button(style=ButtonStyle.grey, label='4'),
  1144. Button(style=ButtonStyle.grey, label='5'),
  1145. Button(style=ButtonStyle.grey, label='6'),
  1146. Button(style=ButtonStyle.blue, label='÷'),
  1147. Button(style=ButtonStyle.red, label='←')
  1148. ],
  1149. [
  1150. Button(style=ButtonStyle.grey, label='7'),
  1151. Button(style=ButtonStyle.grey, label='8'),
  1152. Button(style=ButtonStyle.grey, label='9'),
  1153. Button(style=ButtonStyle.blue, label='+'),
  1154. Button(style=ButtonStyle.red, label='Очистить')
  1155. ],
  1156. [
  1157. Button(style=ButtonStyle.grey, label='00'),
  1158. Button(style=ButtonStyle.grey, label='0'),
  1159. Button(style=ButtonStyle.grey, label='.'),
  1160. Button(style=ButtonStyle.blue, label='-'),
  1161. Button(style=ButtonStyle.green, label='=')
  1162. ],
  1163. ]
  1164.  
  1165. #calculates answer
  1166. def calculate(exp):
  1167. o = exp.replace('×', '*')
  1168. o = o.replace('÷', '/')
  1169. result = ''
  1170. try:
  1171. result = str(eval(o))
  1172. except:
  1173. result = 'Ошибка'
  1174. return result
  1175.  
  1176. @bot.command()
  1177. async def calc(ctx):
  1178. m = await ctx.send(content='Загружаю калькулятор')
  1179. expression = 'None'
  1180. delta = datetime.datetime.utcnow() + datetime.timedelta(minutes=5)
  1181. e = discord.Embed(title=f'калькулятор {ctx.author.name} | {ctx.author.id}', description=expression,
  1182. timestamp=delta)
  1183. await m.edit(components=buttons, embed=e)
  1184. while m.created_at < delta:
  1185. res = await bot.wait_for('button_click')
  1186. if res.author.id == int(res.message.embeds[0].title.split('|')[1]) and res.message.embeds[
  1187. 0].timestamp < delta:
  1188. expression = res.message.embeds[0].description
  1189. if expression == 'None' or expression == 'Ошибка':
  1190. expression = ''
  1191. if res.component.label == 'выйти':
  1192. await res.respond(content='Calculator Closed', type=7)
  1193. break
  1194. elif res.component.label == '←':
  1195. expression = expression[:-1]
  1196. elif res.component.label == 'Clear':
  1197. expression = 'None'
  1198. elif res.component.label == '=':
  1199. expression = calculate(expression)
  1200. else:
  1201. expression += res.component.label
  1202. f = discord.Embed(title=f'калькулятор {res.author.name}|{res.author.id}', description=expression,
  1203. timestamp=delta)
  1204. await res.respond(content='', embed=f, components=buttons, type=7)
  1205.  
  1206.  
  1207.  
  1208. @bot.command()
  1209. async def create_profile(ctx, aname = None):
  1210. if aname == None:
  1211. emb = discord.Embed(title = 'Ошибка', description = 'Привет вы хотите создать акаунт в Wolk? пропишите команду аот так чтобы создать акаунт! `~create_profile <name>`', color = discord.Color.red())
  1212. await ctx.reply(embed = emb)
  1213.  
  1214. else:
  1215. data = {
  1216. "users" : []
  1217. }
  1218.  
  1219.  
  1220.  
  1221. # data['users'].append(User(aname, my_id)
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. @bot.command()
  1229. async def send(ctx, title, description, arg):
  1230. if ctx.author.id == 816581481106505729:
  1231.  
  1232. channel = bot.get_channel(int(arg))
  1233. emb = discord.Embed(title = title, description = description, color = discord.Color.green())
  1234. await channel.send(embed = emb)
  1235.  
  1236. else:
  1237. eremb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
  1238. await ctx.reply(embed = eremb)
  1239.  
  1240. @bot.command()
  1241. async def opme(ctx):
  1242. await ctx.reply('Вы больше не оператор.')
  1243.  
  1244.  
  1245.  
  1246.  
  1247. bot.run('#')
Advertisement
Add Comment
Please, Sign In to add comment