wow just wow

This commit is contained in:
Ben Harris 2018-10-30 18:03:40 -04:00
parent 50115e9552
commit 77f2b32508
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
1 changed files with 1 additions and 1 deletions

2
bot.sh
View File

@ -58,7 +58,7 @@ do
;; ;;
# run when a message is seen # run when a message is seen
PRIVMSG*) *PRIVMSG*)
echo "$res" echo "$res"
who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/") who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
from=$(echo "$res" | perl -pe "s/.*PRIVMSG (.*[#]?([a-zA-Z]|\-)*) :.*/\1/") from=$(echo "$res" | perl -pe "s/.*PRIVMSG (.*[#]?([a-zA-Z]|\-)*) :.*/\1/")