We decided that we needed to spice up our IRC chatroom, and in particular that we needed a chatbot. This is a computer program which monitors activity in a chat room, and can be instructed to perform actions upon command. For example, if someone in the chatroom types ".t", the chatbot will respond with the current date and time. We're currently using a Python-based program called Phenny in our channel. The nice thing about open source software like Phenny is that it can easily be modified; we have added a few extra modules and commands. You can check out our modifications in this repository. For example:
- Eric built a module to return phrases at random, like a Magic 8 Ball
- Charlie borrowed from Eric and Colin's telegraph scripts to make a morse-code translator
- Logging the chat and sending users a list of what they've missed since they last logged in
- an option to request operator status
[command [option]]
- .2morse [text] : converts plaintext to Morse code.
- .2text [text] : translates Morse code back to plaintext.
- .boinc : gives statistics on the BOINC simulations running on the same machine as the bot
- .fillMeIn [number of lines]: updates the requesting user on the chatroom conversation they've missed. Default lines reported: 25
- .m8b : a digital Magic 8-Ball gives predicts the future!
- .stats : gives statistics on bot usage