-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
61 lines (42 loc) · 1.36 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import nextcord
from nextcord.ext import commands
import os
from dotenv import load_dotenv
load_dotenv()
# Import the roll_dice cog
from roll_dice import roll_dice
# Import the music_cog
from music_cog import music_cog
from help_cog import help_cog
from quality_cog import quality_cog
intents = nextcord.Intents.default()
intents.members = True
intents.message_content = True
bot = commands.Bot(command_prefix="?", intents=intents)
#bot.load_extension("music_cog")
#bot.load_extension("roll_dice")
#bot.load_extension("help_cog")
@bot.event
async def on_ready():
#await bot.load_extension("music_cog")
#await bot.load_extension("roll_dice")
#await bot.load_extension("help_cog")
bot.add_cog(music_cog(bot))
bot.add_cog(roll_dice(bot))
bot.add_cog(help_cog(bot))
bot.add_cog(quality_cog(bot))
print(f"{bot.user.name} has connected to Discord!")
bot.remove_command('help')
# Remove the default help command so that we can write our own
# Register the roll_dice cog with the bot
#bot.add_cog(roll_dice(bot))
# Create an instance of the music_cog
#bot.load_extension("music_cog")
#bot.load_extension("roll_dice")
#bot.load_extension("help_cog")
# Register the music_cog instance with the bot
#bot.add_cog(music_cog_instance)
# Start the bot with our token
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = os.getenv('DISCORD_GUILD')
bot.run(TOKEN)