FAQs
Steps Used To Completely Clean Out a Triviabot (Refresh it if it's really messing up badly):
1) Shut your bot down
2) Delete everything inside the AlreadyAsked directory
3) Delete the following files file in your bot's main directory: (If they exist)
TriviaBankTotals.txt
TriviabotErroredQuestions.log
TriviabotErroredQuestions.txt
TriviabotFlaggedQuestions.log
TriviabotFlaggedQuestions.txt
TriviaHangingReport.txt
4) Restart your Triviabot
By doing the above steps your bot will think it's being run for the first time and will recount your trivia and other things it does on its initial run.
The above tends to fix the majority of triviabot issues...please let us know!
Can a triviabot be used in more than one channel?
Unfortunately bots can only run in one channel...the reason being due to scores...we've tried to get a bot to run in multiple channels and also tried making two bots merged together so that two different bots can be ran in different channels or networks but everyone is still competing together in the scores...neither idea worked bug-free (After a while the scores would vanish...not a good thing!)
Because of this, we could only make a one channel-only bot...
How to make the bot give auto-hints and add correctly-guessed characters into the answer:
For auto-hints, look for this area in the Triviabot_Config.txt file:
## Enable Interval Clues? (Th'bot fills in a letter after each interval...1=Enable, 0=Disable!)
1
## Enable Letter Fill-In If Players Guess them right During the Round? (1=Enabled, 0=Disabled)
1
The first one (Enable interval clues) makes the bot add the next unguessed character in the answer on each point drop interval...unless of course there's only one unknown character in the answer...then it won't add anything...
The second item in the above snippet from the Triviabot_Config.txt file (Enable Letter Fill-In) makes the bot auto-fill any characters that are correctly guessed in the answer during a trivia round...so for example if the answer is fifty and someone guesses sixty then it will auto-fill like this:
Triviabot: .....
Guess: sixty
Triviabot: .i.ty
Bot acts weird after I edit the Triviabot_Config.txt:
If you don't want actual nicks or info anywhere in your Triviabot_Config.txt just put some bunch of character garbage or something...like rhsjkghsjrhgs564872...just as long as there's no blank line in the config...the bot chokes on them...
bonus points explained:
The bonus questions are based on the answer length...here's a snip from our config regarding it:
######################### BONUS Q'S #####################################
##
## ENABLE BONUS QUESTIONS (1 = Enable, 0 = Disable)
1
## MAX LETTERS FOR EACH BONUS LEVEL
0 15 20 25 30 35 40
## POINT VALUES FOR EACH BONUS LEVEL
5 10 25 50 100 250 500
## POINT VALUE DROPS FOR EACH BONUS LEVEL (HINTS DROP THE SAME VALUES!)
1 2 5 10 20 50 100
##
What it means is:
0-14 letters in the answer = 5 points (1 point drop per round)
15-19 letters = 10 (2 point drop per round)
20-24 letters = 25 (5 point drop per round)
25-29 = 50 (10 point drop per round)
30-34 = 100 (20 point drop per round)
35-39 = 250 (50 point drop per round)
40 or more = 500 (100 point drop per round)
You may need to tinker with these figures to get a decent balance in your channel...maybe just incrementing this part in the config:
## MAX LETTERS FOR EACH BONUS LEVEL
0 15 20 25 30 35 40
To this:
## MAX LETTERS FOR EACH BONUS LEVEL
0 20 25 30 35 40 45
So that there needs to be more letters in an answer before bonus points come into play!
My bot is giving a "too many files open" error, why?
The problem can lie in a trivia bank to such a degree that the triviabot is hanging with the file open rather than closing it and getting another question, which cascades into the "too many files open" error that is happening...the problem with eggdrops unfortunately is that there can only be two files maximum open at the same time for reading from or writing to...there are some instances that the triviabot requires two files open at the same time in order to properly read/write scores, update scores, adjust scores, create webpage versions of scores, etc...and when a file stays open (IE: the problem you are experiencing) then the triviabot can no longer have two files open at certain times for it's own use and the above error happens!
By trial-and-error testing (The easiest method is forcing the bot to only use a certain bank using the swapbank command) and see if the error re-occurs or is repaired by removal of this bank...the bot should flag any errors in a trivia bank and get another question so jammed triviabots are a rarity but still occur occasionally!