Spaces:
Running
Running
# This file is part of the AutoAnime distribution. | |
# Copyright (c) 2025 Kaif_00z | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, version 3. | |
# | |
# This program is distributed in the hope that it will be useful, but | |
# WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
# General Public License for more details. | |
# | |
# License can be found in < | |
# https://github.com/kaif-00z/AutoAnimeBot/blob/main/LICENSE > . | |
# if you are using this following code then don't forgot to give proper | |
# credit to t.me/kAiF_00z (github.com/kaif-00z) | |
from decouple import config | |
class Var: | |
# Version | |
__version__ = "v0.0.8" | |
# Telegram Credentials | |
API_ID = config("API_ID", default=6, cast=int) | |
API_HASH = config("API_HASH", default="eb06d4abfb49dc3eeb1aeb98ae0f581e") | |
BOT_TOKEN = config("BOT_TOKEN", default=None) | |
SESSION = config("SESSION", default=None) | |
# Database Credentials | |
MONGO_SRV = config("MONGO_SRV", default=None) | |
# Channels Ids | |
BACKUP_CHANNEL = config("BACKUP_CHANNEL", default=0, cast=int) | |
MAIN_CHANNEL = config("MAIN_CHANNEL", cast=int) | |
LOG_CHANNEL = config("LOG_CHANNEL", cast=int) | |
CLOUD_CHANNEL = config("CLOUD_CHANNEL", cast=int) | |
FORCESUB_CHANNEL = config("FORCESUB_CHANNEL", default=0, cast=int) | |
OWNER = config("OWNER", default=0, cast=int) | |
# Other Configs | |
THUMB = config( | |
"THUMBNAIL", default="https://graph.org/file/ad1b25807b81cdf1dff65.jpg" | |
) | |
FFMPEG = config("FFMPEG", default="ffmpeg") | |
CRF = config("CRF", default="18") | |
SEND_SCHEDULE = config("SEND_SCHEDULE", default=False, cast=bool) | |
RESTART_EVERDAY = config("RESTART_EVERDAY", default=True, cast=bool) | |
LOG_ON_MAIN = config("LOG_ON_MAIN", default=False, cast=bool) | |
FORCESUB_CHANNEL_LINK = config("FORCESUB_CHANNEL_LINK", default="", cast=str) | |
# Dev Configs | |
DEV_MODE = config("DEV_MODE", default=False, cast=bool) | |