Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdjnewman/birding-il-discord-bots


https://github.com/mdjnewman/birding-il-discord-bots

Last synced: about 1 month ago
JSON representation

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)`)