A
download _trivia.desc
Language: NonCode
LOC: 0
Project Info
xbot4 - The version of X-Bot to supercede ... 2003(xbot4)
Server: Google
Type: svn
...\bin\Debug\xTclLib\scripts\
   _BotnetStats1.9.desc
   _cutetopics100.desc
   _dict109.desc
   _entity92.desc
   _hangman101.desc
   _infobottcl.desc
   _jesusbot1.0.desc
   _jIRCserv-0.02n.desc
   _Lusers.desc
   _mp3list100.desc
   _MsgLog1.1.desc
   _mysqlseen1.1.desc
   _newtopics.desc
   _no.spam.desc
   _quizgod.desc
   _serials100.desc
   _skool101.desc
   _Split4.1.desc
   _thehelper100.desc
   _topicmaster1.1.desc
   _trivia.desc
   _UltramodeNews10.desc
   _UndernetCS.desc
   _userquotes100.desc
   _Veed_0.2.desc
   _WebBanList1.1.desc
   _words100.desc
   _zipcodes100.desc
   abuse100.desc
   abuse100.tcl
   action.fix.desc
   action.fix.tcl
   activech100.desc
   activech100.tcl
   adbseen192.desc
   Adbseen192.tcl
   addban10-mbti.desc
   addban10-mbti.tcl
   added140.desc
   Added140.tcl
   addicted100.desc
   addicted100.tcl
   advert105.desc
   advert105.tcl
   alice120.desc
   alice120.tcl
   alltools.desc
   alltools.tcl
   antiidle-narf-0.3.desc
   antiidle-narf-0.3.tcl
   auth103.desc
   auth103.tcl
   autolimit102.desc
   autolimit102.tcl
   autooper.desc
   autooper.tcl
   av.pubmsg.desc
   av.pubmsg.tcl
   bancheck.desc
   bancheck.tcl
   BanCount1.1.desc
   BanCount1.1.tcl
   BanTools1.2.desc
   BanTools1.2.tcl
   bitchxirix.desc
   bitchxirix.tcl
   bot-solutions.3.0.desc
   bot-solutions.3.0.tcl
   botping.desc
   botping.tcl
   bwscript20.desc
   bwscript20.tcl
   chancheck100.desc
   chancheck100.tcl
   ChanMax1.2.desc
   ChanMax1.2.tcl
   ChanPeak1.3.desc
   ChanPeak1.3.tcl
   chanrelay.desc
   chanrelay.tcl
   ClanAvail1.4.desc
   ClanAvail1.4.tcl
   ClanBase1.1.desc
   ClanBase1.1.tcl
   cmd_resolve.desc
   cmd_resolve.tcl
   compat.desc
   compat.tcl
   CopyVoice1.3.desc
   CopyVoice1.3.tcl
   cracks100.desc
   cracks100.tcl
   DALnetNews1.1.desc
   DALnetNews1.1.tcl
   date1.3.desc
   date1.3.tcl
   DateToDay1.0.desc
   DateToDay1.0.tcl
   daystill102.desc
   daystill102.tcl
   dccwatch104.desc
   dccwatch104.tcl
   Decide1.2.desc
   Decide1.2.tcl
   decide100.desc
   decide100.tcl
   define.desc
   define.tcl
   delhost1.01.desc
   delhost1.01.tcl
   delivery101.desc
   delivery101.tcl
   Dictionary1.1.desc
   Dictionary1.1.tcl
   DieAuth2.1.desc
   DieAuth2.1.tcl
   Dns2.5.desc
   Dns2.5.tcl
   DomainWhois1.2.desc
   DomainWhois1.2.tcl
   EFnetNews1.1.desc
   EFnetNews1.1.tcl
   egg-fu.1.7.desc
   egg-fu.1.7.tcl
   eggpad.desc
   eggpad.tcl
   englishonly102.desc
   englishonly102.tcl
   filerelay0.4.desc
   filerelay0.4.tcl
   fluxlearn1.5a.desc
   fluxlearn1.5a.tcl
   flyby101.desc
   flyby101.tcl
   gamble100.desc
   gamble100.tcl
   gamestar1.4.desc
   gamestar1.4.tcl
   GBan1.4.desc
   GBan1.4.tcl
   getops-2.6.desc
   getops-2.6.tcl
   getops.desc
   getops.tcl
   greeter101.desc
   greeter101.tcl
   guard101.desc
   guard101.tcl
   heise1.4.desc
   heise1.4.tcl
   HostSpy1.8.desc
   HostSpy1.8.tcl
   HostTools1.5.desc
   HostTools1.5.tcl
   HTMLOpVote2.0.desc
   HTMLOpVote2.0.tcl
   ident.desc
   ident.tcl
   ieXbeta1.1.desc
   ieXbeta1.1.tcl
   ilc100.desc
   ilc100.tcl
   infoegg-v1-3.desc
   infoegg-v1-3.tcl
   insult101.desc
   insult101.tcl
   inv.desc
   inv.tcl
   irco-fuckem.desc
   irco-fuckem.tcl
   irco-muh.desc
   irco-muh.tcl
   irco-psybnc.desc
   irco-psybnc.tcl
   irco-scanport.desc
   irco-scanport.tcl
   irco-soundkick.desc
   irco-soundkick.tcl
   irco-wingateban.desc
   irco-wingateban.tcl
   kick100.desc
   kick100.tcl
   kickad100.desc
   kickad100.tcl
   KillLog2.5.desc
   KillLog2.5.tcl
   klined.desc
   klined.tcl
   lamer.desc
   lamer.tcl
   lanparty.desc
   lanparty.tcl
   limit-v1.1.desc
   limit-v1.1.tcl
   limitchan.desc
   limitchan.tcl
   LinkedBots1.2.desc
   LinkedBots1.2.tcl
   maxvisitors101.desc
   maxvisitors101.tcl
   mc.banchan.desc
   mc.banchan.tcl
   mc.spamcheck.desc
   mc.spamcheck.tcl
   megadeth100.desc
   megadeth100.tcl
   mIRCShitlist1.2.desc
   mIRCShitlist1.2.tcl
   moi.desc
   moi.tcl
   netlink107.desc
   netlink107.tcl
   NetStats1.2.desc
   NetStats1.2.tcl
   news.desc
   news.tcl
   news2html.desc
   news2html.tcl
   NoAccess1.1.desc
   NoAccess1.1.tcl
   noads108.desc
   noads108.tcl
   noawayactions1.03.desc
   noawayactions1.03.tcl
   NoColors1.2.desc
   NoColors1.2.tcl
   nocomics100.desc
   nocomics100.tcl
   NoFservs1.5.desc
   NoFservs1.5.tcl
   nosense2.desc
   nosense2.tcl
   notes2.desc
   notes2.tcl
   NoTriggers2.3.desc
   NoTriggers2.3.tcl
   oannouce100.desc
   oannouce100.tcl
   ok1.3.desc
   ok1.3.tcl
   opbegger103.desc
   opbegger103.tcl
   opkillsnn.desc
   opkillsnn.tcl
   OpNotice1.9.desc
   OpNotice1.9.tcl
   pa-trgt3_68.desc
   pa-trgt3_68.tcl
   passgen.desc
   passgen.tcl
   pcgames.desc
   pcgames.tcl
   pickakick102.desc
   pickakick102.tcl
   PortCheck2.2.desc
   PortCheck2.2.tcl
   postal101.desc
   postal101.tcl
   Pub.desc
   Pub.tcl
   pwf.desc
   pwf.tcl
   ques5.desc
   ques5.tcl
   ran.desc
   ran.tcl
   RandRead1.1.desc
   RandRead1.1.tcl
   randtopic2.04.desc
   randtopic2.04.tcl
   recruiters100.desc
   recruiters100.tcl
   released102.desc
   released102.tcl
   SearchPage.desc
   SearchPage.tcl
   sentinel.desc
   sentinel.tcl
   Services2.0.desc
   Services2.0.tcl
   sharereactor1.0.desc
   sharereactor1.0.tcl
   ShellTime1.6.desc
   ShellTime1.6.tcl
   ShellUptime1.0.desc
   ShellUptime1.0.tcl
   shortnews.desc
   shortnews.tcl
   showchans104.desc
   showchans104.tcl
   sound_dos-0.02a.desc
   sound_dos-0.02a.tcl
   Spod.desc
   Spod.tcl
   spymsg.desc
   spymsg.tcl
   StockQuote.desc
   StockQuote.tcl
   striptease104.desc
   striptease104.tcl
   SubChan2.0.desc
   SubChan2.0.tcl
   superbitch0.45.desc
   superbitch0.45.tcl
   sync1.2.desc
   sync1.2.tcl
   tan101.desc
   tan101.tcl
   tempc100.desc
   tempc100.tcl
   textsearch0.2.desc
   textsearch0.2.tcl
   TimeIdent1.0.desc
   TimeIdent1.0.tcl
   TimeMessage1.0.desc
   TimeMessage1.0.tcl
   TimeRehash1.0.desc
   TimeRehash1.0.tcl
   tool-lyrics.desc
   tool-lyrics.tcl
   top10.desc
   top10.tcl
   topiclock2.04.desc
   topiclock2.04.tcl
   topiclogger1.01.desc
   topiclogger1.01.tcl
   ucsx0.2.desc
   ucsx0.2.tcl
   uptime1.08.desc
   uptime1.08.tcl
   UrlGet1.4.desc
   UrlGet1.4.tcl
   userinfo.desc
   userinfo.tcl
   VerboseMail1.1.desc
   VerboseMail1.1.tcl
   Voice1.1.desc
   Voice1.1.tcl
   voiceallbut102.desc
   voiceallbut102.tcl
   voicebitch0.1.desc
   voicebitch0.1.tcl
   VoiceFservs1.3.desc
   VoiceFservs1.3.tcl
   vote1.14.desc
   vote1.14.tcl
   warn100.desc
   warn100.tcl
   weather3.3.1.desc
   weather3.3.1.tcl
   WebSiteStatus1.0.desc
   WebSiteStatus1.0.tcl
   Whatis1.5.desc
   Whatis1.5.tcl
   Whom1.0.desc
   Whom1.0.tcl
   winfuture.desc
   winfuture.tcl
   winident1.2.desc
   winident1.2.tcl
   worldtime.desc
   worldtime.tcl
   x-commands0.1.desc
   x-commands0.1.tcl
   zdnet1.1.desc
   zdnet1.1.tcl

