Externalized welcomebot configuraiton file (#4286).

This commit is contained in:
Christian P. MOMON 2020-03-11 03:38:42 +01:00 committed by root
parent 89663f991b
commit b0d3227ba7
6 changed files with 25 additions and 23 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ bin
error.log
nohup.out
nicks.csv
bot_settings.py

21
bot_settings-example.py Normal file
View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -1 -*-
# Replace these default settings with your own personal settings
# IRC configuration
channel = "#april-accueil"
botnick = "bot_d_accueil"
server = "irc.freenode.net"
registered = False
# Bot behavior
wait_time = 60
channel_greeters = ["madix", "cioccolisa", "cpm_screen", "lonugem" ]
nick_source = "nicks.csv"
# Bot text
hello_list = ["hello", "yo", "bonjour", "salut"]
help_list = ["help", "info", "faq", "explain_yourself", "aide"]
# Bot welcome message. In fact, never used.
welcome_message = "Welcome! The channel is pretty quiet right now, so I thought I'd say hello, and ping some people that you're here. If no one responds for a whle, try emailing us at contact@april.org or just try coming back later. FYI, you're now on my list of known nicknames, so I won't bother you again."

View File

@ -1,21 +0,0 @@
# -*- coding: utf-8 -1 -*-
# Replace these default settings with your own personal settings
# IRC configuration
channel = "#april-accueil"
botnick = "bot_d_accueil"
server = "irc.freenode.net"
registered = False
# Bot behavior
wait_time = 60
channel_greeters = ["madix", "cioccolisa", "cpm__", "lonugem" ]
nick_source = "nicks.csv"
# Bot text
hello_list = ["hello", "yo", "bonjour", "salut"]
help_list = ["help", "info", "faq", "explain_yourself", "aide"]
# Bot welcome message. In fact, never used.
welcome_message = "Welcome! The channel is pretty quiet right now, so I thought I'd say hello, and ping some people that you're here. If no one responds for a whle, try emailing us at contact@april.org or just try coming back later. FYI, you're now on my list of known nicknames, so I won't bother you again."

1
bot_settings.py Symbolic link
View File

@ -0,0 +1 @@
/etc/welcomebot/bot_settings.py

View File

@ -5,7 +5,7 @@ After=network-online.target
[Service]
Type=simple
WorkingDirectory=/srv/welcomebot/git
ExecStart=/srv/welcomebot/git/bot.py
ExecStart=/srv/welcomebot/bin/welcomebot.py
User=welcomebot
Group=welcomebot
Restart=always

View File

@ -10,4 +10,4 @@ cd "$BINDIR"
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
nohup "$BINDIR/bot.py" > /dev/null 2>>"$HOMEDIR/welcomebot.log" &
nohup "$BINDIR/welcomebot.py" > /dev/null 2>>"$HOMEDIR/welcomebot.log" &