Skip to main content

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

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.

Packing Application

To build UpBeatBot for publishing to PyPi, you'll need to build and upload the upbeatbot package

  1. Build the package

python setup.py bdist bdist_wheel

  1. Upload to PyPi

python -m twine upload dist/*

Metadata

Release files for upbeatbot 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for upbeatbot 0.0.3
File Size Uploaded
upbeatbot-0.0.3.linux-x86_64.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for upbeatbot 0.0.3
File Interpreter ABI Platform
upbeatbot-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / upbeatbot-0.0.3.linux-x86_64.tar.gz

Download URL upbeatbot-0.0.3.linux-x86_64.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6638bcfba9ed2d1e6ee7003803850d5b31df5f432fbd30d614c9a85dd2d54736
BLAKE2b-256 checksum
How to use checksums
b93ef83ba826eb552c430d41dd99141206766ed0df7a4b509feedae05cc5ada0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release files / upbeatbot-0.0.3-py3-none-any.whl

Download URL upbeatbot-0.0.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbe5bba23060034d77494f7e1efd10e0b0a253eea2d24bf3eeaf4868b6041bbe
BLAKE2b-256 checksum
How to use checksums
5a693ef2dbf882bf4365054955d8f35b758d48aa05eea4959ea384b8f1000bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page