-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
71 lines (61 loc) · 3.38 KB
/
Copy pathconfig.py
File metadata and controls
71 lines (61 loc) · 3.38 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
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
62
63
64
65
66
67
68
69
70
71
"""Telegram Bot Configuration — tokens, topics, schedule, XP rates.
SETUP INSTRUCTIONS:
1. Set BOT_TOKEN from @BotFather
2. Set GROUP_ID (your Telegram group/supergroup ID)
3. Set TOPIC_* IDs if using Forum Topics
4. Adjust XP values and schedule for your timezone
"""
import os
from dotenv import load_dotenv
load_dotenv()
# ══════════════════════════════════════════
# CREDENTIALS & IDS
# ══════════════════════════════════════════
BOT_TOKEN = os.getenv("BOT_TOKEN", "")
DATABASE_URL = os.getenv("DATABASE_URL",
"postgresql://bot_user:bot_pass@localhost:5432/bot_db")
GROUP_ID = int(os.getenv("GROUP_ID", "0"))
# ══════════════════════════════════════════
# FORUM TOPIC IDS (for Supergroups with Topics)
# Set to 0 if not using forum topics
# ══════════════════════════════════════════
TOPIC_ANNOUNCEMENTS = int(os.getenv("TOPIC_ANNOUNCEMENTS", "0"))
TOPIC_GENERAL = int(os.getenv("TOPIC_GENERAL", "0"))
TOPIC_GAMES = int(os.getenv("TOPIC_GAMES", "0"))
TOPIC_SUGGESTIONS = int(os.getenv("TOPIC_SUGGESTIONS", "0"))
TOPIC_LOGS = int(os.getenv("TOPIC_LOGS", "0"))
# ══════════════════════════════════════════
# BOT INFO & BRANDING
# ══════════════════════════════════════════
BOT_NAME = "MyBot"
# ══════════════════════════════════════════
# XP SYSTEM
# ══════════════════════════════════════════
XP_MSG_MIN = 5
XP_MSG_MAX = 15
XP_MSG_COOLDOWN = 60 # seconds
XP_DAILY_BASE = 25
XP_DAILY_STREAK_BONUS = 10 # per consecutive day
XP_DAILY_CAP = 70 # max daily XP
XP_GIVEAWAY_WIN = 100
XP_INVITE = 100
# ══════════════════════════════════════════
# LEVEL TIERS
# ══════════════════════════════════════════
LEVEL_TIERS = {5: "bronze", 15: "silver", 25: "gold", 30: "platinum"}
# ══════════════════════════════════════════
# SCHEDULE (UTC hours)
# ══════════════════════════════════════════
# Adjust for your community's timezone
# Example: UTC+7 → 09:00 local = 02:00 UTC
DAILY_RESET_UTC = 0
SCHEDULED_EVENT_1_UTC = 2
SCHEDULED_EVENT_2_UTC = 7
# ══════════════════════════════════════════
# AUTOMOD
# ══════════════════════════════════════════
SPAM_THRESHOLD = 5 # messages within window
SPAM_WINDOW = 5 # seconds
SPAM_MUTE_MINUTES = 10
LINK_WHITELIST = ["t.me"]
BAD_WORDS = [] # add words to auto-filter