Cleaning up code, added triggers, The bot now greets people when they enter the room.
This commit is contained in:
@ -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"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user