No description
  • C# 97%
  • Dockerfile 3%
Find a file
Dirk Kok 5e5e1ba2ab
All checks were successful
Build and push Docker image / build-and-push-image (push) Successful in 6s
Build and push Docker image / trigger-update (push) Successful in 2s
Build and push TPImageProxy Docker image / build-and-push-image (push) Successful in 12s
Build and push TPImageProxy Docker image / trigger-update (push) Successful in 2s
TPImageProxy: support legacy treinposities filenames, to avoid breaking old embeds
2026-03-16 17:45:11 +01:00
.forgejo/workflows update workflow for forgejo 2026-03-04 11:29:49 +01:00
TPImageProxy TPImageProxy: support legacy treinposities filenames, to avoid breaking old embeds 2026-03-16 17:45:11 +01:00
TreinpositiesBot whoopsy daisy 2026-03-16 17:02:48 +01:00
.dockerignore TPImageProxy 2025-10-29 17:56:26 +01:00
.gitignore ignore and untrack *.DotSettings.user 2026-03-16 16:55:59 +01:00
LICENSE switch to agpl 2022-04-08 16:22:01 +02:00
README.md [ci skip] link to appsettings.json template 2022-12-10 01:07:01 +01:00
TreinpositiesBot.sln TPImageProxy 2025-10-29 17:56:26 +01:00

TreinpositiesBot

Whenever someone says 3 or more digits, this bot will post a random image of a vehicle with that number on Treinposities.

It ignores numbers inside urls, mentions, and words, and understands spaces within the numbers.

It also supports Planespotters.

If you block the bot, it won't reply to your messages.

Docker deployment

Dockerfile in TreinpositiesBot folder, no additional dependencies.

Configuration is present in /app/appsettings.json. You may either mount your own file, or use envvars to override items in the configuration. Example:

  • Core__DiscordToken
  • Treinposities__BlockedPhotographers__0
  • Core__SourcesByGuild__805008823081107467__0

Consider restricting the bot to specific channels because my users love spamming this thing.