This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
#VOCÊ PRECISA DO YOUTUBE-DL INSTALADO, PARA ISSO DIGITE "pip install youtube_dl" NO CMD! | |
client = discord.Client() | |
players = {} | |
COR = 0xF7FE2E | |
@client.event | |
async def on_ready(): | |
print(client.user.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
import requests | |
from io import BytesIO | |
from PIL import Image, ImageDraw, ImageFont, ImageOps | |
client = discord.Client() | |
# BY PR#3367 | |
@client.event | |
async def on_ready(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@client.event | |
async def on_member_join(member): | |
canal = client.get_channel("423328604911304708") | |
regras = client.get_channel("420612829838573588") | |
msg = "Bem Vindo {}\n leia as {}".format(member.mention, regras.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_remove(member): | |
canal = client.get_channel("423328604911304708") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
import secreto | |
import asyncio | |
client = discord.Client() | |
COR =0x690FC3 | |
token = secreto.seu_token() | |
msg_id = None | |
msg_user = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
import asyncio | |
import random | |
client = discord.Client() | |
@client.event | |
async def on_ready(): | |
print('BOT ONLINE - OLÁ MUNDO') | |
print(client.user.name) |
NewerOlder