Skip to main content

A Jabber-Bot that can be told things to say via XML-RPC.

Project description

Bender is a Jabber-Bot.

Its main functionality is to be always online, joined to a groupchat (MUC), and to accept messages to say there via HTTP POST. Thus, other systems (e.g. Nagios, Continuous Integration etc.) can perform Jabber notifications without having to speak Jabber themselves (and without any join/part noise).

You can tell Bender to say something like this:

curl -d "Say something" http://user:password@host:port

Quotes

Bender also sometimes randomly says things by itself (Bender quotes). To avoid flooding the channel, there are three thresholds:

  • Only say something with a given probability.

  • Only say something if we haven’t said anything for a given time.

  • Only say something if at least a given number of messages from other people have been said in the chatroom.

Deployment

Bender is deployed and configured using buildout. Here is an example configuration file:

[buildout]
extends = profiles/prod.cfg

[config]
chatroom = my-chat@jabber.org
jabber_user = bender-user
jabber_password = secret
min_silence_duration = datetime.timedelta(minutes=5)
min_human_messages = 10
speaking_probability = 1.0 / (10 * 60)
loglevel = INFO
http_address = 0.0.0.0:8099
http_user = bender
http_password = http_secret

CHANGES

1.0 (2011-10-09)

  • first release.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

gocept.bender-1.0.tar.gz (19.1 kB view details)

Uploaded Source

File details

Details for the file gocept.bender-1.0.tar.gz.

File metadata

  • Download URL: gocept.bender-1.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gocept.bender-1.0.tar.gz
Algorithm Hash digest
SHA256 7bb9f690fe68b28e3bad7cf6be44a9de0c685cd1842313e271149362ff8d7b9b
MD5 86e7bd4ab0e92589d5406a4608f4f2c7
BLAKE2b-256 67fcc04842f681fe57a3439a4f32e11cf89dce6bd4c9758de82a1fce5bee1db4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page