-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
634a18f
commit ae0517b
Showing
39 changed files
with
158 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,52 @@ | ||
from typing import List, Optional | ||
from typing import List | ||
import os.path | ||
|
||
# This is a template configuration file for EduuRobot. | ||
# You can use this file as a base for your own config file by | ||
# copying this file to `eduu/config.py` and filling in the values. | ||
# | ||
|
||
|
||
# API keys | ||
|
||
# Bot token from Bot Father | ||
TOKEN: str = "YOUR_TOKEN_HERE" | ||
TOKEN: str = "123123:YOUR_BOT_TOKEN_HERE" | ||
|
||
# Your API ID and API HASH | ||
# Telegram API ID and API hash | ||
# Get it from https://my.telegram.org/apps | ||
API_ID: int = 123123 | ||
API_HASH: str = "" | ||
API_ID: int = 321321 | ||
API_HASH: str = "YOUR_API_HASH_HERE" | ||
|
||
# Tenor API key | ||
# Get it from https://tenor.com/developer/keyregistration | ||
# Can be empty (but the /gif command won't work without it) | ||
TENOR_API_KEY: str = "" | ||
|
||
|
||
# Chat used for logs | ||
log_chat: int = 123456789 | ||
# Admins/sudoers settings | ||
|
||
# Sudoers and super sudoers | ||
super_sudoers: List[int] = [123456789] | ||
sudoers: List[int] = [987654321] | ||
SUPER_SUDOERS: List[int] = [123456789] | ||
SUDOERS: List[int] = [987654321] | ||
|
||
# All super sudoers should be sudoers as well | ||
SUDOERS.extend(SUPER_SUDOERS) | ||
|
||
|
||
# Other settings | ||
|
||
# Database file path | ||
DATABASE_PATH = os.path.join("eduu", "database", "eduu.db") | ||
|
||
# Number of updates that can be processed in parallel | ||
WORKERS = 24 | ||
|
||
# Chat used for logging | ||
LOG_CHAT: int = 123456789 | ||
|
||
# Prefixes for commands | ||
# e.g: /command and !command | ||
prefix: List[str] = ["/", "!"] | ||
PREFIXES: List[str] = ["/", "!"] | ||
|
||
# List of disabled plugins | ||
disabled_plugins: List[str] = [] | ||
|
||
# API Keys (Optional) | ||
TENOR_API_KEY: Optional[str] = "" | ||
|
||
# All super sudoers should be sudoers as well | ||
sudoers.extend(super_sudoers) | ||
DISABLED_PLUGINS: List[str] = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.