-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
41 lines (34 loc) · 1.45 KB
/
config.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
import os
from dotenv import load_dotenv
load_dotenv()
# Bot Configuration
TOKEN = os.getenv('DISCORD_TOKEN')
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
ANTHROPIC_API_KEY = os.getenv('ANTHROPIC_API_KEY')
GEMINI_API_KEY = os.getenv('GEMINI_API_KEY')
PREFIX = '.'
#TICKET_CATEGORY_ID = int(os.getenv('TICKET_CATEGORY_ID', '0'))
#STAFF_ROLE_ID = int(os.getenv('STAFF_ROLE_ID', '0'))
LOG_CHANNEL_ID = int(os.getenv('LOG_CHANNEL_ID', '1308525133048188949'))
# URLs and Endpoints
BOT_WEBSITE = "https://drago-03.github.io/IndieGo-Website/"
SUPPORT_SERVER_LINK = "https://discord.gg/9bPsjgnJ5v"
INSTALL_URL = "https://discord.com/oauth2/authorize?client_id=1304755116255088670&permissions=8&scope=bot%20applications.commands"
OAUTH2_URL = f"https://discord.com/oauth2/authorize?client_id=1304755116255088670&redirect_uri={BOT_WEBSITE}/callback&response_type=code&scope=identify%20guilds"
# API Endpoints
INTERACTIONS_URL = f"{BOT_WEBSITE}/api/interactions"
LINKED_ROLES_URL = f"{BOT_WEBSITE}/api/linked-roles"
TERMS_URL = f"{BOT_WEBSITE}/terms"
PRIVACY_URL = f"{BOT_WEBSITE}/privacy"
# Branding
EMBED_COLOR = 0x9F7AEA # Purple
AUTHOR_NAME = "Built by Drago"
AUTHOR_ICON = f"{BOT_WEBSITE}/assets/logo.png"
# Command Settings
COOLDOWN_TIME = 3 # seconds
MAX_WARNINGS = 3
DEFAULT_DELETE_DAYS = 7
# Logging
DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOG_FILE = 'bot.log'