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.
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:
node/<ID>
(way
and relation
work too)note/<ID>
user/<username>
changeset/<ID>
map=#<Zoom>/<Lat>/<Lon>
This is Discord markdown, so many normal features are missing or work differently.
#
creates a new page.<>
to prevent Discord from showing an embed. e.g. [Example](<https://example.com>)
```
back-ticks. There should be no blank line after them.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
fileMake a .env
(nothing before the dot) containing:
DISCORD_TOKEN=<bot-token>
TESTING=<False> or <True>
DISCORD_TESTING_TOKEN=<optional-testing-bot-token>
(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.)