forked from kjeymax/MR-JOKER_BOT
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsample_config.py
More file actions
78 lines (67 loc) · 3.33 KB
/
sample_config.py
File metadata and controls
78 lines (67 loc) · 3.33 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Create a new config.py or rename this to config.py file in same dir and import, then extend this class.
import json
import os
def get_user_list(config, key):
with open("{}/mrjoker/{}".format(os.getcwd(), config), "r") as json_file:
return json.load(json_file)[key]
# Create a new config.py or rename this to config.py file in same dir and import, then extend this class.
class Config(object):
LOGGER = True
# REQUIRED
# Login to https://my.telegram.org and fill in these slots with the details given by it
API_ID = 123456 # integer value, dont use ""
API_HASH = "hmmmm"
TOKEN = "BOT_TOKEN" # This var used to be API_KEY but it is now TOKEN, adjust accordingly.
OWNER_ID = 948247711 # If you dont know, run the bot and do /id in your private chat with it, also an integer
OWNER_USERNAME = "kavinduaj"
SUPPORT_CHAT = "lkhitech" # Your own group for support, do not add the @
JOIN_LOGGER = (
-1001253661229
) # Prints any new group the bot is added to, prints just the name and ID.
EVENT_LOGS = (
-1001190806654
) # Prints information like gbans, sudo promotes, AI enabled disable states that may help in debugging and shit
# RECOMMENDED
SQLALCHEMY_DATABASE_URI = "something://somewhat:user@hosturl:port/databasename" # needed for any database modules
REDIS_URI = " "
LOAD = []
NO_LOAD = ["rss", "cleaner", "connection", "math"]
WEBHOOK = False
INFOPIC = True
URL = None
SPAMWATCH_API = "" # go to support.spamwat.ch to get key
SPAMWATCH_SUPPORT_CHAT = "@SpamWatchSupport"
# OPTIONAL
##List of id's - (not usernames) for users which have sudo access to the bot.
DRAGONS = get_user_list("elevated_users.json", "sudos")
##List of id's - (not usernames) for developers who will have the same perms as the owner
DEV_USERS = get_user_list("elevated_users.json", "devs")
##List of id's (not usernames) for users which are allowed to gban, but can also be banned.
DEMONS = get_user_list("elevated_users.json", "supports")
# List of id's (not usernames) for users which WONT be banned/kicked by the bot.
TIGERS = get_user_list("elevated_users.json", "tigers")
WOLVES = get_user_list("elevated_users.json", "whitelists")
DONATION_LINK = None # EG, paypal
CERT_PATH = None
PORT = 5000
DEL_CMDS = True # Delete commands that users dont have access to, like delete /ban if a non admin uses it.
STRICT_GBAN = True
WORKERS = (
8 # Number of subthreads to use. Set as number of threads your processor uses
)
BAN_STICKER = "" # banhammer marie sticker id, the bot will send this sticker before banning or kicking a user in chat.
ALLOW_EXCL = True # Allow ! commands as well as / (Leave this to true so that blacklist can work)
CASH_API_KEY = (
"Hmm" # Get your API key from https://www.alphavantage.co/support/#api-key
)
TIME_API_KEY = "hmmmm" # Get your API key from https://timezonedb.com/api
WALL_API = (
"hmmm" # For wallpapers, get one from https://wall.alphacoders.com/api.php
)
AI_API_KEY = "hmmm" # For chatbot, get one from https://coffeehouse.intellivoid.net/dashboard
BL_CHATS = [] # List of groups that you want blacklisted.
SPAMMERS = None
class Production(Config):
LOGGER = True
class Development(Config):
LOGGER = True