QaziAhmad77/discord-bot-express ? reverse-engineered prompt

Reverse engineered prompt

Build me a Discord bot that can do a few useful things for a small server.

I want slash commands for check in and check out so members can mark when they arrive and leave, plus a simple command to shorten links in Discord. The shortened links should redirect through a web page, keep track of clicks, and if someone shortens the same URL again it should return the same short link instead of making a new one.

Please make it work with a MongoDB database, and keep the code organized in a clean, modular way so the bot logic, web routes, and database models are separated nicely. It should also have basic commands like ping, hello, and user info so I can test that the bot is working.

Set it up so I can run the bot and the web server from one project, with environment variables for the Discord token, client ID, database connection, port, and base URL. If you need to look up current Discord docs online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab