-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathxconfig.py
More file actions
68 lines (59 loc) · 3.12 KB
/
xconfig.py
File metadata and controls
68 lines (59 loc) · 3.12 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
import json
import os
def get_user_list(config, key):
with open("{}/Razerbot/{}".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
API_ID = 123456 # integer value, dont use ""
API_HASH = "API_HASH"
TOKEN = "BOT_TOKEN" # This var used to be API_KEY but it is now TOKEN, adjust accordingly.
BOT_USERNAME = "BOT_USERNAME"
BOT_NAME = ""
BOT_ID = ""
OWNER_ID = Your_Id # If you dont know, run the bot and do /id in your private chat with it, also an integer
OWNER_USERNAME = "YourUsername"
START_IMG = "https://graph.org/file/644fddccf30ac191fc895.jpg"
ALIVE_IMG = "https://graph.org/file/36c17c0f22aeea9c99895.jpg"
UPDATE_CHANNEL = "<channel-username>" # Your own channel for updates, do not add the @
SUPPORT_CHAT = "<support-chat-username>" # Your own group for support, do not add the @
JOIN_LOGGER = (-10012345678) # A new channel ID To log who started the bot. Starting with "-100", Put inside braces
EVENT_LOGS = (-10012345678) # Prints information like gbans, sudo promotes, AI enabled disable states that may help in debugging and shit
# RECOMMENDED
MONGO_DB_URI = ""
SQLALCHEMY_DATABASE_URI = "" # needed for any database module
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"
TEMP_DOWNLOAD_DIRECTORY = "./"
# OPTIONAL
DRAGONS = [] ##List of integer ids separated by "," for users which have sudo access to the bot.
DEV_USERS = [] ##List of integer ids separated by "," for developers who will have the same perms as the owner
DEMONS = [] ##List of integer ids separated by "," for users which are allowed to gban, but can also be banned.
TIGERS = [] ##List of integer ids separated by "," for users which WONT be banned/kicked by the bot.
WOLVES = []
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.
OPENWEATHERMAP_ID = ""
ALLOW_EXCL = True # Allow ! commands as well as / (Leave this to true so that blacklist can work)
CASH_API_KEY = "" # Get your API key from https://www.alphavantage.co/support/#api-key
IBM_WATSON_CRED_URL = ""
IBM_WATSON_CRED_PASSWORD = ""
TIME_API_KEY = "" # Get your API key from https://timezonedb.com/api
AI_API_KEY = "" # For chatbot, get one from https://coffeehouse.intellivoid.net/dashboard
BL_CHATS = [] # List of groups that you want blacklisted.
ALLOW_CHATS = True
SPAMMERS = None
class Production(Config):
LOGGER = True
class Development(Config):
LOGGER = True