Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Match quips and other witticisms

Project Description

“Always with the witty retorts, that one” -quote that totally happened by a wise and ausipicious gentleman in reference to helga-quip


Match quips and other witticisms. It notes double entendre, hyperbole, metaphors, and other figures of speech.


Quip may be used for oneliners or elaborate your mom or thats what she said jokes. The syntax is:

!quip add <quip_regex> <quip_kind>

quip_kind is the kind of quip you’d like to respond with, and can be a templated response. It could simply be “Your mom” or “That’s what she said”, but the user may wish to include the matched regex in the response. This may be done with {0}, which will be replaced with the matched group. Other positionals may be used, or named groups are supported now similar to (?P<name>expression).

quip_regex is the searched regular expression to be matched. Any regex should do, like “that (sounds|is|was) really hard”. The search is case insensitive. If there are multiple matches, a random response will be selected.


!quip add "(it|that|this) (sounds|is|was) really hard" "thats what she said"
<unwitting user>: i took this test last night, and it was really hard
<bot>: thats what she said
<unwitting user>: aww bot, your wit knows no bounds! ha ha!


!quip add "(looks|is) really (leet|fat|awesome)" "your mom {0} really {1}"
<irc noob>: huh this game looks really awesome
<bot>: your mom looks really awesome
<irc noob>: oh bot! you and the jokes, they keep coming so hard!

Example3 (named backreferences):

!quip add "(?:(?:i|he|you) (?:is|am)) (?P<action>excited|giddy)" "your mom is {action}"
<foolish scrub>: man, i am excited for the concert!
<bot>: your mom is excited
<foolish scrub>: YOUR MOM IS...
<foolish scrub> has left the chat

Example4 (positonals):

!quip add "[am|is] (lord|king) of (me|him|her|she|he)" "your mom is {0} of {1}"
<naive user>:, i am lord of him! shot right in the face, and he wasn't doing nothin'!
<bot>: your mom is lord of him
<naive user> sobs at the truth of it all

!quip dump

Dumps to the paste service dpaste with entries of ‘“regex” “kind”’


Copyright (c) 2016 Jon Robison

See included LICENSE for licensing information

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
helga_quip-1.2.0-py2-none-any.whl (5.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 13, 2016
helga-quip-1.2.0.tar.gz (16.6 kB) Copy SHA256 Checksum SHA256 Source Dec 13, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting