Skip to main content

Whistler Bot

Whistler Bot is an XMPP bot written in python using SleekXMPP, which is a requirement. The bot is designed to handle some commands, and it is easy to extend.

Latest PyPI version Number of PyPI downloads

Simple usage:

$ whistler  myconfig.conf

Create bot programmatically:

from whistler.bot import WhistlerBot

bot = WhistlerBot( "myjid@myserver.com", "mypassword" )
bot.start()

Extending bot

You can extend the bot functionalities, just see for example the code of the whistler console script. In short you can add commands creating a new class from WhistlerBot, and define new functions in the form cmd_<command> plus the command name, for example, to handle the command ping.

from whistler.bot import WhistlerBot

class MyBot(WhistlerBot):

    def cmd_ping(self, msg, args):
        return "pong"

Example chat

An example of chat with Whistler

Whistler allows to send private commands in usual jabber (and of course GTalk and Google Hangouts) chat.

Also public commands are available, prefixed them with “!” (exclamation mark), as also reply to a direct mention in the form “whistler:” or “whistler,”, where “whistler” is the nickname of the bot in the MUC:

(Me) whistler: uptime
(whistler) 17:33:01 up 2 days, ...

Currently Whistler support a number of features, including tweet from command, shorting url action and so on…

You can see the mixins directory to see a number of examples for whistler and how easy is to extend.

Contributions

Any new mixin or functionality is welcome to Whistler. If you has been developed new one or want new feature, please send me a message or a pull request.

Metadata

Release files for whistler 1.5.3

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

Source distribution (sdist)

Source distribution for whistler 1.5.3
File Size Uploaded Provenance Actions
whistler-1.5.3.tar.gz 12.7 kB Without provenance Details for whistler-1.5.3.tar.gz

Release files / whistler-1.5.3.tar.gz

Download URL whistler-1.5.3.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bccae2d11d2231230d60a63a1f0f1e6a796afd1960ecb0aff78c27a635753866
BLAKE2b-256 checksum
How to use checksums
5a48bbc9d989c7d7068e3459fdfa7a3a662bdf0caa498856e0e15b0b1ff1ffc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for whistler 1.5.3

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