Initial commit
This commit is contained in:
54
config/configuration.ini
Normal file
54
config/configuration.ini
Normal file
@@ -0,0 +1,54 @@
|
||||
# =========================
|
||||
# CONFIGURATION
|
||||
# =========================
|
||||
|
||||
|
||||
|
||||
[DIRECT_SETTINGS]
|
||||
BOT_USERNAME = "blood_linksbot" # the username of your Telegram bot (without @)
|
||||
BOT_TOKEN = "8649631256:AAHDQgDhpd8ymxACdNni1HomLuMzcm_W2Lg" # the token for your Telegram bot (get it from @BotFather), cannot be changed using commands and completely hidden for security reasons
|
||||
TELEGRAM_PUBLIC_GROUP_ID = -1003571704137 # the ID of the public group where user-uploaded content will be exposed (if chosen)
|
||||
TELEGRAM_ADMINISTRATION_GROUP_ID = -1003737694563 # the ID of the private group where admin-uploaded content will be reviewed/generated
|
||||
OWNER_TELEGRAM_USER_ID = 8615679055 # the Telegram user ID of the bot owner (for managing critical settings), cannot be changed using commands
|
||||
|
||||
|
||||
[BOT_SETTINGS]
|
||||
ALLOW_LINKS_TO_TEXT = true # whether to allow users to link their text messages (true = feature enabled & allowed, false = feature disabled & not allowed)
|
||||
ALLOW_LINKS_TO_MEDIA = true # whether to allow users to link their media from messages personally and receive custom links (true = feature enabled & allowed, false = feature disabled & not allowed)
|
||||
WARNING_MESSAGE_ENABLED = true # whether to require user to confirm rules/ usage plan before interacting with the bot, true = enabled, false = disabled
|
||||
MAXIMUM_CHAR_LIMIT_FOR_TEXT_MSGS = 9000 # the maximum character limit for text messages that users can link, set to a reasonable number to prevent abuse (e.g., 12000 characters)
|
||||
REPORT_FEATURE_ENABLED = true # whether to allow users to report inappropriate content, true = enabled, false = disabled
|
||||
DELETE_TELEGRAM_ACTIONS = true # whether to delete all basic telegram report messages/warnings such as user left, joined, message x was pinned, ect. in the groups to keep them clean, true = enabled, false = disabled
|
||||
ALLOW_USERS_TO_DELETE_CONTENT = true # whether to allow users to delete their own content/links, making all links/content ID's immediately ineffective, true = enabled, false = disabled
|
||||
ACTUALLY_DELETE_CONTENT = false # THIS OPTION IS NOT SHOWN; whether to actually the content that gets burned, deleted by users or administrators, true = fully deletes all media if that was the intended action & only saves content after accepting submissions/when neccessary, false = saves ALL contents, regardless whether they were accepted by administrators or not & does not delete them under all circumstances
|
||||
DELETE_SUBMISSIONS_AFTER_REVIEW = moderated # whether to delete the original Telegram messages of user submissions after they have been reviewed by administrators, true = enabled, false = disabled, moderated = only delete if the content was moderated directly, i.e. the user banned for posting it
|
||||
ALLOW_CUSTOM_PASSWORDS_FOR_LINKS = false # whether to allow users to choose their own custom passwords for accessing their content links, true = enabled, false = disabled (if disabled, the bot will generate random passwords for all links)
|
||||
# if chosen direct, a randomized string is generated and directly embedded within URL for automatic loading, if chosen external the user has to enter the password given manually before accessing contents, to avoid long, complex strings uses a wordlist of possible passwords and chooses randomly from it
|
||||
PASSWORD_METHOD_TYPE = "direct" # options: "direct", "external"
|
||||
EXTERNAL_PASSWORD_LIST_TXT = "./resources/password_access_list.txt"
|
||||
|
||||
|
||||
[STORAGE_SETTINGS]
|
||||
TEXT_STORAGE_TYPE = "sqlite3" # options: "sqlite3", "json"
|
||||
BAN_LOG_STORAGE_TYPE = "sqlite3" # options: "sqlite3", "json"
|
||||
FILE_HASHES_KEY_WRAPPED_STORAGE_TYPE = "sqlite3" # options: "sqlite3", "json"
|
||||
PREVIOUS_USERS_FOR_ADVERTISEMENTS_STORAGE_TYPE = "sqlite3" # options: "sqlite3", "json"
|
||||
USER_UPLOADED_CONTENT_EXPOSED_METHOD = "web" # options: "web", "telegram", "both"
|
||||
ADMIN_UPLOADED_CONTENT_EXPOSED_METHOD = "web" # options: "web", "telegram", "both"
|
||||
# DO NOT ENTER ANYTHING HERE MANUALLY, SOFTWARE SETS ENCRYPTION KEYS AUTOMATICALLY
|
||||
EPHEMERAL_AES_ENVELOPE_KEY = "" # This feature uses xchacha20-poly1305 alongside AES-KW (RFC 5649) for wrapping chacha keys - randomized wrapper key to securely encrypt/decrypt every file/textblob from traffic, cannot be changed using commands and completely hidden for security reasons
|
||||
SUPPORTED_MEDIA_TYPES_STRING = "image, video, audio, document" # the media types that are allowed to be linked by users, will show up as 'X is not an allowed media type, only the following media types are allowed: X, Y, Z' if user tries to link a media type that is not in this list, shown but cannot be changed using commands
|
||||
DATABASE_FOLDER_PATH = "./databases" # the folder path where all databases (if using sqlite3) or json files (if using json) will be stored, make sure the bot has read/write permissions for this folder, shown yet cannot be changed using commands
|
||||
|
||||
|
||||
[WEB_SETTINGS]
|
||||
PORT_EXPOSED = 9465 # the port that will be exposed for the web server (if enabled)
|
||||
GENERATE_SECURE_KEY_FOR_CONTENT_LINKS = true # whether to generate secure, random keys for accessing web content instead of allowing direct API access to anyone, true = enabled, false = disabled
|
||||
ALLOW_COMMENTS_ON_WEB_CONTENT_PAGES = true # whether to allow users to comment anonymously (cloudflare-integration important!) on content pages on the web interface, true = enabled, false = disabled
|
||||
|
||||
|
||||
[MISC]
|
||||
DEVELOPER_TELEGRAM_USERNAME = "forgecadrape" # credits for making this bot (plain Username without @), cannot be changed using commands
|
||||
FORBIDDEN_CONTENT_TYPES_STRING = "CP, necriphilia, ect." # will shows up as 'X is strictly forbidden and leads to permanent deletion of links as well as exclusion from bot.'
|
||||
MEDIA_TOPIC_FOR_BOT = "gore" # the topic that is generally seen and accepted by administrators for media generation, crucial for explicitly stating to new users which content will likely get approved.
|
||||
CONTACT_TELEGERAM_LINK = "harmfulmeowbot?start=submit" # can be either BOT_NAME?start=submit OR TELEGRAM_USERNAME
|
||||
Reference in New Issue
Block a user