-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.base.toml
85 lines (70 loc) · 2.27 KB
/
settings.base.toml
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
79
80
81
82
83
84
85
# Telegram bot API token
telegram_token = ""
# Set to true if in production
production = false
# Telegram bot owner ID
owner = 0
# Telegram API endpoint
# Change if using local Bot API
# Notice that the call to api.telegram.org/botTOKEN/logout will be made to log out
telegram_base_url = "https://api.telegram.org/bot"
telegram_base_file_url = "https://api.telegram.org/file/bot"
# If base file url should be set forcefully without appending token, for example if you are selfhosting bot api with --local
telegram_base_file_url_force = false
# Thread amount
threads = 4
# Plugins not to load
exclude_plugins = []
# Support URL
support_url = "https://example.com"
# User-Agent used for cached requests
user_agent = "OctoBot/4.0"
# Apex Legends API token for apex.py plugin
# Get token @ https://apexlegendsapi.com/
mozamibque_here_token = ""
# API Key for currency converter
currency_converter_apikey = ""
# Imgur API Client-ID
imgur_clientid = ""
# Allow only specific chats
# If this value != [], then bot will attempt to leave all chats that are not in this list
allowed_chats = []
# Reason for bot leaving if allowed_chats != []
disallowed_chat_reason = "I am sorry, I can't work in this chat cause it is not in allowed chats list."
# Fallback image when bot failed to send image
no_image = "https://gitlab.com/OctoNezd/octonezd.gitlab.io/-/raw/master/public/no_image.png"
[sentry]
# If sentry exception reporting should be enabled or not
enabled = false
# Sentry exception report DSN
dsn = ''
# Sentry organization slug
organization_slug = ''
# Sentry project slug
project_slug = ''
# Redis information
[redis]
host = "localhost"
port = 6379
db = 0
# Spamwatch settings
[spamwatch]
# Default value is https://api.spamwat.ch
# You shouldn't change it in normal circumstances unless using staging API to test
api_host = "https://api.spamwat.ch"
# Spamwatch API token. Get it at t.me/SpamWatchBot
token = "not set"
# Default action
# Supported values: kick, ban, nothing
default_action = "kick"
# Ratelimiting
[ratelimit]
enabled = true
# How many messages before blocking
messages_threshold = 5
# Timeframe in seconds
messages_timeframe = 5
# Ban time in seconds
ban_time = 60
# Leave and block chat if the admins are abusing bot
adm_abuse_leave = true