Skip to main content

helga-quip

https://badge.fury.io/py/helga-quip.png https://travis-ci.org/narfman0/helga-quip.png?branch=master

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

Purpose

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

Usage

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.

Example:

!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!

Example2:

!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>: ...man, 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”’

License

Copyright (c) 2016 Jon Robison

See included LICENSE for licensing information

Metadata

Release files for helga-quip 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helga-quip 1.2.0
File Size Uploaded Provenance Actions
helga-quip-1.2.0.tar.gz 16.6 kB Without provenance Details for helga-quip-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for helga-quip 1.2.0
File Interpreter ABI Platform Actions
helga_quip-1.2.0-py2-none-any.whl Python 2 none any Details for helga_quip-1.2.0-py2-none-any.whl

Total release size: 22.1 kB

Release files / helga-quip-1.2.0.tar.gz

Download URL helga-quip-1.2.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
527fd27d8d291ad951d1d3e84a947f1ebac73c88b57b922c986afda130cb350b
BLAKE2b-256 checksum
How to use checksums
4e76dd7253f64e31ca9a153cb3ee20de3fd59f0e48bca8e22b755a60e1c8db08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / helga_quip-1.2.0-py2-none-any.whl

Download URL helga_quip-1.2.0-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
ce038298ee434989310e1e920abe7686646ed294e634a46cca9c64bee874a293
BLAKE2b-256 checksum
How to use checksums
a5d95bef5aa50ccfec2fd42bc99f5961b741b05e9941e3f915b72fba3e1dc156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for helga-quip 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page