A simple bot for playing Harmon Killebrew (the celebrity name game) in HipChat
- harmon-killebrew-bot will listen to HipChat messages and write celebrity names to a MySQL DB
- it will reject previously used submissions
- it will choose the next person in the list and @mention them
- it recognizes same first-letter names and will reverse the order
- it currently stores the celebrity name, as well as the author and date of the submission
git clone [email protected]:ilyakamens/harmon-killebrew-bot.git
- put real data into config.json
cd harmon-killebrew-bot
sudo ./install.sh
python bot.py
config.json
specifies a super user, who has two commands at his/her disposal when written into the chat:
reverse order
(switches the order the bot chooses players in)set current player: full_name
(sets full_name [e.g. Ilya Kamens] to be the current player)set current letter: some_letter
(sets current letter to some_letter)who's next
(makes bot say who the next player is)(downvote) submission
(removes submission from the mysql table and sets current player to whomever authored the submission)who's current
(makes bot say who the current player is)skip
skips current player
Maybe you've been playing this game for a bit and want an easy way to add a list of names to the DB that have already been used. No problem:
- create a file with one name per line (e.g.
names.txt
) python import.py names.txt
- if you do this, know that the
author
will beIMPORT
andauthored
will be the current date - Maruya