trivia.tcl
file:	trivia.tcl
ver:	1.2.0 beta, 27/12/01
author:	graeme donaldson
e-mail:	gpd@planetpastel.com
www:	http://www.geocities.com/triviatcl/
irc:	Souperman on #trivia-game @ irc.blabber.net (sometimes undernet)

------------------------------------

contents

1. general info
2. history
3. installation & use
4. known bugs/issues
5. conditions of use
6. thanks

------------------------------------

1. general info 

i made this script because i couldn't find a trivia game for irc which worked 
the way i wanted. i first wrote a trivia game script for mirc which more or 
less looked like the one used on #trivia on irc.blabber.net. i then decided 
to run my own trivia game using eggdrop instead. 

i'd initially released version 1.01 and 1.02, then decided to leave it alone. 
however, after quite a lot of positive feedback and suggestions, i've decided 
to continue the development of the script. it seems there are a large number 
of people who want a good trivia bot, so development will continue until i 
either get tired of it, or i don't have the time for it any longer. 

this script was developed on eggdrop 1.6.4+. while it should work on any of 
the 1.6 series, i have not tested it on anything below 1.6.4. also note that 
i am by no means any kind of tcl expert, so i expect that there may be more 
efficient/correct ways of doing some things in places. if you have any tips 
you'd like to share, you can contact me at the e-mail address at the top of 
this file. =) 

