Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import sqlite3
- import random
- import time
- import googletrans
- import requests
- import io
- import os
- import datetime
- import json
- """
- from discord_slash import SlashCommand
- from discord_slash.utils.manage_commands import create_option
- """
- from discord.ext.commands.cooldowns import BucketType
- from io import BytesIO
- from PIL import Image, ImageFont, ImageDraw
- from googletrans import Translator
- from asyncio import sleep
- from discord.ext import commands
- from discord_components import DiscordComponents, Button, ButtonStyle
- from discord.utils import get
- from Cybernator import Paginator
- trash_listt = ['HELLo', 'а', 'VERKEY', 'test', 'list', 'test']
- #cogs = [
- # "Test"
- #]
- #
- # os.chdir("C:\\Pyhton\\bot\\Manager\\JSON")
- bot = commands.Bot(command_prefix=['~'], intents=discord.Intents.all())
- # slash = SlashCommand(bot, sync_commands = True)
- bot.remove_command("help")
- async def w():
- await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~help"))
- await sleep(10)
- await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~news"))
- await sleep(10)
- await bot.change_presence(status=discord.Status.idle, activity=discord.Game("~хелп"))
- await sleep(10)
- @bot.event
- async def on_ready():
- print('Ready!')
- DiscordComponents(bot)
- while True:
- await w()
- #(activity=nextcord.Streaming(name=status, url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"))
- @bot.command(aliases = ['youtube', 'channel', 'ютуб', 'grummplay', 'grummhd'])
- async def yt(ctx):
- await ctx.send(
- embed = discord.Embed(title = 'Наш YouTube канал **GrummPlay**', color = discord.Color.red()),
- components = [
- Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/channel/UC3Q3VLnJUYoclmXJgFWedIQ?sub_confirmation', label = 'Подписатся' , emoji = '💥'),
- Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/watch?v=VhrSs43WH-s', label = 'Поставить лайк', emoji = '👍'),
- Button(style = ButtonStyle.URL, url = 'https://www.youtube.com/channel/UC3Q3VLnJUYoclmXJgFWedIQ', label = 'Перейти', emoji = '🌐')
- ]
- #response = await bot.wait_for('button_click')
- #if response.channel == ctx.channel:
- # if response.component.label == 'Подписатся':
- # await response.respond(content = 'Gp')
- )
- await message.add_reaction('✅')
- """
- @bot.command()
- async def help(ctx, arg = None):
- emb = discord.Embed(title = 'documentation of **WolkBot**.', color = discord.Color.green())
- emb.add_field(name = 'Information', value = info, inline = False)
- emb.add_field(name = 'Images', value = img, inline = False)
- emb.add_field(name = 'Role-Play', value = rp, inline = False)
- emb.add_field(name = 'Mini-Games', value = mini, inline = False)
- emb.add_field(name = 'Moderation', value = moder, inline = False)
- emb.add_field(name = 'Effective', value = do, inline = False)
- await ctx.reply(embed = emb)
- """
- @bot.command()
- async def buy(ctx, *, arg):
- emb = discord.Embed(description = f'**{ctx.message.author.mention} покупает '+str(arg)+'**', color = discord.Color.purple())
- await ctx.send(embed = emb)
- """
- @bot.command()
- async def help(ctx, arg = None):
- emb = discord.Embed(title = 'documentation of **WolkBot**.', color = discord.Color.green())
- emb.add_field(name = 'Information', value = info, inline = False)
- emb.add_field(name = 'Images', value = img, inline = False)
- emb.add_field(name = 'Role-Play', value = rp, inline = False)
- emb.add_field(name = 'Mini-Games', value = mini, inline = False)
- emb.add_field(name = 'Moderation', value = moder, inline = False)
- emb.add_field(name = 'Effective', value = do, inline = False)
- emb.add_field(name = 'Legend', value = legend, inline = False)
- await ctx.reply(embed = emb)
- await message.add_reaction('✅')
- """
- @bot.command(aliases = ['хелп'])
- async def help(ctx, arg = None):
- emb = discord.Embed(title = 'Команды бота **WolkBot**.', color = discord.Color.green())
- emb.add_field(name = 'Информация', value = info, inline = False)
- emb.add_field(name = 'Картинки', value = img, inline = False)
- emb.add_field(name = 'Ролевые-Игры', value = rp, inline = False)
- emb.add_field(name = 'Мини-Игры', value = mini, inline = False)
- emb.add_field(name = 'Админитсративные', value = moder, inline = False)
- 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)
- emb.add_field(name = 'Легендальные', value = legend, inline = False)
- emb.add_field(name = 'Фан', value = fun, inline = False)
- await ctx.reply(embed = emb)
- ######
- #if __name__ == "__main__":
- # for extention in cogs:
- # cog = f"cogs.{extention}"
- # try:
- # bot.load_extention(cog)
- # except Exception as e:
- # print(e)
- # ECO
- @bot.command()
- async def balance(ctx):
- await open_account(ctx.author)
- user = ctx.author
- users = await get_bank_data()
- wallet_amt = users[str(user.id)]["wallet"]
- xp_amt = users[str(user.id)]["xp"]
- emb = discord.Embed(title = f'Баланс участника {ctx.author.name}.', color = discord.Color.orange())
- emb.add_field(name = 'Валюта', value = wallet_amt)
- emb.add_field(name = 'XP', value = xp_amt, inline = False)
- await ctx.reply(embed = emb)
- """
- @bot.command()
- async def beg(ctx):
- await open_account(ctx.author)
- user = ctx.author
- users = await get_bank_data()
- earnings = random.randrange(101)
- await ctx.reply(f'Кто-то вам дал {earnings} денег!')
- users[str(user.id)]["wallet"] += earnings
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- """
- async def open_account(user):
- users = await get_bank_data()
- if str(user.id) in users:
- return False
- else:
- users[str(user.id)] = {}
- users[str(user.id)]["wallet"] = 0
- users[str(user.id)]["xp"] = 0
- users[str(user.id)]["store_q"] = 0
- users[str(user.id)]["store_q_lv"] = 1 # 20
- users[str(user.id)]["ccot"] = 1
- users[str(user.id)]["store_ac"] = False
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- return True
- async def get_bank_data():
- with open("main_bank.json", "r") as f:
- users = json.load(f)
- return users
- @bot.command()
- @commands.cooldown(1, 60, commands.BucketType.user)
- async def work(ctx):
- await open_account()
- users = await get_bank_data()
- user = ctx.author
- works = [
- '4',
- '3',
- '2',
- '1',
- '0'
- ]
- a = random.choice(works)
- work = a
- emb = None
- money = 0
- if work == 0:
- emb = discord.Embed(title = 'Работа', description = 'вы поработали так плохо что не чего не получили((', color = discord.Color.orange())
- elif work == 1:
- money = random.randint(1, 10)
- emb = discord.Embed(title = 'Работа', description = f'Вы плохо поработали но хоть что-то получили( +{money} питонов', color = discord.Color.orange())
- elif work == 2:
- money = random.randint(10, 30)
- emb = discord.Embed(title = 'Работа', description = f'вы нормально поработали и заработали {money} питонов!', color = discord.Color.orange())
- elif work == 3:
- money = random.randint(40, 70)
- emb = discord.Embed(title = 'Работа', description = f'Вы хорошо поработали и получили целых {money} питонов!!!', color = discord.Color.orange())
- else:
- money = random.randint(100, 400)
- emb = discord.Embed(title = 'Работа', description = f'Вы так хорошо поработали что заработали целых **{money}**!!!!!!!', color = discord.Color.orange())
- @bot.event
- async def on_command_error(ctx, error):
- if isinstance(error, commands.commandOnCooldown):
- emb = discord.Embed(title = '❌ Error', description = 'подождите еще {:.2f} секунд'.format(error.retry_after))
- await ctx.reply(embed = emb)
- """
- @bot.command()
- async def start_store(ctx):
- await open_account(ctx.author)
- user = ctx.author
- users = await get_bank_data()
- store_q = users[str(user.id)]["store_ac"]
- if users[str(user.id)]["store_ac"] == False:
- emb = discord.Embed(title = '✅Successful', description = 'Вы начили своё копление питонов!', color = discord.Color.green())
- await ctx.reply(embed = emb)
- else:
- eremb = discord.Embed(title = '❌ Error', description = 'Вы уже копите питоны!')
- await ctx.reply(embed = eremb)
- return
- inonetc = users[str(user.id)]["ccot"]
- users[str(user.id)]["store_ac"] = True
- store = users[str(user.id)]["store_ac"]
- store_time_lvl = users[str(user.id)]["store_q_lv"]
- while store == True:
- time.sleep(store_time_lvl)
- users[str(user.id)]["store_q"] = users[str(user.id)]["store_q"] + users[str(user.id)]["ccot"]
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- @bot.command()
- async def stop_store(ctx):
- await open_account(ctx.author)
- users = await get_bank_data()
- user = ctx.author
- users[str(user.id)]["store_ac"] = False
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- @bot.command()
- async def update_balance(ctx):
- try:
- users = await get_bank_data()
- user = ctx.author
- a = users[str(user.id)]["store_q"]
- users[str(user.id)]["wallet"] = users[str(user.id)]["wallet"] + users[str(user.id)]["store_q"]
- users[str(user.id)]["store_q"] = 0
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- embb = discord.Embed(title = '✅Successful', description = f'Вы пополнили свой баланс! +{a}', color = discord.Color.green())
- await ctx.reply(embed = embb)
- except:
- await open_account(ctx.author)
- users = await get_bank_data()
- user = ctx.author
- a = users[str(user.id)]["store_q"]
- users[str(user.id)]["wallet"] = users[str(user.id)]["wallet"] + users[str(user.id)]["store_q"]
- users[str(user.id)]["store_q"] = 0
- with open("main_bank.json", "w") as f:
- json.dump(users, f, indent = 4)
- embb = discord.Embed(title = '✅Successful', description = f'Вы пополнили свой баланс! +{a}', color = discord.Color.green())
- await ctx.reply(embed = embb)
- # await start_store(ctx)
- """
- @bot.command()
- async def ping(ctx):
- emb = discord.Embed(title = 'Pong:', description = f'Ваш ping: {round(bot.latency * 1000)}ms', color = discord.Color.blue())
- await ctx.reply(embed=emb)
- @bot.command(aliases = ['iqtwst', 'IQ', 'IQ-test'])
- async def iq(ctx, member: discord.Member = None):
- if ctx.author.id == 816581481106505729:
- member = ctx.author
- emb2 = discord.Embed(title = 'IQ test', description = f'**у вас 1000000 IQ!**', color = discord.Color.blue())
- await ctx.reply(embed = emb2)
- return
- if member == None:
- member = ctx.author
- emb2 = discord.Embed(title = 'IQ test', description = f'**у вас {random.randint(0, 200)} IQ!**', color = discord.Color.blue())
- await ctx.reply(embed = emb2)
- else:
- emb = discord.Embed(title = 'IQ test', description = f'**у участника {member} {random.randint(0, 100)} % IQ!**', color = discord.Color.blue())
- await ctx.reply(embed = emb)
- @bot.command(aliases = ['чс', 'ЧС'])
- async def hc(ctx, member: discord.Member = None):
- if member == None:
- eremb = discord.Embed(title = 'Ошибка', description = 'напишите участника которого вы хотите записать в черный спимок)', color = discord.Color.red())
- await ctx.reply(embed = eremb)
- elif member.id == 816581481106505729:
- embb = discord.Embed(title = 'Ошибка', description = 'данного участника не существует...', color = discord.Color.red())
- await ctx.reply(embed = embb)
- else:
- emb = discord.Embed(title = 'ЧС', description = f'{member.mention} записан в Черный-Список.')
- await ctx.reply(embed = emb)
- @bot.command()
- async def add_command(ctx, *, arg):
- user = bot.get_user(816581481106505729)
- hc = []
- if ctx.author.id == hc:
- er = discord.Embed(color = discord.Color.red(), title = 'Ошибка', description = 'вы в ЧС иза негативных сообщений с помощю команды `~add_command`!Если хотите размута то напишите Gᖇᑌᗰᗰᕼᗪ#5555!')
- await ctx.reply(embed = emb2)
- else:
- emb = discord.Embed(title = 'Выполнено ✅', color = discord.Color.green(), description = 'сообщение было отправлено создателю, если сообщение будет негативное то вы попадаете в ЧС бота.')
- await ctx.reply(embed = emb)
- emb = discord.Embed(title = 'Сообщение', description = f'{ctx.author.mention}, хочет добавить команду **'+str(arg)+'** в бота.')
- await user.send(embed = emb)
- """
- @bot.command(aliases = ['calc', 'посчитать', 'вычиcлить'])
- async def calculate(ctx, arg1, arg, arg2):
- try:
- if arg == '+':
- a = int(arg1) + int(arg2)
- elif arg == '-':
- a = int(arg1) - int(arg2)
- elif arg == '*' or 'x':
- a = int(arg1) * int(arg2)
- elif arg == '/' or 'r':
- a = int(arg1) / int(arg2)
- except:
- if arg == '+':
- a = float(arg1) + float(arg2)
- elif arg == '-':
- a = float(arg1) - float(arg2)
- elif arg == '*' or 'x':
- a = float(arg1) * float(arg2)
- elif arg == '/' or 'r':
- a = float(arg1) / float(arg2)
- emb = discord.Embed(title = 'Результат вычисления выражения `'+str(arg1)+str(arg)+str(arg2)+'`:', description = '```'+str(a)+'```', color = discord.Color.red())
- await ctx.reply(embed = emb)
- await message.add_reaction('✅')
- """
- @bot.command(aliases = ['random'])
- async def randomize(ctx, arg, arg2):
- a = int(arg)
- b = int(arg2)
- rn = random.randint(a, b)
- try:
- emb = discord.Embed(title = f'Рандомное число из '+str(arg)+' до '+str(arg2)+':', description = f'```'+str(rn)+'```', color = discord.Color.green())
- await ctx.reply(embed = emb)
- except:
- await ctx.reply(str(rn))
- @bot.command()
- async def servers(ctx):
- guilds = await bot.fetch_guilds(limit = None).flatten()
- emb = discord.Embed(description = f'**Бот на {len(guilds)} серверах!**', color = discord.Color.red())
- await ctx.reply(embed = emb)
- for guild in bot.guilds:
- emb = discord.Embed(title = str(guild), color = discord.Color.green())
- emb.set_thumbnail(url = guild.icon_url)
- emb.add_field(name = 'Owner:', value = guild.owner.mention, inline=False)
- emb.add_field(name = 'Members:', value = guild.member_count, inline=False)
- await ctx.reply(embed = emb)
- @bot.command()
- async def report(ctx, *, text):
- hcm = []
- if ctx.author.id == hcm:
- error = discord.Embed(title = 'Ошибка', description = 'вы заборкировоны', color = discord.Color.red())
- await ctx.reply(embed = error)
- else:
- file = open('REPORTS.txt', 'a', encoding = 'utf-8')
- file.write(f'FROM {ctx.author.name} : {text} \n ID: {ctx.author.id} \n {ctx.author.mention}\n\n')
- file.close()
- emb = discord.Embed(title = 'REPORT', description = 'Жалоба / Ворпрос: отправлено', color = discord.Color.red())
- await ctx.reply(embed = emb)
- # @commands.has_permissions(administrator=True)
- @bot.command(aliases = ['trans'])
- async def translate(ctx, lang, *, args):
- t = Translator()
- a = t.translate(args, dest=lang)
- emb = discord.Embed(title = 'Перевод: ', description = a.text, color = discord.Color.purple())
- await ctx.reply(embed = emb)
- @bot.command()
- async def link(ctx):
- emb = discord.Embed(title = 'link на бота', description = 'https://discord.com/api/oauth2/authorize?client_id=915182499636854794&permissions=545394785527&scope=bot', color = discord.Color.blue())
- await ctx.author.send(embed = emb)
- await ctx.reply('Ссылка на бота была отправлина вам в лс!')
- moder = '`~set_vote <question> <a> <b> <channel-id>`, `~clear`, `~ban`, `~kick`, `~report <text>`, `~add_command <the message to creater (command name, function)>`'
- info = '`~servers`,`~youtube(aliases: yt, grummplay)`, `~bot_server(aliases: bs, botsv)`, `~creater(aliases: owner)`,`~language`' #~best_people(aliases: top)
- rp = '`~hc`,`~bite <user>`,`~shoot <user>`,`~kill <user>`,`~buy`,`~iq`,`~крутой <user>`,`~meme`,`~who <@user>`,`~kill <@user>`'
- img = '`~card`,`~amogus`,`~snake`,`~meme`,`~xd`,`~avatar <member>`, `~печенька - aliases = 173`'
- mini = '`~ball`, `~popit`, `~xd`,`~embed <title> <description> <color>`'
- 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)>`'
- legend = '`~trash <text>`, `~trash_list`, `~card`, `hc`, `~iq`, `~embed <title> <description> <color>`'
- fun = '`~hc`, `~IQ`, `~ball`, `~trash,~trash_list`, `~buy`, `~meme`, `~who <@user>`, `~embed <title> <description> <color>`'
- ######
- @bot.command()
- async def say(ctx, *, saymsg, amount=1):
- await ctx.channel.purge(limit=1)
- emb = discord.Embed(title = saymsg, description = f'автор: {ctx.message.author.mention}')
- await ctx.send(embed = emb)
- @bot.command(aliases=["bs", "botsv"])
- async def bot_server(ctx):
- await ctx.author.send(
- f"{ctx.author.mention} поддержка Бота Wolk https://discord.gg/H7skVqbdE2"
- )
- @bot.command(aliases=['кр'])
- async def крутой(ctx, member:discord.Member):
- emb = discord.Embed(title = f'{member.name} крутой на {random.randint(0, 101)}%!', color = discord.Color.red())
- 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')
- await ctx.reply(embed = emb)
- @bot.command()
- async def server_avatar(ctx):
- emb = discord.Embed(title = f'Аватарка сервера - {ctx.guild.name}')
- emb.set_image(url = guild.avatar_url())
- await ctx.reply(embed = emb)
- @bot.command()
- async def ball(ctx, *, arg):
- rd_word = random.choice(co1)
- emb = discord.Embed(title = 'Предсказание', color = discord.Color.purple(), description = rd_word)
- await ctx.reply(embed = emb)
- @bot.command(aliases=['мем','Мем','мемы','.m'])
- async def meme(ctx):
- emb = discord.Embed(title = 'Мем', color = discord.Color.green())
- rd_link = random.choice(memes)
- emb.set_image(url = rd_link)
- await ctx.reply(embed = emb)
- channel_error = discord.Embed(title = 'Error', description = 'этот канал не зарегестривон.', color = discord.Color.red())
- @bot.command()
- async def xd_spam(ctx, num):
- channels = [892452947269660783]
- if ctx.channel.id in channels:
- for i in range(int(num)):
- 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')
- else:
- await ctx.send(embed = channel_error)
- @bot.command()
- async def embed(ctx, title, description, color = discord.Color.green()):
- if color == 'red':
- color = discord.Color.red()
- elif color == 'blue':
- color = discord.Color.blue()
- elif color == 'green':
- color = discord.Color.green()
- elif color == 'orange':
- color = discord.Color.orange()
- elif color == 'purple':
- color = discord.Color.purple()
- emb = discord.Embed(title = title, description = description, color = color)
- await ctx.reply(embed = emb)
- @bot.command()
- async def coin(ctx, arg = 'решка', arg2 = 'орел'):
- if arg and arg2 == None:
- rd2 = random.choice('решка','орел')
- emb2 = discord.Embed(title = 'Решение: ', description = rd2, color = discord.Color.orange())
- await ctx.reply(embed = emb2)
- else:
- args_list = [arg, arg2]
- rd = random.choice(args_list)
- emb1 = discord.Embed(title = 'Решение:', description = rd, color = discord.Color.orange())
- await ctx.reply(embed = emb1)
- @bot.command()
- async def avatar(ctx, member: discord.Member = None):
- if member == None:#если не упоминать участника тогда выводит аватар автора сообщения
- member = ctx.author
- embed = discord.Embed(color = 0x22ff00, title = f"Аватар участника - {member.name}", description = f"[Нажмите что бы скачать аватар]({member.avatar_url})")
- embed.set_image(url = member.avatar_url)
- await ctx.send(embed = embed)
- @bot.command()
- async def language(ctx):
- emb = discord.Embed(description = 'бот написан на языке **Python**')
- await ctx.reply(embed = emb)
- @bot.command()
- async def xd(ctx):
- 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')
- await message.add_reaction('✅')
- memes = [
- 'https://i.imgur.com/JQGhevZ.jpg',
- 'https://b1.filmpro.ru/c/824432.700xp.jpg',
- 'https://b1.filmpro.ru/c/824433.700xp.jpg',
- 'https://b1.filmpro.ru/c/824434.700xp.jpg',
- 'https://b1.filmpro.ru/c/824435.700xp.jpg',
- 'https://b1.filmpro.ru/c/824436.700xp.jpg',
- 'https://b1.filmpro.ru/c/824437.700xp.jpg',
- 'https://b1.filmpro.ru/c/824438.700xp.jpg',
- 'https://b1.filmpro.ru/c/824439.700xp.jpg',
- 'https://b1.filmpro.ru/c/824440.700xp.jpg',
- 'https://b1.filmpro.ru/c/824441.700xp.jpg',
- 'https://user92966.clients-cdnnow.ru/upload/medialibrary/faf/faf273d27c36991db3c1158e32fd8d9e.png?1530630973390529',
- 'https://user92966.clients-cdnnow.ru/upload/medialibrary/83b/83b10d5849522495eff36f2d5a70dabe.png?1530636584947773',
- 'https://lux.fm/uploads/media_news/2020/12/5fec7f041b85d694636641.jpg?w=770&h=433&il&q=85&output=jpg&fit=cover&a=top',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80b836f00267998545.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80b952156411885523.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80bb83a96256126480.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80bc1461b073027666.png?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80bb039dd591220909.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80bd53b44008115809.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80b9ead9a555581986.jpg?w=640&v=63',
- 'https://lux.fm/uploads/media_news/2020/12/5fec80ba767df921674189.jpg?w=640&v=63'
- ]
- co1 = [
- 'Да',
- 'Секрет',
- 'Лучше вам не знать',
- 'Чут-чуть',
- 'Нет',
- 'Совсем нет',
- 'Да но лунтик упадет вот что будет'
- ]
- @bot.command()
- async def amogus(ctx):
- emb = discord.Embed(title = 'AMOGUS', color = discord.Color.red())
- rd_link = random.choice(amogus)
- emb.set_image(url = rd_link)
- await ctx.reply(embed = emb)
- await message.add_reaction('✅')
- amogus = [
- 'https://c.tenor.com/_w6ZZRaMtlQAAAAi/amongus-datass.gif',
- 'https://c.tenor.com/j4Sp6zsl87IAAAAC/among-us.gif',
- 'https://c.tenor.com/YebbLUmkg9YAAAAd/among-us.gif',
- 'https://c.tenor.com/vHroFuuevf0AAAAC/among-us.gif',
- 'https://c.tenor.com/H46daZMWzi4AAAAC/sus-buff.gif',
- 'https://c.tenor.com/dEE3Md_6h9cAAAAC/amogus.gif',
- 'https://c.tenor.com/h99LQHUExJIAAAAd/19dollar-fortnite-card-among-us.gif',
- 'https://c.tenor.com/auHXPbtu824AAAAM/sushichaeng-among-us.gif',
- 'https://c.tenor.com/nhqXUHVKCJcAAAAC/puppyy3533amoung-us-puppyy-kitchen-pantry-amoung-us-impostor.gif',
- 'https://c.tenor.com/1bHFBLnruUUAAAAC/among-us.gif'
- ]
- @bot.command()
- async def snake(ctx):
- emb = discord.Embed(title = 'змея', color = discord.Color.green())
- rd_link = random.choice(snakes)
- emb.set_image(url = rd_link)
- await ctx.reply(embed = emb)
- await message.add_reaction('✅')
- @bot.command()
- async def shoot(ctx, member:discord.Member):
- emb = discord.Embed(description = f'{ctx.message.author.mention}⠀застрелил(а) {member.mention}')
- rd = random.choice(shoot)
- emb.set_image(url = rd)
- await ctx.reply(embed=emb)
- await message.add_reaction('✅')
- @bot.command()
- async def kill(ctx, member:discord.Member):
- emb = discord.Embed(description = f'{ctx.message.author.mention}, Убил {member.mention}')
- rd = random.choice(kill)
- emb.set_image(url = rd)
- await ctx.reply(embed = emb)
- await message.add_reaction('✅')
- @bot.command(aliases=['kto','who is','who'])
- async def кто(ctx, member:discord.Member):
- rd = random.choice(whos)
- emb = discord.Embed( title = rd)
- await ctx.reply(embed=emb)
- await message.add_reaction('✅')
- snakes = [
- 'https://cdn.pixabay.com/photo/2019/02/06/17/09/snake-3979601_1280.jpg',
- 'https://cdn.pixabay.com/photo/2014/11/23/21/22/snake-543243_1280.jpg',
- 'https://cdn.pixabay.com/photo/2014/08/15/21/40/snake-419043_1280.jpg',
- 'https://cdn.pixabay.com/photo/2014/12/25/14/54/snake-579682_1280.jpg',
- 'https://cdn.pixabay.com/photo/2014/10/25/00/17/snake-501986_1280.jpg',
- 'https://cdn.pixabay.com/photo/2015/02/28/15/25/rattlesnake-653642_1280.jpg',
- 'https://cdn.pixabay.com/photo/2016/03/31/19/29/animals-1295060_1280.png',
- 'https://cdn.pixabay.com/photo/2016/06/30/11/44/grass-snake-1488853_1280.jpg',
- 'https://cdn.pixabay.com/photo/2015/09/17/20/21/snake-944651_1280.jpg'
- ]
- shoot = [
- 'https://c.tenor.com/AGTqt-wXyiEAAAAC/nichijou-minigun.gif',
- 'https://c.tenor.com/iMtcqbBzc5sAAAAC/anime-shooting.gif',
- 'https://c.tenor.com/AeOgMT85jokAAAAC/assasination-classrom-gun.gif',
- 'https://c.tenor.com/gQkJLMcaZiIAAAAd/anime-gun.gif',
- 'https://c.tenor.com/9xF9nWcq-6AAAAAC/shoot-pow.gif',
- 'https://c.tenor.com/sPTgNZ57croAAAAC/bang-black-lagoon.gif',
- ]
- kill = [
- 'https://c.tenor.com/Ce8ZMfAcjdoAAAAC/anime.gif',
- 'https://c.tenor.com/9Ql_VyYvMZkAAAAC/anime-sleeping.gif',
- 'https://c.tenor.com/_aMkVJcxClIAAAAC/yu-yu-hakusho-anime.gif',
- 'https://c.tenor.com/mV2LIwcx7nEAAAAC/kiznaiver-katsuhira-agata.gif',
- 'https://c.tenor.com/BEpigDhNThMAAAAS/de-ad-ch-at-xd-chat-ded.gif',
- 'https://c.tenor.com/zZ2NA1iyuIsAAAAS/noragami-yato.gif',
- 'https://c.tenor.com/zcN9bE0QtOUAAAAC/sponge-bob-meme.gif',
- 'https://c.tenor.com/-ELNZ-i1Up0AAAAS/faint-blush.gif',
- 'https://c.tenor.com/mV2LIwcx7nEAAAAC/kiznaiver-katsuhira-agata.gif',
- ]
- whos = [
- 'про',
- 'крутой чел',
- 'гений',
- 'бабуиин',
- 'лузер',
- 'уборщик',
- 'приемный',
- 'дшка',
- 'гей',
- '5 летний боб',
- 'красотка'
- ]
- @bot.command(aliases=['кусь','укусить','ук','.k'])
- async def bite(ctx, member: discord.Member):
- await ctx.reply(f'{ctx.author.mention}, кусает {member.mention}')
- await ctx.send(f'https://c.tenor.com/w4T323o46uYAAAAC/anime-bite.gif')
- await message.add_reaction('✅')
- @bot.command(aliases = ['owner'])
- async def creater(ctx):
- emb = discord.Embed(title='Меня создал GrummHD#8373')
- emb.set_image(url = 'https://wmpics.pics/di-7JX8.png')
- await ctx.reply(embed=emb)
- await message.add_reaction('✅')
- @bot.command(aliases=["hello", "прив", "hi"])
- async def привет(ctx):
- await ctx.reply(f"привет {ctx.author.mention}")
- @bot.command()
- @commands.has_permissions(administrator=True)
- async def ban(ctx, member: discord.Member, *, reason):
- await ctx.guild.ban(user = member, reason = reason)
- await ctx.reply(f'**Пользователь {member}, был забанен на сервере!**')
- await message.add_reaction('✅')
- @bot.command(pass_context=True)
- @commands.has_permissions(administrator=True)
- async def clear(ctx, amount=9999):
- await ctx.channel.purge(limit=1)
- await ctx.channel.purge(limit=amount)
- @bot.command(pass_context=True)
- @commands.has_permissions(administrator=True)
- async def set_vote(ctx, text, a, b, channel):
- channel = bot.get_channel(int(channel))
- emb = discord.Embed(title = f'Ворпрос: {text} ?', description = f'**{a} или {b}** \n \n:a: - **{a}**\n\n :b: - **{b}**', color = discord.Color.orange())
- message = await channel.send(embed = emb)
- await message.add_reaction('🅰')
- await message.add_reaction('🅱')
- """
- @slash.slash(name = 'set_vote', description = 'голосовани', options = [{"name": "member", "description": "пользователь", "type": 6, "requied": False}], guild_ids = [680754330022051890])
- @client.command(aliase = ['hi'])
- async def hi(ctx, member: discord.Member = None):
- await ctx.send(f"Передаю привет, {member}!")
- """
- @bot.command()
- async def clean(ctx, amount = 1):
- i1 = 929670201233006622
- i2 = 716609465956171787
- i3 = 838688790964338729
- if ctx.author.id == i1:
- await ctx.channel.purge(limit=1)
- await ctx.channel.purge(limit=amount)
- elif ctx.author.id == i2:
- await ctx.channel.purge(limit=1)
- await ctx.channel.purge(limit=amount)
- elif ctx.author.id == i2:
- await ctx.channel.purge(limit=1)
- await ctx.channel.purge(limit=amount)
- else:
- erb = discord.Embed(title = 'Ошибка', description = 'вы не в роли модерации', color = discord.Color.red())
- await ctx.reply(embed = erb)
- @bot.command()
- async def d(ctx, amount = 1):
- if ctx.author.id == 816581481106505729:
- await ctx.channel.purge(limit = 1)
- await ctx.channel.purge(limit = amount)
- else:
- emb = discord.Embed(title = 'команда создателя', description = 'эту команду может использовать только создатель(GrummHD)\
- эта команда для того чтобы удалять сообщения **бота** и не чего больше, если вы админ то можете использовать\
- команду - `~clear <amount>` только не пишите просто `~clear` все сообщения будус стератся.', color = discord.Color.red())
- await ctx.reply(embed = emb)
- await message.add_reaction('❌')
- @bot.command()
- async def original(ctx):
- emb = discord.Embed(title = 'Оригинальные команды бота', color = discord.Color.orange())
- emb.add_field(name = 'SHOOT', value = '`~shoot <member>` - застрелить', inline = False)
- emb.add_field(name = 'POP-IT', value = '`~popit` - Пупыт', inline = False)
- emb.add_field(name = 'NEWS', value = '`~news` - Новости бота', inline = False)
- emb.add_field(name = 'BUY', value = '`~buy <text>` - купить, рп действие для приколов', inline = False)
- emb.add_field(name = 'ADD-CMD', value = '`~add_command <description>` - добавить команду, в <description> пишите о команде клторую вы хотите добавить в бота.', inline = False)
- emb.add_field(name = 'ORIGINAL', value = '`~original` - оригинальные/свои команды бота', inline = False)
- emb.add_field(name = 'POP-IT', value = '`~coin` - подбросить монету', inline = False)
- await ctx.reply(embed = emb)
- """
- @bot.command()
- async def test(ctx, member:discord.Member):
- em = discord.Embed(title = 'TEST')
- em.set_thumbnail(url = user.icon_url)
- await ctx.send(embed = em)
- """
- @bot.command()
- async def news(ctx):
- page1 = discord.Embed(title = 'Page 2', description = '**Новости бота :\n6 Новой Команды!**', color = discord.Color.green())
- page1.add_field(name = 'Calc', value = 'calc - calculate(калькулятор)\n~calc <число> <действие> <число>', inline = False)
- page1.add_field(name = 'Random', value = 'random - randomize(рандомазер)\n~random <число> <число>', inline = False)
- page1.add_field(name = 'link', value = '~link - дает ссылку на бота', inline = False)
- page1.add_field(name = 'Help', value = '~help - показывает все команды', inline = False)
- page1.add_field(name = 'News', value = '~news - новости бота', inline = False)
- page1.add_field(name = 'Другое', value = 'Вы можете стать частью команды Wolk если напишите Gᖇᑌᗰᗰᕼᗪ#5555 в ЛС и зайдете на сервер поддержки!(в обо мне сылка на серв пд)', inline = False)
- page1.add_field(name = 'servers', value = '~servers бот говорит на скольких серверах он есть', inline = False)
- page1.add_field(name = 'XD', value = '~xd - делоет XD сообщение', inline = False)
- page2 = discord.Embed(title = 'Page 1', description = '**Новости бота :\n2 Новой Команды!**', color = discord.Color.green())
- page2.add_field(name = 'Buy', value = '~buy - рп действие для приколов - `~buy <text>`', inline = False)
- page2.add_field(name = 'Add_command', value = '~add_command - идеи для новох команд - `~add_command <text - хочу команду *команда* , что она делает>` если команда будет использоватся не по назночению то вас кидает в ЧС бота!', inline = False)
- #page1 = discord.Embed(title = 'Page 1', description = )
- #page1 = discord.Embed(title = 'Page 1', description = )
- #page1 = discord.Embed(title = 'Page 1', description = )
- #page1 = discord.Embed(title = 'Page 1', description = )
- #page1 = discord.Embed(title = 'Page 1', description = )
- pages = [page2, page1]
- message = await ctx.send(embed = page2)
- page = Paginator(bot, message, only=ctx.author, use_more=False, embeds=pages)
- await page.start()
- await message.add_reaction('✅')
- """
- person = int(['816581481106505729'])
- @bot.command()
- async def give(ctx):
- await person.send('f')
- """
- @bot.command()
- async def popit(ctx):
- 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'
- #emb = discord.Embed(title = 'Пупыт - Pop-it', description = text, color = discord.Color.purple)
- 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')
- 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')
- 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')
- await message.add_reaction('✅')
- @bot.command(aliases = ['tr'])
- async def trash(ctx, *, arg):
- ch = [923727727964618772]
- if ctx.author.id in ch:
- error = discord.Embed(title = 'Ошибка', description = 'вы заборкировоны иза добавлений длинных , плохох слов.+ вы не избраный', color = discord.Color.red())
- await ctx.reply(embed = error)
- else:
- trash_listt.append(arg)
- emb = discord.Embed(title = 'Trash - CMD', description = 'Вы добавили **'+arg+'** в Trash_List', color = discord.Color.green())
- await ctx.reply(embed = emb)
- file = open('log.txt', 'a', encoding = 'utf-8')
- file.write(f'Now trash-list is {trash_listt} !\nUserName - {ctx.author.name}, UserID - {ctx.author.id}, UserMENTION - {ctx.author.mention}')
- file.close()
- @bot.command(aliases = ['cmds'])
- async def commands(ctx):
- emb = discord.Emebed(title = f'Количество команд в боте', description = f'в боте {len(bot)}', color = discord.Color.green())
- await ctx.reply(embed = emb)
- @bot.command()
- async def emoji(ctx):
- await ctx.send("Превед, медвед! %s" % bot.get_emoji(953616400486899772))
- @bot.command()
- async def p(ctx, m, num):
- u = [936574238519877657, 936575131776589866, 936574238519877657, 953589946181095425, 953589985007796295, 953590025457655808, 953590061541261342, 953590093216616488]
- if ctx.channel.id in u:
- for i in range(int(num)):
- await ctx.send(m)
- else:
- await ctx.reply('команда только для определенного канала')
- @bot.command(aliases = ['trl'])
- async def trash_list(ctx):
- emb = discord.Embed(title = 'Trash List', description = '**'+str(trash_listt)+'**', color = discord.Color.green())
- grumm = bot.get_user(816581481106505729)
- await ctx.send(embed = emb)
- await grumm.send(embed = emb)
- scp173 = [
- 'https://steamuserimages-a.akamaihd.net/ugc/578996305555749494/9B50341A0BB29583AC7EB8C2E64A114BB33F9497/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true',
- 'https://twitter.com/scpwiki/status/1488632370001432578/photo/1',
- 'https://cdn.wikiwiki.jp/to/w/scpsl/SCP%E9%99%A3%E5%96%B6/SCP-173/::attach/203px-MatthewModel.png?rev=f76a947b3b8eafc425ab5bce67cb4cb9&t=20220213092636',
- 'https://qph.fs.quoracdn.net/main-qimg-9eab4685309d9f6f1abef51f0d21cf13-lq',
- 'https://steamuserimages-a.akamaihd.net/ugc/920291347190066455/ECB0F887CCC15F2D2C44FCFDF1EAECC37D8E2828/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true',
- 'https://file-image-storage.bowlroll.net/storage/eyJhbGciOiJIUzUxMiJ9.eyJhY3Rpb24iOiJTSE9XIiwicmV2aXNpb24iOjQ2NzY2LCJyZXNvdXJjZS1pZCI6IjE3MDc5MCIsImJ1Y2tldCI6ImZpbGUtaW1hZ2UifQ.S6yPi4prTyXJatIqW1LMkM82cL15Hfx0IXIxV8rrEHA4BIwYxcpxuuNP46Ts9lD-YMokITOpzoMhhUGYV6AL0g',
- 'https://en.wikipedia.org/wiki/File:2ChocolateChipCookies.jpg',
- 'https://images.aws.nestle.recipes/resized/5b069c3ed2feea79377014f6766fcd49_Original_NTH_Chocolate_Chip_Cookie_750_750.jpg',
- 'https://www.inkatrinaskitchen.com/wp-content/uploads/2012/03/Rainbow-Chocolate-Chip-Cookies-Recipe-In-Katrinas-Kitchen-600.jpg'
- ]
- @bot.command(aliases = ['coockie', 'cooki', 'печенька', 'scp-173', '173'])
- async def scp_173(ctx):
- rd = random.choice(scp173)
- emb = discord.Embed(title = 'печенька', color = discord.Color.orange())
- emb.set_image(url = rd)
- await ctx.reply(embed = emb)
- @bot.command()
- async def card(ctx, user: discord.Member = None):
- if user == None:
- user = ctx.author
- image = Image.open("file.jpg")
- img = image.resize((400, 200))
- idraw = ImageDraw.Draw(img)
- title = ImageFont.truetype('d9464-arkhip_font.ttf', size = 30)
- name = user.name
- idraw.text((170, 80), name, font = title, fill = "white")
- avatar = user.avatar_url_as(size = 128)
- avt = BytesIO(await avatar.read())
- imga = Image.open(avt)
- imguser = imga.resize((70, 70))
- img.paste(imguser, (60, 60))
- img.save("profile.jpg")
- await ctx.send(file = discord.File("profile.jpg"))
- img.delet()
- autobump = False
- @bot.command()
- async def stopbump(ctx):
- autobump = False
- await ctx.send('auto bump is stopped')
- @bot.command()
- async def channels_del(ctx):
- if ctx.author.id == 816581481106505729:
- for channel in ctx.guild.channels:
- try:
- await channel.delete()
- except:
- pass
- else:
- await ctx.reply('вы не создатель.')
- @set_vote.error
- async def er(error, ctx):
- if isinstance(error, MissingPermissions):
- await ctx.send("Looks like you don't have the permissions.")
- @bot.command()
- async def autobump(ctx, arg, time, ch):
- channel = bot.get_channel(int(ch))
- autobump = True
- await ctx.send('auto bump is activeted')
- while autobump == True:
- await channel.send(arg)
- await sleep(time)
- play = False
- @bot.command()
- async def stop(ctx):
- play = False
- @bot.command()
- async def print(ctx, num1, num):
- if ctx.author.id == 816581481106505729:
- play = True
- while play == True:
- for num1 in range(int(num)):
- num1 = num1 + 1
- await ctx.send(num1)
- else:
- emb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
- await ctx.reply(embed = emb)
- @bot.command()
- async def do(ctx, arg, num):
- if ctx.author.id == 816581481106505729:
- for i in range(int(num)):
- await ctx.send(arg)
- else:
- emb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
- await ctx.reply(embed = emb)
- """
- @bot.command()
- async def popcornhackcommand(ctx):
- emb = discord.Embed(title = 'POP CORN HACKING. . .', description = 'hacking . . .', color = discord.Color.red())
- await ctx.reply(embed = emb)
- await sleep(3)
- emb2 = discord.Embed(title = 'POP CORN IS - Sucessfully hacked', color = discord.Color.red())
- await ctx.reply(embed = emb2)"""
- # embeds = [embed1, embed2, embed3, embed4]
- # message = await ctx.send(embed=embed1)
- # page = Paginator(bot, message, only=ctx.author, use_more=False, embeds=embeds)
- # await page.start()
- alpha_news = '**Новости бота :2 Новой Команды!\n\n1) calc - calculate(калькулятор)\n~calc <число> <действие> <число>\n\n2) random - randomize(рандомазер)\n~random <число> <число>**\n\nВы можете стать частью команды Wolk если напишите Gᖇᑌᗰᗰᕼᗪ#5555 в ЛС и зайдете на сервер поддержки!(в обо мне сылка на серв пд)'
- # cogs
- """
- @bot.command()
- async def load(ctx, extension):
- if ctx.author.id == 816581481106505729:
- bot.load_extention(f'cogs.{extension}')
- emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully loaded.', color = discord.Color.green())
- await ctx.send(embed = emb)
- else:
- emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
- await ctx.reply(embed = emb)
- @bot.command()
- async def reload(ctx, extension):
- if ctx.author.id == 816581481106505729:
- bot.unload_extention(f'cogs.{extension}')
- bot.load_extention(f'cogs.{extension}')
- emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully reloaded.', color = discord.Color.green())
- await ctx.send(embed = emb)
- else:
- emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
- await ctx.reply(embed = emb)
- @bot.command()
- async def unload(ctx, extension):
- if ctx.author.id == 816581481106505729:
- bot.unload_extention(f'cogs.{extension}')
- emb = discord.Embed(title = 'Cog', description = 'Cog sucessfully reloaded.', color = discord.Color.green())
- await ctx.send(embed = emb)
- else:
- emb = discord.Embed(title = 'Ошибка', description = 'Вы не создатель', color = discord.Color.red())
- await ctx.reply(embed = emb)
- for filename in os.listdir('./cogs'):
- if filename.endswith('.py'):
- bot.load_extension(f'cogs.{filename[:-3]}')
- """
- @bot.event
- async def on_message(message):
- if "+1" in message.content.lower():
- for i in range(1):
- await message.channel.send('<@!420176777143648257>')
- await bot.process_commands(message)
- def write(data, filename):
- data = json.dumps(data)
- data = json.loads(str(data))
- with open(filename, 'w', encoding = 'utf-8') as file:
- json.dump(data, file, indent = 4)
- buttons = [
- [
- Button(style=ButtonStyle.grey, label='1'),
- Button(style=ButtonStyle.grey, label='2'),
- Button(style=ButtonStyle.grey, label='3'),
- Button(style=ButtonStyle.blue, label='×'),
- Button(style=ButtonStyle.red, label='выйти')
- ],
- [
- Button(style=ButtonStyle.grey, label='4'),
- Button(style=ButtonStyle.grey, label='5'),
- Button(style=ButtonStyle.grey, label='6'),
- Button(style=ButtonStyle.blue, label='÷'),
- Button(style=ButtonStyle.red, label='←')
- ],
- [
- Button(style=ButtonStyle.grey, label='7'),
- Button(style=ButtonStyle.grey, label='8'),
- Button(style=ButtonStyle.grey, label='9'),
- Button(style=ButtonStyle.blue, label='+'),
- Button(style=ButtonStyle.red, label='Очистить')
- ],
- [
- Button(style=ButtonStyle.grey, label='00'),
- Button(style=ButtonStyle.grey, label='0'),
- Button(style=ButtonStyle.grey, label='.'),
- Button(style=ButtonStyle.blue, label='-'),
- Button(style=ButtonStyle.green, label='=')
- ],
- ]
- #calculates answer
- def calculate(exp):
- o = exp.replace('×', '*')
- o = o.replace('÷', '/')
- result = ''
- try:
- result = str(eval(o))
- except:
- result = 'Ошибка'
- return result
- @bot.command()
- async def calc(ctx):
- m = await ctx.send(content='Загружаю калькулятор')
- expression = 'None'
- delta = datetime.datetime.utcnow() + datetime.timedelta(minutes=5)
- e = discord.Embed(title=f'калькулятор {ctx.author.name} | {ctx.author.id}', description=expression,
- timestamp=delta)
- await m.edit(components=buttons, embed=e)
- while m.created_at < delta:
- res = await bot.wait_for('button_click')
- if res.author.id == int(res.message.embeds[0].title.split('|')[1]) and res.message.embeds[
- 0].timestamp < delta:
- expression = res.message.embeds[0].description
- if expression == 'None' or expression == 'Ошибка':
- expression = ''
- if res.component.label == 'выйти':
- await res.respond(content='Calculator Closed', type=7)
- break
- elif res.component.label == '←':
- expression = expression[:-1]
- elif res.component.label == 'Clear':
- expression = 'None'
- elif res.component.label == '=':
- expression = calculate(expression)
- else:
- expression += res.component.label
- f = discord.Embed(title=f'калькулятор {res.author.name}|{res.author.id}', description=expression,
- timestamp=delta)
- await res.respond(content='', embed=f, components=buttons, type=7)
- @bot.command()
- async def create_profile(ctx, aname = None):
- if aname == None:
- emb = discord.Embed(title = 'Ошибка', description = 'Привет вы хотите создать акаунт в Wolk? пропишите команду аот так чтобы создать акаунт! `~create_profile <name>`', color = discord.Color.red())
- await ctx.reply(embed = emb)
- else:
- data = {
- "users" : []
- }
- # data['users'].append(User(aname, my_id)
- @bot.command()
- async def send(ctx, title, description, arg):
- if ctx.author.id == 816581481106505729:
- channel = bot.get_channel(int(arg))
- emb = discord.Embed(title = title, description = description, color = discord.Color.green())
- await channel.send(embed = emb)
- else:
- eremb = discord.Embed(title = 'Error', description = 'эту команду могут использовать только избраные.', color = discord.Color.red())
- await ctx.reply(embed = eremb)
- @bot.command()
- async def opme(ctx):
- await ctx.reply('Вы больше не оператор.')
- bot.run('#')
Advertisement
Add Comment
Please, Sign In to add comment