Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import asyncio
- import random
- from discord.ext import commands
- import time
- chat_filter = ["TNC","VTNC", "VTC", "FDP", "VIADO", "VIADINHO", "MERDA", "CUZAO", "PUTA", "PIRANHA", "SAFADO", "PORRA", "PORR@", "VSF", "FUDER", "PQP", "PUTA"]
- bypass_list = []
- client = discord.Client()
- # default
- COR =0x690FC3
- msg_id = None
- msg_user = None
- @client.event
- async def on_member_remove(member):
- canal = client.get_channel("436999573488009226")
- msg = ":inbox_tray: {} => **Saiu do Servidor!**\n**Me Aguarde**, terá volta!".format(member.mention)
- await client.send_message(canal, msg) # substitua canal por member para enviar a msg no DM do membro
- @client.event
- async def on_member_join(member):
- canal = client.get_channel("436999573488009226")
- msg = ":inbox_tray: {} => **Entrou no Servidor!**\nSeja bem-vindo! - Converse conosco :)".format(member.mention)
- await client.send_message(canal, msg) # substitua canal por member para enviar a msg no DM do membro
- @client.event
- async def on_ready():
- print('Bot Online... Olá!')
- print(client.user.name)
- print(client.user.id)
- print('-----556------')
- await client.change_presence(game=discord.Game(name="www.filipe556.com"))
- @client.event
- async def on_message(message):
- contents = message.content.split(" ") #contents is a list type
- for word in contents:
- if word.upper() in chat_filter:
- if not message.author.id in bypass_list:
- try:
- await client.delete_message(message)
- msg = await client.send_message(message.channel, "**Hey!** Você não pode falar palavras de baixo calão!")
- await asyncio.sleep(2.5)
- await client.delete_message(msg)
- except discord.errors.NotFound:
- return
- if message.content.lower().startswith('.teste'):
- userID = message.author.id
- await client.send_message(message.author, '<@%s>, estou vivo, blz? é nois cachorro!' % (userID) )
- if message.content.lower().startswith('.cu'):
- await client.send_message(message.channel, '😍')
- if message.content.lower().startswith('.ajuda'):
- userID = message.author.id
- await client.send_message(message.channel, '<@%s> Precisando de Ajuda? digite `.suporte`' % (userID) )
- if message.content.lower().startswith('.help'):
- userID = message.author.id
- await client.send_message(message.channel, '<@%s> Precisando de Ajuda? digite `.suporte`' % (userID) )
- if message.content.startswith('.convidar'):
- await client.send_message(message.channel, "Me adicione com esse Link {}".format(discord.utils.oauth_url(client.user.id)))
- if message.content.startswith('.perguntar'):
- args = message.content.split(" ")
- if len(args[1:]) < 1:
- # .pergunta aqui
- embed = discord.Embed(title="🤔 .perguntar", description="Veja se você está certo ou não ;)\n",
- color=0x3DF270)
- embed.set_author(name="Perguntas e Respostas", icon_url=str(message.author.avatar_url))
- embed.add_field(name="💁 **Como Usar**", value="`.perguntar Sou bonito?`", inline=True)
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- else:
- # .perguntar aqui
- choice = random.randint(1, 15)
- if choice == 1:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x3DF270)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Sim, e.e', inline=True)
- embed.set_image(
- url="https://images-ext-1.discordapp.net/external/7uJP4BziVMY3ZDoirZVzUJ6xjxCr5E7lQgxqHqKjd68/https/yesno.wtf/assets/yes/13-c3082a998e7758be8e582276f35d1336.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 2:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xDF013A)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Complicado ;(', inline=True)
- embed.set_image(
- url="https://images-ext-2.discordapp.net/external/AsDvORkSsK5Anyhz0Mskj8825Rm7vmyTbXAYz0hXnH8/https/yesno.wtf/assets/no/5-73e4adfe4da265a646fe517128bb5bf2.gif?width=400&height=168")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 3:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xDF3A01)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='nunca duvidei... ', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/12-e4f57c8f172c51fdd983c2837349f853.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 4:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xFF4000)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='**LOL**, por essa eu não esperava', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/no/23-5fe6c1ca6c78e7bf9a7cf43e406fb8db.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 5:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xDF01D7)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Ele nunca me ouviu...se fude#', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/15-3d723ea13af91839a671d4791fc53dcc.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 6:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x2E2EFE)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Não...ele é homem eu **acho**', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/no/24-159febcfd655625c38c147b65e5be565.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 7:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xFFFFFF)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Só sei que nada sei...', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/3-422e51268d64d78241720a7de52fe121.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 8:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x6E6E6E)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='Eu sou legal né? **ATA**', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/no/18-1ba72d815ec0e2bff8dba8699a50e275.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 9:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x2E2E2E)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='vai ficar enxendo o saco mesmo?', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/no/30-d37eee83c3c2180de4edb7da6fa9f5b7.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 10:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x6E6E6E)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='concordo plenamente em sua opinião', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/7-653c8ee5d3a6bbafd759142c9c18d76c.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 11:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x00FF00)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='vai dar certo!', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/no/4-122be48db47678331dbef3dd6ac6ff56.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 12:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xFFFF00)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='isso q é **homem**...', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/6-304e564038051dab8a5aa43156cdc20d.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 13:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0xACFA58)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='já disseram que você é doido?', inline=True)
- embed.set_image(
- url="https://yesno.wtf/assets/yes/2-5df1b403f2654fa77559af1bf2332d7a.gif")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 14:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x151515)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='só sei que vai dar **B.O** e eu não quero ser **preso** :(', inline=True)
- embed.set_image(
- url="http://cdn.discordapp.com/avatars/431594256063528962/b2377bb796d4763d0c6afc86d263b2d0?size=1024")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if choice == 15:
- msg = str(message.content[10:])
- embed = discord.Embed(color=0x151515)
- embed.add_field(name="Pergunta ✏", value=msg, inline=True)
- embed.add_field(name="Resposta ❗", value='agora tá bom? <3', inline=True)
- embed.set_image(
- url="http://cdn.discordapp.com/avatars/348885353001910272/8842f5486e114f822eb9cad1cc1cda0f?size=1024")
- embed.set_author(name="Perguntas e Respostas",
- icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Pedido por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(message.channel, embed=embed)
- if message.content.startswith('.anunciar'):
- if not message.author.top_role.name == "Dono":
- return await client.send_message(message.channel, "Sem permissão para executar o comando.")
- msg = str(message.content[9:])
- embed = discord.Embed(description=msg, color=0x3DF270, timestamp=message.timestamp)
- embed.set_author(name="Anúncio", icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Enviado por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(discord.Object(id="436999633722671109"), '@here')
- await client.send_message(discord.Object(id="436999633722671109"), embed=embed)
- if message.content.startswith('.changelog'):
- if not message.author.top_role.name == "Dono":
- return await client.send_message(message.channel, "Sem permissão para executar o comando.")
- msg = str(message.content[10:])
- embed = discord.Embed(description=msg, color=0x3DF270, timestamp=message.timestamp)
- embed.set_author(name="ChangeLog", icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Enviado por " + str(message.author), icon_url=str(message.author.avatar_url))
- await client.send_message(discord.Object(id="459459762589794304"), embed=embed)
- if message.content.startswith('.suporte'):
- embed=discord.Embed(title="Suporte", description="Selecione a categoria que deseja receber as informações. Para selecionar a categoria, você precisa clicar no emoji que ela representa (nas reações desta mensagem).", color=0x3DF270)
- embed.add_field(name="Categorias", value="💳 : Loja\n📷 : Mídias\n❓ : Outros\n❗ : Comandos", inline=True)
- embed.set_footer(text="Copyright © 2018 Filipe556", icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- msg = await client.send_message(message.author, embed=embed)
- await client.add_reaction(msg, "💳")
- await client.add_reaction(msg, "📷")
- await client.add_reaction(msg, "❓")
- await client.add_reaction(msg, "❗")
- msg2_id = msg.id
- bb = message.author
- @client.event
- async def on_reaction_add(reaction, user):
- if reaction.emoji == "💳" and msg.id == msg2_id and user.id == bb.id:
- await asyncio.sleep(0.3)
- #embed = discord.Embed(title="Loja - Clique Aqui", url="http://filipe556.com.br/",
- # description="Loja com o Bot de Discord com **Promoção**!", color=0x3DF270)
- embed = discord.Embed(title="Loja - Em Breve", description="Loja com a venda do Bot Discord", color=0x3DF270)
- embed.set_author(name="Loja - Filipe556 ©", icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- #embed.set_thumbnail(url="https://cdn-images-1.medium.com/max/230/1*OoXboCzk0gYvTNwNnV4S9A@2x.png")
- embed.add_field(name="Bot - Discord", value="R$12 - Até 5 Funções de Texto/Anúncios", inline=True)
- embed.set_footer(text="Copyright © 2018 Filipe556", icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.author, embed=embed)
- # LOJA
- if reaction.emoji == "📷" and msg.id == msg2_id and user.id == bb.id:
- await asyncio.sleep(0.3)
- embed = discord.Embed(title='Mídias Sociais',
- description="Contatos ;)\n\n", color=0x3DF270)
- embed.set_author(name="Filipe556 ©", icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- embed.set_thumbnail(url="https://cdn-images-1.medium.com/max/230/1*OoXboCzk0gYvTNwNnV4S9A@2x.png")
- embed.add_field(name="Links", value="Twitter : http://twitter.com/Filipe556_\nSite : http://filipe556.com\nEmail : contato@filipe556.com", inline=True)
- embed.set_footer(text="Copyright © 2018 Filipe556", icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.author, embed=embed)
- ### OUTROS
- if reaction.emoji == "❓" and msg.id == msg2_id and user.id == bb.id:
- await asyncio.sleep(0.3)
- embed = (discord.Embed(description="Desenvolvido por **Filipe556**", colour=0x3DF270))
- embed.set_author(name="Filipe556 ©",
- icon_url='https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg')
- embed.add_field(name="🤔", value="Bot na Versão 0.9 **Alpha**")
- embed.add_field(name="😱", value="Disponível em breve...")
- embed.add_field(name="🙄",
- value="Estou **online** a {0} hora(s) e {1} minuto(s)".format(hour, minutes,
- message.server))
- embed.add_field(name="✉", value="Email: contato@filipe556.com \nTwitter: @Filipe556_", inline=True)
- embed.add_field(name="Feito com muito ❤", value="Copyright 2018 © Filipe556", inline=True)
- embed.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.author, embed=embed)
- if reaction.emoji == "❗" and msg.id == msg2_id and user.id == bb.id:
- await asyncio.sleep(0.3)
- msg3 = discord.Embed(
- description='💳 : **.suporte** - Acesso a informações do Bot\n\n📷 : **.midias** - Redes Sociais do Criador do Bot\n\n❗ : **.comandos** - Lista atual\n\n❓ : **.outros** - Créditos do Bot :P\n\n❓ : **.perguntar** - Vamos brincar :) ',
- color=0x3DF270)
- msg3.set_author(name="Lista de Comandos:")
- msg3.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.channel, embed=msg3)
- if message.content.startswith('.serverinfo'):
- serverinfo_embed = discord.Embed(title="\n", description="Abaixo está as informaçoes principais do servidor!",
- color=0x3DF270)
- serverinfo_embed.set_thumbnail(url=message.server.icon_url)
- serverinfo_embed.set_footer(text=client.user.name, icon_url=client.user.avatar_url)
- serverinfo_embed.add_field(name="Nome:", value=message.server.name, inline=True)
- serverinfo_embed.add_field(name="Dono:", value=message.server.owner.mention)
- serverinfo_embed.add_field(name="ID:", value=message.server.id, inline=True)
- serverinfo_embed.add_field(name="Cargos:", value=len(message.server.roles), inline=True)
- serverinfo_embed.add_field(name="Membros:", value=len(message.server.members), inline=True)
- serverinfo_embed.add_field(name="Criado em:", value=message.server.created_at.strftime("%d %b %Y %H:%M"))
- serverinfo_embed.add_field(name="Região:", value=str(message.server.region).title())
- await client.send_message(message.channel, embed=serverinfo_embed)
- if message.content.startswith('.uptime'):
- await client.send_message(message.channel, "```Estou online a {0} hora(s) e {1} minuto(s)!```".format(hour, minutes, message.server))
- if message.content.startswith('.comandos'):
- msg3 = discord.Embed(
- description='💳 : **.suporte** - Acesso a informações do Bot\n\n📷 : **.midias** - Redes Sociais do Criador do Bot\n\n❗ : **.comandos** - Lista atual\n\n❓ : **.outros** - Créditos do Bot :P\n\n❓ : **.perguntar** - Vamos brincar :) ',
- color=0x3DF270)
- msg3.set_author(name="Lista de Comandos:")
- msg3.set_footer(text="Copyright 2018 © Filipe556")
- await client.send_message(message.author, embed=msg3)
- if message.content.startswith('.midias'):
- social = discord.Embed(title='Mídias Sociais',
- description="Contatos ;)\n\n", color=0x3DF270)
- social.set_author(name="Filipe556 ©",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- social.set_thumbnail(url="https://cdn-images-1.medium.com/max/230/1*OoXboCzk0gYvTNwNnV4S9A@2x.png")
- social.add_field(name="Links",
- value="Twitter : http://twitter.com/Filipe556_\nSite : http://filipe556.com\nEmail : contato@filipe556.com",
- inline=True)
- social.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.author, embed=social)
- if message.content.startswith('.outros'):
- msg3 = discord.Embed(
- description='📝 : **@Filipe556_** - Desenvolvedor Geral\n\n📝 : **@sirarantes** - Colaborador\n\n📝 : **Alef** - Testador\n\n',
- color=0x3DF270)
- msg3.set_author(name="Créditos:")
- msg3.set_footer(text="Copyright 2018 © Filipe556")
- await client.send_message(message.author, embed=msg3)
- if message.content.lower().startswith(".ban"):
- try:
- #Vai verificar se quem usou o comando tem permissão de adm
- if not message.author.server_permissions.administrator:
- return await client.send_message(message.channel, '⚠️Permissão insuficiente')
- author = message.author.mention
- user = message.mentions[0]
- motivo = message.content[27:]
- await client.ban(user)
- embed = (discord.Embed(description="Registro de Ban", colour=0x3DF270))
- embed.add_field(name="🤔 Nick", value=user)
- embed.add_field(name="😱 Banido por", value=str(message.author))
- embed.add_field(name="🙄 Motivo",
- value="{}.".format(motivo))
- embed.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(discord.Object(id="459379483019837441"), embed=embed)
- except discord.errors.Forbidden:
- return await client.send_message(message.channel, '⚠️Não posso banir o administrador :{}'.format(user.mention))
- if message.content.startswith('.mute'):
- args = message.content.split(" ")
- if not message.author.server_permissions.kick_members:
- return await client.send_message(message.channel, '⚠️Permissão insuficiente')
- if len(args[1:]) < 1:
- # .pergunta aqui
- embed = discord.Embed(title="🤔 .mute", description="Mute um Membro\n",
- color=0x3DF270)
- embed.add_field(name="💁 **Como Usar**", value="```.mute @Filipe556```", inline=True)
- embed.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(message.channel, embed=embed)
- else:
- # vai verificar se quem usou o comando possui permissão de adm
- if not message.author.server_permissions.kick_members:
- return await client.send_message(message.channel, '⚠️Permissão insuficiente')
- author = message.author.mention
- user = message.mentions[0]
- motivo = message.content[27:]
- """Lembrando que tem que ter o cargo mutado no seu server"""
- """Lembrando que vc tem que retirar todas permissões do cargo mutado"""
- cargo = discord.utils.get(message.author.server.roles, name='Mutado')
- await client.add_roles(user, cargo)
- embed = (discord.Embed(description="Registro de Mute", colour=0x3DF270))
- embed.add_field(name="🤔 Nick", value=user)
- embed.add_field(name="😱 Mutado por", value=str(message.author))
- embed.add_field(name="🙄 Motivo",
- value="{}.".format(motivo))
- embed.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(discord.Object(id="459379483019837441"), embed=embed)
- if message.content.startswith('.unmute'):
- args = message.content.split(" ")
- if not message.author.server_permissions.kick_members:
- return await client.send_message(message.channel, '⚠️Permissão insuficiente')
- if len(args[1:]) < 1:
- # .pergunta aqui
- embed = discord.Embed(title="🤔 .unmute", description="Desmute um Membro\n",
- color=0x3DF270)
- # embed.set_author(name="Sistema de Mute", icon_url=str(message.author.avatar_url))
- embed.add_field(name="💁 **Como Usar**", value="```.unmute @Filipe556 Falta de Provas```", inline=True)
- embed.set_footer(text="Copyright © 2018 WorldNetwork",
- icon_url="http://worldpvpcraft.com.br/app/content/site/assets/images/logo.png")
- await client.send_message(message.channel, embed=embed)
- else:
- # vai verificar se quem usou o comando possui permissão de adm
- if not message.author.server_permissions.administrator:
- return await client.send_message(message.channel, '⚠️Permissão insuficiente')
- author = message.author.mention
- user = message.mentions[0]
- motivo = message.content[29:]
- """Lembrando que tem que ter o cargo mutado no seu server"""
- cargo = discord.utils.get(message.author.server.roles, name='Mutado')
- await client.remove_roles(user, cargo)
- embed = (discord.Embed(description="Registro de Unmute", colour=0x3DF270))
- embed.add_field(name="🤔 Nick", value=user)
- embed.add_field(name="😱 Desmutado por", value=str(message.author))
- embed.add_field(name="🙄 Motivo",
- value="{}.".format(motivo))
- embed.set_footer(text="Copyright © 2018 Filipe556",
- icon_url="https://yt3.ggpht.com/-LwNG863TkHo/AAAAAAAAAAI/AAAAAAAAAAA/a49mL3t5j0s/s88-c-k-no-mo-rj-c0xffffff/photo.jpg")
- await client.send_message(discord.Object(id="459379483019837441"), embed=embed)
- if message.content.startswith('.votacao'):
- msg = str(message.content[9:])
- if not message.author.server_permissions.administrator:
- return await client.send_message(message.channel, "Sem permissão para executar o comando.")
- embed = discord.Embed(description=msg, color=0x3DF270)
- embed.set_author(name="Votação", icon_url="https://cdn.discordapp.com/emojis/450112878108999680.gif?v=1")
- embed.set_footer(text="Criada por " + str(message.author), icon_url=str(message.author.avatar_url))
- votar = await client.send_message(discord.Object(id="458058389189296130"), embed=embed)
- await client.add_reaction(votar, "✅")
- await client.add_reaction(votar, "⛔")
- await client.delete_message(message)
- h = await client.send_message(discord.Object(id="436999633722671109"), 'Votação válida por 1 hora, @here')
- await asyncio.sleep(5400)
- a = await client.send_message(discord.Object(id="436999633722671109"), '`10 minutos restantes,` @here')
- await asyncio.sleep(596)
- await client.delete_message(h)
- b = await client.send_message(discord.Object(id="436999633722671109"), '`3 segundos restantes`')
- await asyncio.sleep(1)
- await client.delete_message(a)
- c = await client.send_message(discord.Object(id="436999633722671109"), '`2 segundos restantes`')
- await asyncio.sleep(1)
- await client.delete_message(b)
- d = await client.send_message(discord.Object(id="436999633722671109"), '`1 segundo restante`')
- await asyncio.sleep(1)
- await client.delete_message(c)
- e = await client.send_message(discord.Object(id="436999633722671109"), '`Votação Finalizada` @here')
- await asyncio.sleep(1)
- await client.delete_message(d)
- await asyncio.sleep(3)
- await client.delete_message(e)
- await client.send_message(discord.Object(id="458058389189296130"), 'Resultados :)')
- if message.content.startswith('.say'):
- if not message.author.server_permissions.administrator:
- return await client.send_message(message.channel, "Sem permissão para executar o comando.")
- botmsg = str(message.content[5:])
- msg1 = await client.send_message(message.channel, botmsg)
- await client.delete_message(message)
- await client.add_reaction(msg1, '👀')
- await client.add_reaction(msg1, '💯')
- await client.add_reaction(msg1, '🔔')
- async def tutorial_uptime():
- await client.wait_until_ready()
- global minutes
- minutes = 0
- global hour
- hour = 0
- while not client.is_closed:
- await asyncio.sleep(60)
- minutes += 1
- if minutes == 60:
- minutes = 0
- hour += 1
- client.loop.create_task(tutorial_uptime())
- client.run('CENSURADO PORRA')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement