Cleaning up code, added triggers, The bot now greets people when they enter the room.

This commit is contained in:
Storm Dragon
2016-09-03 01:38:30 -04:00
parent b5b5dc1d10
commit ed0fbcb89b
4 changed files with 23 additions and 5 deletions

View File

@ -1,9 +1,13 @@
#!/bin/bash
if [ -z "$input" ]; then
input=".bot.cfg"
fi
msg()
{
local msg="PRIVMSG $1"
shift
echo "$msg $@" | tee -a "$log"
echo "$msg $@" | tee -a "$input"
}