Browse Source

Externalized welcomebot configuraiton file (#4286).

april-welcomebot
Christian P. MOMON 2 years ago
committed by root
parent
commit
b0d3227ba7
  1. 1
      .gitignore
  2. 21
      bot_settings-example.py
  3. 21
      bot_settings.py
  4. 1
      bot_settings.py
  5. 0
      welcomebot.py
  6. 2
      welcomebot.service
  7. 2
      welcomebot.sh

1
.gitignore

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

21
bot_settings-example.py

@ -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."

21
bot_settings.py

@ -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

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

0
bot.py → welcomebot.py

2
welcomebot.service

@ -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

2
bot.sh → welcomebot.sh

@ -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" &
Loading…
Cancel
Save