No description
  • C# 96.9%
  • Dockerfile 3.1%
Find a file
Dirk Kok ea75c38506
All checks were successful
Build and push TPImageProxy Docker image / build-and-push-image (push) Successful in 17s
Build and push TPImageProxy Docker image / trigger-update (push) Successful in 1s
Build and push Docker image / build-and-push-image (push) Successful in 22s
Build and push Docker image / trigger-update (push) Successful in 1s
update workflow for forgejo
2026-03-04 11:29:49 +01:00
.forgejo/workflows update workflow for forgejo 2026-03-04 11:29:49 +01:00
TPImageProxy TPImageProxy 2025-10-29 17:56:26 +01:00
TreinpositiesBot do not match planes for pure numbers 2025-10-30 14:15:39 +01:00
.dockerignore TPImageProxy 2025-10-29 17:56:26 +01:00
.gitignore wip 2022-03-24 01:00:26 +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.sln.DotSettings.user a major rewrite that i worked on a while ago. no clue. might look at later 2025-10-06 21:32:31 +02: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.