modbot.py/modbot/settings.py

30 lines
1 KiB
Python
Raw Normal View History

2022-04-18 00:09:13 +00:00
### Authorization settings ###
# Peertube instance URL
instance = "xxivproduction.video"
# Credentials of user with MODERATOR role on this instance or room
username = "USERNAME"
password = "PASSWORD"
# Room UUID (from direct chat URL)
# To find one, click the chain icon in upper right corner in chat area on stream page. Example:
# Direct chat URL looks like this https://xxivproduction.video/plugins/livechat/router/webchat/room/4d393887-f850-eeee-bbbb-0178976ad016
# You are looking for "4d393887-f850-eeee-bbbb-0178976ad016" part of it
# You can also find Room UUID in Share -> Embed menu
room = "f3e0a5fe-e0be-42c4-b3ab-9e42cf5ecc2e"
### Moderation settings ###
# Timeout length, if !timeout command was send without 2nd argument
timeout_default = 300
# Rate limit settings
# Time window (in seconds) to measure rates
ratelimit_timewindow = 10
# How many messages one user allowed to send in 'ratelimit_timewindow' seconds
ratelimit_maxmessages = 4
# Length of timeout (in seconds) that will be applied to user who exceeded the limits
ratelimit_timeout = 30