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 *.sqlite
*.pid *.pid
*.pyc *.pyc
bot.cfg
build/ build/
logs/ logs/
...@@ -13,7 +13,7 @@ port = 9999 ...@@ -13,7 +13,7 @@ port = 9999
owner = HeJ owner = HeJ
admins = oscar-, Barbarossa admins = oscar-, Barbarossa
channels = #ffpb-gurus, #ffpb channels = #ffpb
prefix = ! prefix = !
enable = admin,ffpb,ip,reload enable = admin,ffpb,ip,reload
timeout = 120 timeout = 120
...@@ -26,3 +26,7 @@ pid_dir = . ...@@ -26,3 +26,7 @@ pid_dir = .
userdb_type = sqlite userdb_type = sqlite
userdb_file = ffpb.sqlite userdb_file = ffpb.sqlite
[ffpb]
msg_enable = 1
msg_port = 2342
msg_target = #ffpb
...@@ -12,14 +12,19 @@ if [ -z "$python3" ]; then ...@@ -12,14 +12,19 @@ if [ -z "$python3" ]; then
fi fi
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 case $1 in
start) start)
[ ! -d "${mydir}/logs" ] && mkdir "${mydir}/logs" [ ! -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) stop)
$python3 "${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --quit $python3 "${mydir}/willie/willie.py" -c "${mydir}/bot.cfg" --quit
;; ;;
restart) 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