Skip to main content

bot to add live scores to lemmy community for hockey games

Project description

DEV branch has been tested. A few things to note:

Without modifying files, there is currently no way to test this. I've tested that it works with old data, and will be testing/ fixing whatever needs it during the first preseason game of the Flyers (or earlier if someone reports an issue before this).

lemmy_nhl_bot

nhl linescore grabber/poster for lemmy

This script requires the following to be installed from pip: plemmy, requests, json

pip install plemmy # source is https://github.com/tjkessler/plemmy/ Many thanks for tjkessler for the simple to use library!

pip install requests

pip install json

This has been tested with python 3.9 in FreeBSD and python3 in linux for a few basic outputs. Will be testing it on the first preseason game for live updates and pushing any needed fixes at that time in preperation for the regular season.

Build the .whl

git clone https://github.com/socphoenix/lemmy_nhl_bot.git

cd lemmy_nhl_bot

git checkout dev

Linux (FreeBSD use python3.9): python3 -m build . --wheel

cd dist

pip install lemmy_nhl-2.0.0-py3-none-any.whl

Usage:

Before starting bot.py, please make sure to run config.py! It is needed to save your login token and teamID/community Name. Without these the script will crash!

Run config.py:

Linux: lemmy_nhl_config

FreeBSD: lemmy_nhl_config.py ##This requires path set. for sh (default shell): "PATH=${PATH}:/home/'put user here'/.local/bin" "export PATH"

run daemon

Unix: lemmy_nhl_daemon **** add " &" to run in the background. Working on creating service files but they are not done yet.

run draft bot

Unix: lemmy_nhl_draft

To see what the bot can currently do, look here: pinned game, stats, standings

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lemmy_nhl-1.5.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

lemmy_nhl-1.5.0-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page