| Muse Heart (.1) | Muse Heart (.2) | Muse Heart (.3)
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
from typing import Optional | |
import disnake | |
from disnake.ext import commands | |
id_do_servidor = 123456789 # coloque o id do servidor aqui | |
id_do_cargo_mod = 1234567890 #coloque o id do cargo no lugar do número ao lado (para ser marcado quando abrirem novos tickets) | |
class TicketSystem(commands.Cog): |
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
# esse code requer instalar os 4 packages abaixo: | |
# pip3 install -U humanize spotipy git+https://github.com/zRitsu/Wavelink.git@c72a90f721d68b9a9bea37b9d43c18283a9a7605 git+https://github.com/Rapptz/discord.py.git | |
from configparser import ConfigParser | |
from functools import partial | |
import discord | |
from discord import app_commands | |
from discord.ext import commands | |
import wavelink | |
import itertools |
Antes de prosseguir:
Caso não tenha um token de bot do discord ou não tenha criado uma conta de bot no developer portal, você pode conferir esse video-tutorial de como criar uma.