Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdbecker/community_twitter_bot
Twitter bot that allows approved users to tweet from a shared account using direct messages
https://github.com/mdbecker/community_twitter_bot
Last synced: about 2 months ago
JSON representation
Twitter bot that allows approved users to tweet from a shared account using direct messages
- Host: GitHub
- URL: https://github.com/mdbecker/community_twitter_bot
- Owner: mdbecker
- License: gpl-3.0
- Created: 2014-04-28T01:50:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-29T15:28:54.000Z (over 10 years ago)
- Last Synced: 2023-03-12T08:28:49.107Z (almost 2 years ago)
- Language: Python
- Size: 160 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
community_twitter_bot
=====================Twitter bot that allows approved users to tweet from a shared account using direct messages.
## Configuration
Example ``config.json``
```json
{
"access_token": "694865265-OWQ3ZTk4YzE2NzE4NGU5OWJiMGFjZjBkN2E1NWM0",
"access_token_secret": "NTYwMWJkYjIzZmZhNDNhZWI4OTZhNWU5OGU4ZDMxNDgYj",
"api_key": "MzhhYmVkZjA3MjA1NGUyYWJmM",
"api_secret": "OTRmZWI2NTY4ZjlhNDVkODhjYmI1ODlkOWU2ZGM1ZjMODIxMDd",
"users": {"beckerfuffle": "MB"}
}
`````access_token``, ``access_token_secret``, ``api_key``, and ``api_secret`` can be created by [setting up a twitter app](https://apps.twitter.com/). ``users`` is a dictionary containing a mapping of twitter handle to signature. Only users defined in the users dictionary will be allowed to relay tweets through the bot.
## Usage
This bot should be run as a deamon. It will listen for direct messages from authorized users that contain the hashtag #rt. It will retweet these messages and sign them with the authorized users signature.## Contributing
Pull requests are welcome! I'm certain there are lots of other features that would be useful to other organizations.