No description
Find a file
2023-01-18 01:15:10 +01:00
src Add overpass reports, add nomention and nobot support 2023-01-18 01:15:10 +01:00
.gitignore Add node version 2023-01-14 03:26:57 +01:00
.nvmrc Add node version 2023-01-14 03:26:57 +01:00
LICENSE Initial commit 2023-01-14 03:21:09 +01:00
package-lock.json Fetch changeset info from OSM api to detect all images (workaround for https://github.com/mapbox/osmcha-frontend/issues/641); send a direct message to bot owner when running; improve usernames of image authors 2023-01-16 01:57:25 +01:00
package.json Git pull might introduce new packages which have to be installed... 2023-01-16 11:20:51 +01:00
README.md Add overpass reports, add nomention and nobot support 2023-01-18 01:15:10 +01:00
tsconfig.json First version of mastodon-bot 2023-01-14 03:23:40 +01:00
tslint.json First version of mastodon-bot 2023-01-14 03:23:40 +01:00

Mastodon-Bot

This is a bot which is built to post a daily message about mapcomplete-usage.

How it works

It fetches latest changesets from OsmCha, processes them and posts them to Mastodon.

Changesets which have the add-image-tag are downloaded from the OSM-api and crawled for images, of which some are picked to add to the posts.

Note that the image selection process is opinionated: some themes (artwork, nature, trees, ...) have a higher probability of being picked. Furthermore, it tries to pick at most one image per contributor - so images by the same contributor will only be used if there are more images to add then contributors.

Your bot mentioned me - I don't want that!

You can indicate this to the bot in the following way:

On Mastodon

  • You can mute or block the bot so that you won't see the posts. Your user account on OpenStreetMap or your Mastodon-username will still be mentioned in the posts
  • You can add the hashtag #nobot or #no-mapcomplete-bot to your profile description. The bot will not mention you with your Mastodon-handle, but it will still post your OSM-username, your pictures and a report of your contributions

On your OSM-user profile:

  • Add #no-bot or #no-mapcomplete-bot to your user profile and your contributions (map changes and pictures) will not be included in the bot at all
  • Add #nobotmention or #nomapcompletebotmention to your user profile. Your contributions and pictures will still be listed in the bot, with your OSM-username. However, your OSM-username will not be replaced by your Mastodon-handle, thus not pinging you.