IRC Trivia Bot

Z

ZedGama3

Does anyone know of a counterpart for Trivia.pm for POE::Component::IRC?

From what I read POE::Component::IRC is supposed to be alot better than
Net::IRC because it's event driven rather than loop driven ( if I understand
that correctly ).

So far I've already setup a bot with POE::Component::IRC and wouldn't be
opposed to making my own trivia component but I don't know how to setup a
timed event so the tivia bot will keep going without making other items
wait. So if no one gets it right in 10sec it gives a hint, 10sec later
another hint, until it tells you the answer and picks a new question or if
someone gets it right the bot automaticly congratulates the user and picks a
new question.
 
R

Rocco Caputo

Does anyone know of a counterpart for Trivia.pm for POE::Component::IRC?

From what I read POE::Component::IRC is supposed to be alot better than
Net::IRC because it's event driven rather than loop driven ( if I understand
that correctly ).

So far I've already setup a bot with POE::Component::IRC and wouldn't be
opposed to making my own trivia component but I don't know how to setup a
timed event so the tivia bot will keep going without making other items
wait. So if no one gets it right in 10sec it gives a hint, 10sec later
another hint, until it tells you the answer and picks a new question or if
someone gets it right the bot automaticly congratulates the user and picks a
new question.

Timers are supplied by the base POE distribution, not by
POE::Component::IRC. Look for alarm and delay in perldoc POE.

You may also want to look at a bot that uses timers. Acro is an acronym
game for IRC, and it uses timers extensively. See
http://jinzougen.net/?action=display&node=acro

-- Rocco Caputo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Python chat bot help 0
IRC bot threading dilemma 0
A Gtk2 IRC Chat Client 5
Python IRC bot using Twisted 4
IRC bot test 1
JSONBOT 0.3 RELEASE 0
JSONBOT 0.6.1 RELEASED 0
JSONBOT 0.5 RELEASED 0

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top