coin module.

This commit is contained in:
Storm Dragon
2016-09-05 21:44:04 -04:00
parent af18b6c47a
commit d9b180deb3
6 changed files with 64 additions and 16 deletions

12
bot.sh
View File

@ -2,7 +2,17 @@
[ -f functions.sh ] && source functions.sh
[ -f bot.properties ] && source bot.properties
input=".bot.cfg"
input=".botinput"
close_bot()
{
echo -en "QUIT :$quitMessage\r\n" >> "$input"
rm "$input"
sleep 10
}
trap close_bot EXIT $?
echo "Starting session: $(date "+[%y:%m:%d %T]")" | tee $log
echo "NICK $nick" > $input
echo "USER $user" >> $input