GoodClover / OSM-Discord-bot

Discord bot that works with OpenStreetMap data. (MAINTAINANCE MODE)
Other
10 stars 2 forks source link
bot discord discord-bot openstreetmap osm

OSM Discord Bot

pre-commit.ci status merge-chance-badge

The bot in action, showing an embed for node 1

Maintainance mode

The code is messy, the libraries this bot uses have been deprecated. Minor changes and bug-fixes will still be made.

If you come here with the goal of updating it, you might be better using test 9's fork, with improved code organisation. You probabbly want interactions-py, the successor to what the current code uses.

Features

For a full list of commands see COMMANDS.md, running /help will give you an interactive help system. These are slash commands, so Discord will also tell you what the commands do and how to use them.

If they are enabled, the bot can show suggestions in a specific channel.

The bot also updates a member count upon someone joining/leaving the server.

Embedding of elements, map fragments, notes, users and changesets also works by putting the following somewhere in your message in addition to using the command, using the command enabled getting extra info though if it's wanted:

HELP.md

This is Discord markdown, so many normal features are missing or work differently.

Configuration

config.json

Most of the config lives here. I can't be bothered to list it, so just look at the sample config for now.

.env file

Make a .env (nothing before the dot) containing:

DISCORD_TOKEN=<bot-token>
TESTING=<False> or <True>
DISCORD_TESTING_TOKEN=<optional-testing-bot-token>

License

DBAD Public License

(Look, I doubt anyone other than myself will ever use/host this code. If you really don't like the license then message me for explicit permisson or something, I'll likely do it.)