Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Quick and dirty IRC triviabot script
testing = False # test bot *offline* using stdin/stdout debug shell
lurkmode = False # "lurk" mode - ask questions infrequently
exec_shell = False
# - based somewhat on example code at http://www.osix.net/modules/article/?id=780
# - based on ircbot.ps by darkf
# - got some help from reading old stackoverflow pages:
QUESTION SOURCE (i.e. where they're from)
Who was the last president of the Soviet Union?
Mikhail Gorbachev
History: As of 29 October 2000 who is the Prime Minister of Canada?
Jean Chretien
People: Born Jan 3, 1956, he starred in this movie: Conspiracy Theory - 1997?
Mel Gibson
What was the predecessor of the United Nations?
League of Nations
Where did Lord Byron die?
Yeah so do this
Then this'll happen
And yeah
Yeah so do this
Then this'll happen
And yeah
OK So I think i figured it out, which is good