-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
37 lines (31 loc) · 1.53 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# --------------------------------------------- #
# Plugin Name : Telegram Support Bot #
# Author Name : fabston #
# Fixed Bugs : vi-dev0 #
# File Name : config.py #
# --------------------------------------------- #
# Telegram
token = '<Your Token>' # More: https://core.telegram.org/bots#3-how-do-i-create-a-bot
# MySQL Database
mysql_host = 'localhost'
mysql_db = 'admin'
mysql_user = 'admin'
mysql_pw = 'password'
# Support Chat (Chat ID)
support_chat = # Example: -1001429781350 | To find out your channels ID use: https://t.me/getidsbot
# Misc
time_zone = 'GMT+3' # Supports time zone
bad_words_toggle = True # Enable / disable bad words filter
spam_toggle = True # Enable / disable spam filter
spam_protection = 5 # How many consecutive messages can be sent without a reply from the team
open_ticket_emoji = 24 # After X amount of HOURS an emoji will pop up at /tickets
# Messages
text_messages = {
'start': '🇺🇸Hi {}, how can we help you today?\n🇷🇺Привет {}, чем можем помочь?',
'faqs': 'Your FAQ text goes in here.',
'support_response': 'From: {}👇' # Support response is being added automatically. {} = refers to the staffs first name.
}
# Regex (https://regex101.com/)
regex_filter = {
'bad_words': r'(?i)^(.*?(\b\w*fuck|shut up|dick|bitch|bastart|cunt|bollocks|bugger|rubbish|wanker|twat|suck|ass|pussy|arsch\w*\b)[^$]*)$'
}