This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yeah so do this | |
Then this'll happen | |
And yeah |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yeah so do this | |
Then this'll happen | |
And yeah | |
OK So I think i figured it out, which is good |