DragonFlare commented on a Page, Quote Bot  -  Oct 24, 2010

Why when you could just set it as a variable like and have it triggered the way you're doing it is pointless here

On *:Text:*:#:{
  var %Quote write QuoteDatabase.txt $2-
  var %Read $read(QuoteDatabase.txt)
  tokenize 32 $Strip($1-)
  if ($1 == Quotes) { if ($2 == On) { set %Quotes On | msg Random Quotes Activated. }
    else { if ($2 == Off) { set %Quotes Off | msg $chan Random Quotes Are Off. }
    }
  }
  if ($1 == AddQuote) { if (%Quotes == On) { %Quote | msg $chan $2- Added. }
    else { if (%Quotes == Off) { Halt }
    }
  }
  if ($1 == Quote) { if (%Quotes == On) { msg chan %Read }
    else { if (%Quotes == Off) { Halt }
    }
  }
}

Simple Bot Code Without the Hassle.
And don't use /'s in scripts they look better without them

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.