https://github.com/karan/slashgif
Post GIFs to Twitter by doing "@slashgif coffee break"
https://github.com/karan/slashgif
Last synced: 9 months ago
JSON representation
Post GIFs to Twitter by doing "@slashgif coffee break"
- Host: GitHub
- URL: https://github.com/karan/slashgif
- Owner: karan
- License: apache-2.0
- Created: 2015-08-09T21:36:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-14T01:29:43.000Z (about 10 years ago)
- Last Synced: 2025-04-04T23:29:50.573Z (9 months ago)
- Language: Python
- Homepage: https://twitter.com/slashgif
- Size: 119 KB
- Stars: 56
- Watchers: 7
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slashgif
The missing GIF Twitter bot. Simply tag [@slashgif](https://twitter.com/slashgif) in your tweet with a search term.
[](https://twitter.com/slashgif/status/630542797456609280)
### Where is this bot running?
Currently I'm running this bot on a 1GB [DigitalOcean](https://www.digitalocean.com/?refcode=422889a8186d) instance (yes, that's an affiliate link. Use that to get a free VPS for 2 months). The bot is not resource-intensive and uses a couple dozen MBs of RAM.
## Running
#### Requirements
- Python 3.4
- pip3
- sqlite3
#### Instructions
Create a file called `config.py` that looks like `config_example.py`. Fill in the necessary values.
For Twitter config:
1. Register your app
2. Get your app's key and secret.
3. Create token and get the token and secret.
4. Get a Giphy API key.
Then, to run the bot:
```bash
$ pip3 install -r requirements.txt
$ python3 bot.py
```
## License
Apache 2.0