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 logging | |
import youtube_dl | |
#Execute no cmd pip install youtube_dl para instalar o youtube_dl | |
#Execute no cmd pip install PyNaCl se não dá erro (AVISO: é L com minuscula não com I) | |
#Instale o ffmpeg no google e ponha na pasta do seu projeto C:/Utilizadores/Seuutilizador/PycharmProjects/seuprojeto/venv/Scripts | |
#O ffmpeg que vocês precisam é raro de encontrar por isso disponiblizei um link do meu ffmpeg. (https://files.fm/u/jjj4agj4) | |
#Peço que por favor ponha meus créditos ou do meu bot porque isso irá me ajudar a fazer novos comandos em python e espalhar mais linguagens como java. | |
if message.content.lower().startswith('?play') or message.content.lower().startswith('?tocar'): | |
link = message.content[6:] |
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
# Basic Discord Bot in Python By The Basic Bot Team! | |
# <--- DO NOT EDIT IMPORTS ---> | |
import discord | |
from discord.ext import commands | |
from discord.ext.commands import Bot | |
import asyncio | |
bot = commands.Bot(command_prefix='b!') # If you have bots with ! change it to another prefix inside e.g 'prefixhere' | |
token = '' # Get your token from https://discordapp.com/developers/applications/ You need to create a bot account and copy the bots token! |