2016-09-03 00:14:12 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-09-03 01:38:30 -04:00
|
|
|
if [ -z "$input" ]; then
|
|
|
|
input=".bot.cfg"
|
|
|
|
fi
|
|
|
|
|
2016-09-03 00:14:12 -04:00
|
|
|
msg()
|
|
|
|
{
|
|
|
|
local msg="PRIVMSG $1"
|
|
|
|
shift
|
2016-09-03 01:38:30 -04:00
|
|
|
echo "$msg $@" | tee -a "$input"
|
2016-09-03 00:14:12 -04:00
|
|
|
}
|
|
|
|
|
2016-09-04 12:43:22 -04:00
|
|
|
act()
|
|
|
|
{
|
|
|
|
local msg="PRIVMSG $1 :\x01ACTION"
|
|
|
|
shift
|
|
|
|
echo -e "$msg $@\x01" | tee -a "$input"
|
|
|
|
}
|
|
|
|
|