Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdjnewman/birding-il-discord-bots
https://github.com/mdjnewman/birding-il-discord-bots
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdjnewman/birding-il-discord-bots
- Owner: mdjnewman
- Created: 2024-04-01T13:25:15.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T20:00:45.000Z (6 months ago)
- Last Synced: 2024-07-10T00:29:32.185Z (6 months ago)
- Language: Python
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Birding Illinois Discord server bots
====================================Some Discord bots for the Birding Illinois server/guild.
Kudos to [@oliverburrus](https://github.com/oliverburrus/) for initially writing these.
Upgrading dependencies
----------------------```sh
cd birding_il_bots/
pip-compile --upgrade
```Running locally
---------------```sh
# Assuming you're a member and have a config with this name. To read some required secrets & RBA exclude list.
gcloud config configurations activate birding-il
python -m birding_il_bots.main
```Pushing a new image
-------------------No pipeline for this yet:
```sh
docker build -t us.gcr.io/birding-il/birding-il-bots:latest . && docker push us.gcr.io/birding-il/birding-il-bots:latest
```Deploying
---------```sh
gcloud compute ssh --plain --zone "us-central1-a" --project "birding-il" --command="sudo systemctl restart cloudservice.service" birding-il-bot-compute
```Rare Bird Alerts bot
--------------------The `Birding IL eBird Rarities Bot` will attempt to post to a channel named `#ebird-alerts` in any guild/server it is added to.
The eBird `Recent notable observations` API returns a lot of results that we don't really consider worth posting (e.g. high counts), so anything that matches the [exclude list](./data/rare-bird-excludes.txt) is filtered out.
Text in parenthesis is trimmed from the name before matching (e.g. `(hybrid)`)