
Keeping your scripts like this not only keeps things tidy, but makes everything work together more smoothly, and is really useful when starting to use varibale later on in scripts. So have a global declaration, like !quote, then look for the following word as an identifier, so !quote add or !quote remove Then to gather a random quote, you would want to look for if (!$2) which checks to see if $2 is empty, if it is, return the quote. Only thing is that the script I use to collect quotes is about 5 times as long :PĮDIT - I would also suggest getting in the habbit of keeping everything related to the same script within the same block. Then, should a quote want to be removed, the user will enter !quote remove and now the script looks for $3 (as used as an example above) Access to the Neowin IRC - you could make a friend from across the world and talk to them live Access to Neowin contests & subscription offers. The specific quote is gathered by !quote which is gathered by $2 in mSL. This was just taken out of the current quote-bot script I have in place whereby a quote is submitted, and it is saved on a new line in the txt file, and people can recall the quote from the desired line, or they can call a random quote. If you treated each quote as a line, then when it is added, it will be assigned to the line number, then something along the lines of what is written below can be used. txt document, you can use -dl to delete the entire line. connections, to create a bot that was easily controllable via. Seeing as all info about the quote is saved to the same line in the. The original GT bot exploited mIRCs powerful scripting.

It would be pretty easy to delete the desired quote, using the -d switch.
