load into remotes file alt + r and save file,click ok to load and check for popups in all available popup fields.
SYNTAX : !quote says quotes,!+ adds quote to quotes.txt file,!quote.amount says the amount of quotes in file $lines,!quote.it sends quotes.txt file to user,clear quotes.txt file option,manage quotes.txt file,help for snippet also avaliable in popups.
#quote.on.off on
on *:text:!quote:#: {
describe # random quote: $read($scriptdirquotes.txt)
}
on *:text:!+:#: {
write $scriptdirquotes.txt $time $nick $2-
describe # your quote has been added $nick to my quotes.txt file.
}
on *:text:!quote.amount:#: {
describe # i have a total of $lines($scriptdirquotes.txt) quotes in my quotes.txt file.
}
on *:text:!quote.it:#: {
if ($group(#quote.on.off) == On) { dcc send $nick $scriptdirquotes.txt }
}
#quote.on.off end
alias clearitall {
if $?!="Are You Sure ?" { write -c $scriptdirquotes.txt | echo -a all quotes have been deleted }
else { halt }
}
menu * {
quotes
.say quote: { describe # $read($scriptdirquotes.txt) }
.+ quote: { write $scriptdirquotes.txt $$?=" add quote " }
.msg quotes: { echo -s i have a total of $lines($scriptdirquotes.txt) quotes in my quotes.txt file. }
.manage quotes: { .run $scriptdirquotes.txt }
.clear all: { $clearitall }
.-
.+/- ( %quote.on.off )
..help:{
echo -a this will turn on and off options for others to use in active channel , commands are
echo -a -
echo -a !quote any user will recieve a random quote from quotes.txt file
echo -a !+ will add a quote to your quotes.txt file
echo -a !quote.amount will describe how many quotes you have in the quotes.txt file
echo -a !quote.it will dcc send my quotes.txt file
}
..enable quote: {
if ($group(#quote.on.off) == Off) {
enable #quote.on.off
set %quote.on.off On
echo -a quote options are on
}
}
..disable quote: {
if ($group(#quote.on.off) == On) {
disable #quote.on.off
set %quote.on.off Off
echo -a quote options are off
}
}
}
on *:load: { write -c $scriptdirquotes.txt }