Updated the bot to have configurable symbols for calling it.
This commit is contained in:
2
bot.sh
2
bot.sh
@ -96,7 +96,7 @@ set +f
|
||||
./triggers/link/link.sh "$who" "$from" "$result"
|
||||
set -f
|
||||
# Although this calls modules, it triggers on text other than the bot's nick
|
||||
elif [[ "$result" =~ ^.*PRIVMSG.*:[[:punct:]].* ]]; then
|
||||
elif [[ "$result" =~ ^.*PRIVMSG.*:[${botCaller}].* ]]; then
|
||||
command="${result#*:[[:punct:]]}"
|
||||
command="${command//# /}"
|
||||
will="${command#* }"
|
||||
|
Reference in New Issue
Block a user