-
Notifications
You must be signed in to change notification settings - Fork 4
/
vhbot.py
35 lines (28 loc) · 1.08 KB
/
vhbot.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
from discord.ext import commands
import discord
from colorama import Fore
import vhconf as c
#NOTE : 'Members' intent must be enabled on your discord bot's page
#https://discordpy.readthedocs.io/en/latest/intents.html#privileged-intents
#https://discord.com/developers/applications
intents = discord.Intents.default()
intents.members = True
#bot = commands.Bot(command_prefix=[c.cmd_prefix, 'au ', 'Au '])
bot = commands.Bot(command_prefix=c.cmd_prefix, intents=intents)
extensions = ['cogs.raiseHand',
'cogs.appel',
'cogs.misc',
'cogs.bell'] # cogs.maths bkn
extensionsDepression = [] #['cogs.aurevoir']
if __name__ == '__main__':
for ext in extensions:
print(Fore.GREEN + "[STARTUP] : " + Fore.RESET + ext)
bot.load_extension(ext)
for ext in extensionsDepression:
print(Fore.GREEN + "[STARTUP] : " + Fore.RESET + ext)
bot.load_extension(ext)
@bot.event
async def on_ready():
print(Fore.GREEN + "[STARTUP] " + Fore.RESET +
"Logged in as " + Fore.GREEN + bot.user.name + Fore.RESET)
bot.run(c.token)