------------------------------------

2. history

dd/mm/yy   ver    comments
27/12/01   1.2.0  * fixed the target lookup command barfing if you were ranked 
           beta     first.
                  * cleaned up a lot of code after rewriting most of the score 
                    tracking in the previous release.
                  * added option to show only the score of the person who 
                    answered the question, instead of the top 3 and everyone 
                    on the channel. this is useful on channels with more than 
                    20 players at a time.
                  * fixed problem when you disabled one or more colours by 
                    setting it to "". the ascii character for colour was still 
                    being sent, causing some problems with text which had 
                    numbers in it.
                  * added timer to disable the !hint command for x seconds 
                    (default 10) after using it. this prevents cases where 2 
                    people type !hint together and the bot gives 2 hints.
                  * fixed using the !hint command on the last hint causing 
                    the question to be skipped. you cannot use !hint if it's 
                    the last hint.
                  * added option to have the bot generate an html page which
                    lists the people on the channel as their scores, as well
                    as listing all the scores from top to bottom by rank.
                    at the moment this is very basic and can definitely be
                    improved a lot. i need feedback on this to make it better.

26/12/01   1.1.0  * changed version number structure. new structure is a.b.c,
                    where a is the major version number, b is the minor 
                    version number and c is the bugfix release number.
                  * added option to customise colours. you can also disable 
                    them.
                  * added option to show the answer if nobody gets the question 
                    right. the answer will be shown if the question "expires", 
                    not if the question is skipped.
                  * added option to show how long person took to answer the 
                    question correctly.
                  * changed behaviour of startup checks. the bot will no longer 
                    "die" if an error is detected. instead, the script will 
                    stop loading when an error is encountered and give the 
                    reason in the log.
                  * changed help text to only show how to start the game (on 
                    join message and help reply) if user has required flags.
                  * added option to send private messages using /msg instead 
                    of /notice.
                  * added /msg command to display channel rules. both the 
                    command and the actual rules are customisable.
                  * fixed various case issues, e.g. if "joesoap" has 2 points, 
                    then changes nick to JoeSoap and gets another correct, 
                    there would be a score of 3 for "joesoap" and a score of 
                    1 for "JoeSoap". such a stupid bug but it was tricky to fix.
                  * fixed issues with people having [, {, etc. in their nicks 
                    where scoring would be duplicated similar to the case bug 
                    above. also very tricky to fix. this bug and the previous 
                    one resulted in me having to rethink and recode most of the 
                    stuff relating to scoring. expect bugs! ;o)
                  * removed some redundant code and consolidated some 
                    duplicated stuff into procs.

04/08/01   v1.02  * added auto disable after x unanswered questions. (set 
                    tgmaxmissed).
                  * removed check on load if channel set for the game is a 
                    valid channel. was causing some problems.
                  * added option to use bold in messages or not. 
                    (set tgusebold 1/0).
                  * added option to disable winning streaks. 
                    (set tgstreakmin 0).

28/07/01   v1.01  * first public release.

??/07/01   -      * decided to abandon mirc script in favour of eggdrop. 
                    installed an eggdrop and started to learn tcl.

??/06/01   -      * wrote a trivia script for mirc. total development time was 
                    approximately 24 hours over a period of about 3 weeks.

------------------------------------

3. installation & use

to use the script:
  * extract all the files in the archive to a directory on your shell.
  * edit the trivia.tcl file to customise the settings to your liking.
  * add the script to your bot's config. see the eggdrop documentation if you 
    don't know how to do this.
  * make sure that alltools.tcl 1.6 or higher is loaded in your bot's config. 
    also, make sure that it loads before trivia.tcl.
  * make sure that the file you set for the question/answers database exists, 
    or the script will not load.
  * make sure that you only set one channel as your trivia channel. if not, 
    the script will fail to load.
  * if this is a first time installation, rehash your bot. if you're upgrading 
    from an older version, restart the bot instead, as a rehash does not clear 
    the current binds and i may have made changes to them. also, if you're 
    upgrading from an older version, reset your bot's scores.

once you've done all this, you can start the game by typing the start command 
on the channel you specified.

note: the question database included is for example purposes. add more 
questions by following the format of the example file, i.e. one question/answer 
pair per line, answer first, then question, seperated by a '|'. it does not 
need to be in any order, i just find it easier to prevent adding a duplicate 
question if my database is sorted alphabetically by answer. 

the default channel commands (and flags required for their use) are: 

command   flags   description
!hint     o|o     gives another hint to the current question.
!skip     o|o     skips the question and selects a new one.
!start    -|-     starts the game (if it's not running).
!stop     o|o     stops the game (if it's running).

the default /msg commands (and flags required for their use) are: 

command   flags   description
?         n/a     gives help.
error     n/a     report errors in questions/answers.
reset     n|n     reset score table.
rules     n/a     show the channel's rules (customisable).
score     n/a     looks up someone's score.
target    n/a     tells you who is ranked one above you.

------------------------------------

4. known bugs/issues 

the following are bugs and/or issues i am aware of, but have not yet resolved:

  * if your answers have non-english characters such as      in them, the 
    bot does not recognise a correct answer. i think this is related to the 
    issue regarding unicode characters as documented in eggdrop's 
    doc/known-problems file. i'm not an expert, so i could be wrong. 
    quick fix: make sure your answers don't have any high-ascii characters in 
    them. 

------------------------------------

5. conditions of use 

you have my permission to: 
  * use the script "as is" 
  * make any modifications you want to. if you distribute a modified version 
    of the script, please give me credit somewhere (in a readme file or 
    whatever), and include a link to the script's home page (see top of file). 
you do not have my permission to: 
  * "rip" the script and claim it as your own work. i know there's no way i 
    can really prevent you from doing it, but if you do, i hope you feel really 
    really rotten about it. :-p 
  * make money from this script. at all. ever. ;o) 

------------------------------------

6. thanks 

thanks goes to...
  * the helpful folks on undernet's #eggdrop for answering my questions. 
    especially when i've been up late and am not thinking straight. you guys 
    have tons of patience. =) 
  * the forum regulars on egghelpforum.com for being such helpful souls. (so 
    helpful in fact that i've never had to post a question because i invariably 
    find it's already been answered). 
  * the guy who originally wrote the mirc trivia script as used on blabber.net 
    and various other places. 
  * prince_of_chaos @ irc.blabber.net: assisting with beta testing. 
  * stuuu @ irc.xnet.org, #xnet-trivia & #gimp: bug reports and suggestions. 
  * nightshade @ irc.axenet.org, #trivia! & #trance: tons of suggestions. 
  * and of course, the biggest thanks goes to you, for being smart enough to 
    use the best damn trivia script available for eggdrop! hehehehehe. 

eof

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us