Twitter bot to tweet uplifting images at twitter users
Project description
UpBeatBot
Twitter bot to tweet uplifting images at twitter users
Usage
Simply tweet a mention at UpBeatBot (@UpBeatBot) on Twitter to receive a cute picture tweeted at you
Running UpBeatBot
To run UpBeatBot on your own, download the source code and create a .env file that contains your twitter bot's authentication keys. You can copy the .example_env file to .env and replace with your relevant keys
- Follow the guide on https://dev.twitter.com/oauth/overview/application-owner-access-tokens to register your app and get credentials
Next, create a Python virtual environment running python3. Assuming you have the virtualenv
package installed, you can run the following command in this directory to get it set up:
virtualenv -p $(which python3) venv
Activate the virtual environment by entering source venv/bin/activate
from the project directory
Finally, install the requirements by entering pip install -r requirements.txt
from the project root. This will install the needed dependencies in the virtual environment for use by the program
Runing ./main.py
will start the TwitterBot, it will log information about program execution to a log file (dev.log)
in the directory UpBeatBot is stored in
Running Unit Tests
To run the unit tests for this project, enter python -m unittest discover -v
from the project root. You'll see the output
of every test method, and if any fail an explanation as to why they failed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for upbeatbot-0.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435859d8b91f6c7ef4d5be68d4b23e8494da4960121eb932edc327afcc4db51a |
|
MD5 | 3bab04ecd7717abd27e9e15b6e99f4e8 |
|
BLAKE2b-256 | eea3561befddf5a7d2c76fbb8ca38b78ae9d68f6725b2999cd866788fef77a12 |
Hashes for upbeatbot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de05a86f052ecdb5b5cfe3da0410cfd6b8aeda60fafa9fa5dbd32fa86fd3567c |
|
MD5 | 0ed0b298bb91d607b378c3800751d6a6 |
|
BLAKE2b-256 | 71fce160a10f891e464b62e15fe67238991760af66870382406c6c1b174c6df4 |