Skip to content

jessamynsmith/talkbackbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

talkbackbot

Build Status Coverage Status

Are you tired of "That's what she said" jokes? Then this bot is for you! It will join a specified channel and respond to the configured trigger phrases with what she really said, i.e. a quotation from a notable woman. It will also respond to any direct message with a quotation.

Many quotes taken from this excellent resource: http://womenshistory.about.com/library/qu/blqulist.htm

Usage

Activate virtualenv

workon talkbackbot

Copy settings.py.EXAMPLE to settings.py and edit as desired

cp settings.py.EXAMPLE settings.py
vim settings.py

Note: QUOTES_FILE should have one quotation per line. QUOTES_URL must point to a JSON API that provides data in the following format:

{"results": [{"author": "Corazon Aquino", "text": "The media's power is frail."}]}

Run the bot

twistd twsrs

Stop the bot

kill `cat twistd.pid`

Development

Fork the project on github and git clone your fork, e.g.:

git clone https://github.com/<username>/talkbackbot.git

Create a virtualenv and install dependencies:

mkvirtualenv talkbackbot
pip install -r requirements/development.txt

Run tests and view coverage:

coverage run -m nose
coverage report

Check code style:

flake8

About

IRC bot that responds to selected phrases with a quotation from a notable woman (defaults to answering "that's what she said" jokes)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •