Main File to the Music Bot
unknown
python
7 months ago
572 B
2
Indexable
Never
import discord from discord.ext import commands import os #import all of the cogs from help_cog import help_cog from music_cog import music_cog intents = discord.Intents(message_content = True, messages = True) bot = commands.Bot(command_prefix='/', intents=intents) #remove the default help command so that we can write out own bot.remove_command('help') #register the class with the bot async def setup(bot): await bot.add_cog(help_cog(bot)) await bot.add_cog(music_cog(bot)) #start the bot with our token bot.run(os.getenv("TOKEN"))