quotes

By RoninWarrior on Dec 14, 2005

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 }

Comments

Sign in to comment.
Pakistani1   -  Jan 16, 2007

is there a way u can make this script channel specific . so that it willspit a quote in some channles and not all the channels when some one writes !quote

 Respond  
Scruffy   -  Dec 14, 2005

Ooooh very nice =D very fun to use, AND MAKE FUN OF YOUR FRIENDS BY QUOTEING LOGS! woo!

 Respond  
RoninWarrior   -  Dec 14, 2005

next update will have some mild protection to were only ops voices & specific userlevels may add to the quotes.txt file and to help avoid possiable spam and malic $encode $decode lines.

 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.