changed mongoDb collection structure, removed group entity & repository, updated README.md, changed folder names to singular forms

This commit is contained in:
miloszowi
2021-09-25 16:49:11 +02:00
parent baa8a78cad
commit cd8e3507ca
27 changed files with 347 additions and 393 deletions

View File

@@ -1,8 +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 = 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 = 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.')

View File

@@ -1,9 +1,10 @@
import os
from dotenv import load_dotenv
load_dotenv()
bot_token = os.environ['bot_token']
BOT_TOKEN = os.environ['BOT_TOKEN']
MONGODB_DATABASE=os.environ['MONGODB_DATABASE']
MONGODB_USERNAME=os.environ['MONGODB_USERNAME']

View File

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