Omelet

Omelet is a quizbot for IRC. It’s coded in C++ and runs on Windows and various Unices.

Description

Omelet (don’t ask me where the name comes from) is a quizbot for use on IRC. It asks questions and users in the channel can answer them. The bot, commands and the few included questions are in dutch. A Linux binary is included, but it can also be built on Windows.

Features & commands

When the game is started, the bot starts to ask random questions. The user who says the answer gets a specified number of points (if not specified, it defaults to 50). There is a time limit of 60 seconds for each question. If the correct answer wasn’t given within 30 seconds, the bot gives a hint and the amount of points is divided by 2. If after 15 seconds still nobody knows the answer, the bot gives another hint and the amount of points is again divided by 2. If there’s still nobody who knows the answer, the bot will say the answer and contiune with the next question.

List of commands: (for a more detailed description (in Dutch), use the !help command of the bot on IRC)

  • !foutje question_number mistake – Report mistakes in questions. Reported mistakes are logged into a file named ‘fouten.txt’.
  • !top10 {monthly|weekly|total} – Display one of the 3 top ten’s. There’s a weekly, a monthly and a total top10.
  • !help – Gives a list of all commands
  • !score – Shows a user his personal score
  • !start – Start the game if it isn’t running. The game is stopped automatically after 5 minutes of inactivity.
  • ~ – When said on IRC, it shows the first letter of the answer.

Adding questions

All questions are stored in a file named ‘vragen.txt’. Each question has its own line, and a line has the following format:
Question*Answer[*Points]
The ‘points’ field is optional.

Download

Download Omelet 1.0 (90KB .tar.gz, contains source code, makefile and a Linux binary).

Leave a comment