Create Addons Notifier banner

Create Addons Notifier

5 devlogs
9h 38m 30s

Updated Project: Initially i had made a bot for telegram and one for discord, now i merged them both into one single one
A discord bot to search for the minecraft Create mod addons and get notifications whenever a new addon is created or updated

This project uses AI

GitHub Copilot for code completition

Stef

Fixed the bot semding udpates addons even when none of the keys matched (like the first picture)
also made it so if an item is missing or null/undefined, it gets displayed as Unknown or None instead of keeping the variable definition (eg. {{modrinth/name}})
Switched from @qz/telegram-entities-parser to telegram-html as the previous one got deprecated
Updated drizzle-orm since dependabot notified me of a sql injection risk on the old version

Attachment
Attachment
0
Stef

Added error handling by saving to a file and notifying via NTFY to hopefully understand what makes it crash when it receive a update message from the websocket since in my local test it didn’t crash

Attachment
0
Stef

Removed title from the default string as it’d cause a duplicate title
Fixed /preview still using telegram style (html) links instead of discord’s markdown

Attachment
0
Stef

Fix default discord message (was using telegram one which uses HTML and not markdown thus not displaying correctly)
Updated some functions that still had en as default/fallback locale instead of en-US
Fixed variables parsing for discord (it used same function as telegram so it was returning links as <a> tags instead of markdown hyperlinks
updated compareArrays to hopefully fix a crash (i saw a crash around the const removed = oldArray.filter but pterodactyl auto restarted and cleared the error log and i also wasn’t able to reproduce it locally

Attachment
0
Stef

Merged discord and telegram bots into one (moved discord one into telegram one which was more up to date)
Added localization to the discord part (to match telegram one which already had it)
Renamed en locale to en-US and en-GB to match discord locale names
Added discord invite url on telegram bot’s /start command and telegram invite url on discord bot’s /help command
Updated .env.example to match those changes
Updated readme

Attachment
Attachment
Attachment
0