Mindexas/Discord-StickyMessage ? reverse-engineered prompt

Reverse engineered prompt

Build me a Discord bot that can keep one chosen message pinned at the bottom of a channel by reposting it after a set number of normal messages.

I want it to use a simple text command system, so I can type something like stick followed by the message I want to keep visible, and unstick to turn it off. Only certain roles should be allowed to use the command, and I want a config file where I can set the bot token, command prefix, allowed role IDs, the message count before it reposts, and my own Discord ID as the owner.

Please make it work on modern Discord.js, and keep it easy to run with Node 18 or newer. If anything in the current docs for Discord.js has changed, look it up online and use the right approach. Keep the code clean and simple, and make sure the bot only reposts the sticky message in the channel where it was set.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab