-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
32 lines (26 loc) · 888 Bytes
/
Copy pathbot.py
File metadata and controls
32 lines (26 loc) · 888 Bytes
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
import discord
from discord.ext import commands
from config import DISCORD_TOKEN
from commands.reviewcv import setup as setup_reviewcv
from utils.scoring import score_cv
from commands.extractinfo import setup as setup_extractinfo
from commands.help import setup as setup_help
from commands.cvformatcheck import setup as setup_cvformatcheck
from commands.cvmatch import setup as setup_cvmatch
from commands.interviewprep import setup as setup_interviewprep
import logging
logging.basicConfig(
filename='logs/bot.log',
level=logging.INFO,
format='%(asctime)s %(levelname)s:%(name)s: %(message)s'
)
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
setup_reviewcv(bot)
setup_extractinfo(bot)
setup_help(bot)
setup_cvformatcheck(bot)
setup_cvmatch(bot)
setup_interviewprep(bot)
bot.run(DISCORD_TOKEN)