-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (23 loc) · 1 KB
/
config.py
File metadata and controls
33 lines (23 loc) · 1 KB
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
import os
from dotenv import load_dotenv
load_dotenv()
class Config:
# Bot token from DIscord Developer Portal
TOKEN = os.getenv('DISCORD_TOKEN', 'default-token')
# API URL for communicating with the main site
# This must EXACTLY match the URL set on the Discord Developer Portal
API_URL = os.getenv('API_URL', 'http://localhost:5000/api/')
# API key for authentication with the main site (must match site's .env)
BLU_API_KEY = os.getenv('BLU_API_KEY', 'default-api-key')
# Default log file
# LOG_FILE = os.getenv('LOG_FILE', 'bot.log')
# Command prefix (for non-slash commands. DEPRECATED)
COMMAND_PREFIX = '!'
# What channel should reminders be sent to? (Channel ID)
REMINDER_CHANNEL_ID = 1322997179585007618
# How often should /syncpoints run automatically (minutes)?
TIME_TO_SYNCPOINTS = 30
# How long before a CTF ends should a reminder be sent (hours)?
TIME_TO_REMINDER = 24
# Discord Guild (server) ID
GUILD_ID = 1321736819293032488