Externalized welcomebot configuraiton file (#4286).
This commit is contained in:
parent
89663f991b
commit
b0d3227ba7
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ bin
|
|||||||
error.log
|
error.log
|
||||||
nohup.out
|
nohup.out
|
||||||
nicks.csv
|
nicks.csv
|
||||||
|
bot_settings.py
|
||||||
|
21
bot_settings-example.py
Normal file
21
bot_settings-example.py
Normal 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."
|
||||||
|
|
@ -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
1
bot_settings.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/etc/welcomebot/bot_settings.py
|
@ -5,7 +5,7 @@ After=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/srv/welcomebot/git
|
WorkingDirectory=/srv/welcomebot/git
|
||||||
ExecStart=/srv/welcomebot/git/bot.py
|
ExecStart=/srv/welcomebot/bin/welcomebot.py
|
||||||
User=welcomebot
|
User=welcomebot
|
||||||
Group=welcomebot
|
Group=welcomebot
|
||||||
Restart=always
|
Restart=always
|
||||||
|
@ -10,4 +10,4 @@ cd "$BINDIR"
|
|||||||
|
|
||||||
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
|
#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" &
|
Loading…
Reference in New Issue
Block a user