mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 00:51:32 +00:00
Additionally, a maximum send queue length was added to avoid something like `cat /dev/urandom` from being a massive memory hog and causing OOM. Because output is read from the process and added to the message queue in real time, this could lead to infinite memory usage without it.
23 lines
500 B
Python
23 lines
500 B
Python
user = {
|
|
"realname": "setme",
|
|
"nickname": "setme",
|
|
"channels": ["##join", "##these", "##channels"]
|
|
}
|
|
|
|
server = {
|
|
"ip": "irc.serv.net",
|
|
"port": 6667,
|
|
"sock_timeout": 60,
|
|
"sock_sendbuf": 512,
|
|
"sock_recvbuf": 512
|
|
}
|
|
|
|
bot = {
|
|
"command_prefix": "$!",
|
|
"bot_prefix": "$$",
|
|
"opper_nicknames": ["nicknamehere"],
|
|
|
|
# 512 messages * 512 bytes maximum per message = 262144 bytes max message queue size
|
|
# Adjust for RAM needs to avoid cat /dev/urandom from causing OOM
|
|
"message_queue_max_size": 512
|
|
}
|