Below is my implementation of a trivia bot. It was constructed for Age of War mud, which is based on CircleMud code.
I would like t thank all the folks on the mudlet and mudlet-help IRC channels for their willingness to help a newbie, with a special thanks to demonnic and vadi2!
The bot consists of four elements, an alias, a script, a trigger, and a text file called triviaquestions.txt. This file structure is a colon delimited file in the form Question:Answer and it is important to not have any extra lines at the end of the file. You will need to set the path to the file in the script. You will also need to adjust the trigger to respond to the correct prompt for your mud. The bot is currently set to ask a question every 15 seconds. You can adjust this in the script also. The bot will ask all the questions in the file, then tally the scores and announce the winner. The bot is case insensitive.
09/21/10 - I edited the bot to include the ability to handle ties.
Trigger name: triviabot
responds to prompt: ^\[Quest\] (\w+): (.*)$ perl regex
Share your scripts and packages with other Mudlet users.
1 post • Page 1 of 1