context-menu rule citation & range purge utility for r/BTechtards Discord
built with node and discord.js.
lookupmessage context menu command (cites server rules directly on target messages)- custom modal input support for manual staff notices
- clean multiline blockquote formatting (
>>>) with zero line gaps mark / purge rangecontext menu command (stateless 2-click range purging)- permanent media re-hosting via
files.catbox.moebefore deletion (bypasses expired discord cdn links) /setlogto configure server audit log channel
- node.js (v18.x or higher recommended)
- a discord bot token & client id
- clone the repo
- configure
.env:DISCORD_TOKEN=your_bot_token_here CLIENT_ID=your_client_id_here
- install dependencies & deploy commands:
npm i node deploy.js
- start the bot:
node index.js
- invite the bot to your server with
botandapplications.commandsscopes - set your log channel:
/setlog channel:#okite-logs - right-click any message ➔ Apps ➔ lookup or mark / purge range
edit rules.json to customize server rules:
[
{
"id": "r1",
"label": "Rule 1: Civility Rule",
"desc": "Be kind, respectful, and helpful.",
"text": ">>> **Rule #1: Civility Rule**\nBe kind and helpful to other users."
}
]mit
