X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fother_files%2Fplomlombot_daemon.sh;h=276c6021da9561874fcab0b50ac691fb4569ec46;hp=7847d25ce3e3af59f04da98572fc483b76b53346;hb=27942fc7dfadcc26b4fff15974af2b0faa675730;hpb=710b6e4e7337b99a79910d35ef8216d214355719 diff --git a/buster/other_files/plomlombot_daemon.sh b/buster/other_files/plomlombot_daemon.sh index 7847d25..276c602 100755 --- a/buster/other_files/plomlombot_daemon.sh +++ b/buster/other_files/plomlombot_daemon.sh @@ -26,13 +26,14 @@ while true; do server_name=$(echo -n "${line}" | cut -d' ' -f5) login_user=$(echo -n "${line}" | cut -d' ' -f6) login_pw=$(echo -n "${line}" | cut -d' ' -f7) + add_option=$(echo -n "${line}" | cut -d' ' -f8-) set +e screen -S "${session_name}" -Q select . > /dev/null start_screen=$? set -e if [ "${start_screen}" -eq "1" ]; then cd ~/plomlombot-irc - LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" "${channel_name}" + LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" -c "${channel_name}" "${add_option}" fi md5_server=$(echo -n "${server_name}" | md5sum | cut -d' ' -f1) md5_channel=$(echo -n "${channel_name}" | md5sum | cut -d' ' -f1)