Skip to content

Commit

Permalink
Create config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadew451 authored Sep 5, 2021
1 parent 677bb1e commit 2766dfa
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions NatsukiMusic/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# EZILAXMUSIC- Telegram bot project
# Copyright (C) 2021 Roj Serbest
# Copyright (C) 2021 Sadew Jayasekara
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.

# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Modified by Sadew

import os
from os import getenv

from dotenv import load_dotenv

if os.path.exists("local.env"):
load_dotenv("local.env")

que = {}
SESSION_NAME = getenv("SESSION_NAME", "session")
BOT_TOKEN = getenv("BOT_TOKEN")
BOT_NAME = getenv("BOT_NAME")
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "Natsuki_updates")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/1fa0f2cb48b11523b7bf4.jpg")
admins = {}
API_ID = int(getenv("API_ID", ""))
API_HASH = getenv("API_HASH")
BOT_USERNAME = getenv("BOT_USERNAME")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "Natsukihelper")
SUPPORT_GROUP = getenv("SUPPORT_GROUP", "NatsukiSupport_Official")
PROJECT_NAME = getenv("PROJECT_NAME", "NatsukiMusic")
SOURCE_CODE = getenv("SOURCE_CODE", "github.com/Sadew451/NatsukiMusic")
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "7"))
ARQ_API_KEY = getenv("ARQ_API_KEY", None)
PMPERMIT = getenv("PMPERMIT", None)
LOG_GRP = getenv("LOG_GRP", None)
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ !").split())
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))

0 comments on commit 2766dfa

Please sign in to comment.