Skip to content

prehensile/botkit

Repository files navigation

botkit

Overview

botkit is a toolkit for the creation of Twitter bots, written in Python. It is intended to take care of the tricky and annoying stuff (like obtaining OAuth tokens and scheduling tweets) so you can get on with writing the interesting bits.

Configuration

botkit is configured with a few environment variables:

Required configuration

  • TWITTER_CONSUMER_KEY: a Twitter app key
  • TWITTER_CONSUMER_SECRET: a Twitter app key secret

Optional configuration

  • TWEET_INTERVAL: time between tweets, in seconds. Defaults to 3 hours (10,800).
  • OAUTH_ENABLED: if True (or yes, or 1), botkit will run a web interface for obtaining oauth keys.
  • BOTKIT_ROOT: path to a directory in which to store persistent configuration files. Defaults to ~/botkit
  • LAST_MENTION_ID: Used when starting up; for bots which reply to things, only tweets newer than this id will be replied to.

Example projects

Two sample bot projects are available that use botkit:

Roadmap

Version 0.4

  • More flexible tweet timing options,
  • More extensive documentation & comments.

About

A toolkit for the creation of Twitter bots.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages