Skip to content
Snippets Groups Projects
Commit a5cee3bf authored by Helge Jung's avatar Helge Jung
Browse files

move ffpb.cfg to bot.cfg.example and require usage of 'bot.cfg'

parent b2d45380
No related branches found
No related tags found
No related merge requests found
*.sqlite
*.pid
*.pyc
bot.cfg
build/
logs/
......@@ -13,7 +13,7 @@ port = 9999
owner = HeJ
admins = oscar-, Barbarossa
channels = #ffpb-gurus, #ffpb
channels = #ffpb
prefix = !
enable = admin,ffpb,ip,reload
timeout = 120
......@@ -26,3 +26,7 @@ pid_dir = .
userdb_type = sqlite
userdb_file = ffpb.sqlite
[ffpb]
msg_enable = 1
msg_port = 2342
msg_target = #ffpb
......@@ -12,14 +12,19 @@ if [ -z "$python3" ]; then
fi
fi
if [ ! -r "${mydir}/bot.cfg" ]; then
echo "'bot.cfg' is missing. Have you copied 'bot.cfg.example'?"
exit 2
fi
case $1 in
start)
[ ! -d "${mydir}/logs" ] && mkdir "${mydir}/logs"
$python3 "${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --fork
$python3 "${mydir}/willie/willie.py" -c "${mydir}/bot.cfg" --fork
;;
stop)
$python3 "${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --quit
$python3 "${mydir}/willie/willie.py" -c "${mydir}/bot.cfg" --quit
;;
restart)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment