aboutsummaryrefslogtreecommitdiff
path: root/config.example.toml
diff options
context:
space:
mode:
authorGravatar klea2026-05-01 14:56:53 +0000
committerGravatar klea2026-05-01 14:56:53 +0000
commita0ce214430138ddd93dc36c56e4bec533c92d195 (patch)
tree11dd3ee1bcb724f7f473bab61f334d2ba2ab9963 /config.example.toml
parentAllow having certain irc config changes without reconnect (diff)
Allow setting a global message ratelimit
This allows configuring a http2irc instance to have a higher global message sending rate limit different from the default hard-coded rate of 1 message / second, whilst keeping backwards compatibility by keeping default value being the hard-coded one. In addition if the rate limit is set to 0, which can be done live, the bot will stop sending queued messages whilst keeping the IRC connection alive.
Diffstat (limited to 'config.example.toml')
-rw-r--r--config.example.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml
index 59a9f09..3c0c6a0 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -11,6 +11,8 @@
#family =
#nick = 'h2ibot'
#real = 'I am an http2irc bot.'
+ #sendratelimit = 1
+ # Set to the number of lines per second you want the bot to be able to send globally.
# Certificate and key for SASL EXTERNAL authentication with NickServ; certfile is a string containing the path to a .pem file which has the certificate and the key, certkeyfile similarly for one containing only the key; default values are empty (None in Python) to disable authentication; the connection is terminated if authentication fails
#certfile =
#certkeyfile =