the bot can now exit gracefully.
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$input" ]; then
|
||||
input=".botinput"
|
||||
if [[ -z "$input" ]]; then
|
||||
input="$(mktemp .XXXXXX)"
|
||||
fi
|
||||
|
||||
close_bot() {
|
||||
echo -en "QUIT :${quitMessage}\r\n" >> "$input"
|
||||
}
|
||||
|
||||
msg()
|
||||
{
|
||||
local msg="PRIVMSG $1 :"
|
||||
|
Reference in New Issue
Block a user