Initial commit

This commit is contained in:
Miłosz Guglas
2021-09-18 15:30:56 +02:00
committed by --local
commit 9c15227cbf
27 changed files with 523 additions and 0 deletions

8
src/config/contents.py Normal file
View File

@@ -0,0 +1,8 @@
import re
# These are MarkdownV2 python-telegram-bot specific
opted_in_successfully = re.escape('You have opted-in for everyone-mentions.')
opted_in_failed = re.escape('You already opted-in for everyone-mentions.')
opted_off_successfully = re.escape('You have opted-off for everyone-mentions.')
opted_off_failed = re.escape('You need to opt-in first before processing this command.')
mention_failed = re.escape('There are no users to mention.')

16
src/config/credentials.py Normal file
View File

@@ -0,0 +1,16 @@
import os
from dotenv import load_dotenv
load_dotenv()
bot_token = os.environ['bot_token']
app_url = os.environ['app_url']
port = os.environ['PORT']
firebaseConfig = {
"apiKey": os.environ['firebase_apiKey'],
"authDomain": os.environ['firebase_authDomain'],
"databaseURL": os.environ['firebase_databaseURL'],
"projectId": os.environ['firebase_projectId'],
"storageBucket": os.environ['firebase_storageBucket'],
}

9
src/config/handlers.py Normal file
View File

@@ -0,0 +1,9 @@
from ..handlers.inHandler import InHandler
from ..handlers.outHandler import OutHandler
from ..handlers.mentionHandler import MentionHandler
handlers = [
InHandler(),
OutHandler(),
MentionHandler()
]