python-zulip-api/zulip_bots/zulip_bots/bots/twitpost
2018-06-11 08:16:43 -04:00
..
fixtures Add twitpost bot. 2018-03-22 15:51:40 -04:00
__init__.py twitpost: Add __init__.py and requirements.txt. 2018-05-26 14:36:26 -07:00
Readme.md Add twitpost bot. 2018-03-22 15:51:40 -04:00
requirements.txt twitpost: Add __init__.py and requirements.txt. 2018-05-26 14:36:26 -07:00
test_twitpost.py bot tests: Remove unnecessary imports. 2018-06-11 08:16:43 -04:00
twitpost.py Add twitpost bot. 2018-03-22 15:51:40 -04:00
twitter.ini Add twitpost bot. 2018-03-22 15:51:40 -04:00

Twitpost Bot

Twitpost bot is a Zulip bot to tweet from zulip chat.

To use twitpost bot, you can simply call it with @twitpost followed by a keyword tweet followed by the content to be tweeted. For example:

@twitpost tweet hey batman

Setup

Before starting using the bot, you will need:

  1. consumer_key
  2. consumer_secret
  3. access_token
  4. access_token_secret

To obtain these 4 keys, follow the following steps :

  1. Login on Twitter Application Management using your Twitter account credentials.
  2. Create a new Twitter app in the Twitter Application Management
  3. Provide the required details (Name, Description and Website).
  4. Open your app and click on Keys and Access Tokens.
  5. This completes creation of Twitter app to get the 4 required keys.
  6. Take a look at configuration section to configure the bot.

Configuration

Enter the 4 keys in the respective field in twitter.ini file.

Run this bot as described in here.

Usage

@twitpost tweet

  • This command tweets the given content to Twitter.
  • Example Usage: @twitpost tweet hey batman, @twitpost tweet hello world!
  • Sample Output:

Tweet Posted https://twitter.com/jasoncosta/status/243145735212777472