.. | ||
fixtures | ||
__init__.py | ||
Readme.md | ||
requirements.txt | ||
test_twitpost.py | ||
twitpost.py | ||
twitter.ini |
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:
- consumer_key
- consumer_secret
- access_token
- access_token_secret
To obtain these 4 keys, follow the following steps :
- Login on Twitter Application Management using your Twitter account credentials.
- Create a new Twitter app in the Twitter Application Management
- Provide the required details (Name, Description and Website).
- Open your app and click on
Keys and Access Tokens
. - This completes creation of Twitter app to get the 4 required keys.
- 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