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
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 lemmy_nhl-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d101349f8c419b3afdf46a5361653bcc72e893064b0a22a203fe0333de0e754c |
|
MD5 | 328db4831c6671eda93b00edc819ffa5 |
|
BLAKE2b-256 | bf5c2f9bd4efa8eeafcab6321953c3ff27719d2f05fdf8a374d9d61569b87553 |