From 8ea9e3b158965a37ce1efbe73975a89ea65d07db Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Wed, 1 May 2019 19:21:57 +0200 Subject: [PATCH] Bashbot Version 0.70 - startproc --- commands.sh | 2 +- examples/calc.sh | 2 +- examples/question.sh | 2 +- mycommands.sh | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands.sh b/commands.sh index ee277ab..7989381 100644 --- a/commands.sh +++ b/commands.sh @@ -128,7 +128,7 @@ else ;; '/cancel'*) - checkprog + checkproc if [ "$res" -eq 0 ] ; then killproc && _message "Command canceled.";else _message "No command is currently running.";fi ;; *) # forward other messages to optional dispatcher diff --git a/examples/calc.sh b/examples/calc.sh index 7d61fda..8b02a9f 100755 --- a/examples/calc.sh +++ b/examples/calc.sh @@ -1,6 +1,6 @@ #!/bin/bash # file: calc.sh -# example for an interactive chat, run with startprog calc.sh +# example for an interactive chat, run with startproc calc.sh # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) diff --git a/examples/question.sh b/examples/question.sh index 756a9da..aaacffd 100755 --- a/examples/question.sh +++ b/examples/question.sh @@ -1,6 +1,6 @@ #!/bin/bash # file: question.sh -# example for an interactive chat, run with startprog question.sh +# example for an interactive chat, run with startproc question.sh # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) diff --git a/mycommands.sh b/mycommands.sh index 63571c4..7fa5878 100644 --- a/mycommands.sh +++ b/mycommands.sh @@ -32,7 +32,7 @@ mycommands() { fi ;; - '/run-notify'*) # start notify background job + '/run_notify'*) # start notify background job myback="notify"; checkback "$myback" if [ "$res" -gt 0 ] ; then background "example/notify 60" "$myback" # notify every 60 seconds @@ -40,7 +40,7 @@ mycommands() { send_normal_message "${CHAT[ID]}" "Background command $myback already running ..." fi ;; - '/stop-notify'*) # kill notify background job + '/stop_notify'*) # kill notify background job myback="notify"; checkback "$myback" if [ "$res" -eq 0 ] ; then killback "$myback"