-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.ini
More file actions
70 lines (66 loc) · 2.82 KB
/
config.sample.ini
File metadata and controls
70 lines (66 loc) · 2.82 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
[general]
# the token size. It should be at least 20.
token_size = 64
# IDs of the owners. separate them using " " or ",".
owners = 1341091260, 123456789, 4123456789
# IDs of dev users. separate them using " " or ",".
# dev users have access to development commands, such as
# gitpull, restart, etc...
# Please do notice that if someone's user id is already in owners
# section, you don't need to put it in dev_users variable anymore.
dev_users = 792109647, 895373440, 1341091260
# IDs of the userbots known as "assault dominators".
# separete them using ", "
# Sibyl's bot will send json data to pm of these accounts,
# make sure they have started the bot.
assault_dominators = 123456, 1234567, 1478568
# the http port that we should listen to
port = 80
# maximum amount of allowed panics to be caught. -1 for unlimited.
max_panics = -1
# debug mode or nah
debug = false
[database]
# the url of your postgresql database.
# if `use_sqlite` is set to `true`, this variable will be ignored.
url = postgresql://Username:Password@localhost:5432/DatabaseName
# maximum amount of time for data received from database being
# cached in memory in minutes.
max_cache_time = 40
# set this to `true` if you want to use sqlite database.
# this is not recommended for production version of Sibyl System.
use_sqlite = false
# the database name. if `use_sqlite` is true, this value is required;
# in that case, if it's empty, it will be set to `sibyldb` by default.
db_name = sibyldb
# the amount of stats to be cached in memory in minutes.
# set it to 0 or comment it out if you don't want it to be cached.
stats_cache_time = 60
[telegram]
# the helper bot's token.
# it can be commented out (or set to empty) if you don't want
# the application to interact with telegram directly.
bot_token = 1234:abcdefgh
# the base group's IDs. separate them using " " or ",".
# values in base chats can be anything: a user's pm, a channel or a group.
base_chats = -10012345678, -10023456789, 123456789
# auto-appeal logs channel IDs. the IDs can be for a user's pm,
# a private/public channel or a group. separate them using " " or ",".
appeal_logs = -10012345678, 123456789
# the command prefixes of the bot.
cmd_prefixes = ! / > ?
# The bot api url. comment this variable (or don't change it at all)
# to use the official bot api url.
api_url = https://api.telegram.org
# To drop old updates from telegram or not.
drop_updates = true
# ratelimiter's punishment (ignoring) time in minutes.
ratelimiter_punishment_time = 40
# ratelimiter's message sending timeout. (in seconds)
ratelimiter_timeout = 4
# ratelimiter's message sending interval. if user sends more than this amount
# of messages per `ratelimiter_timeout` period, bot will ignore him for
# `ratelimiter_punishment_time` minutes.
ratelimiter_max_messages = 6
# ratelimiter's maximum amount of caching for a user.
ratelimiter_max_cache = 50