akrisfx/Discord-self-logger — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Discord deleted message logger in JavaScript that works with two accounts, my main account and a bot account. I want it to watch specific servers, and when someone deletes a message, send a log to a channel I choose. The log should include the message text, who sent it, where it was sent, and also save or forward any photo or file that was attached.
Please make the setup straightforward. I want a config file where I can paste the two tokens, the server IDs to watch, and the channel ID where logs should go. Add an easy way to start it from the command line, and if it makes sense, keep the Windows batch or startup option so I can have it run automatically.
Keep the current limits in mind, it only needs to handle one attached file per deleted message, and it does not need to support video files. If anything in the Discord side is outdated, look up the current docs online and make it work.
Want more depth? Deep Reverse