How mindcleanser/mindcleanser works
This is a CommandKit/Discord.js bot presenting mental-health resources and bot information through slash commands. Users choose a command and whether its response is private; handlers build Discord component messages with resource details or links. The main branches cover resource organizations, bot/community links, and contributor information. A client-ready hook updates bot activity and posts command information to Discord Bot List. CommandKit’s command dispatch and event registration are not shown, so those initiating links are unverified; the README provides no additional product capabilities.
Components 17
Bot runtime
- Discord client
src/app.ts
Mental health resources
- NAMI resources
src/app/commands/nami.js - Trevor Project
src/app/commands/trevorproj.js - Trans Lifeline
src/app/commands/transll.js
Bot and community links
- Help overview
src/app/commands/help.js - GitHub link
src/app/commands/github.js - Bot invite
src/app/commands/invite.js - Support server
src/app/commands/support-server.js - Voting links
src/app/commands/vote.js
Bot operations
- Contributor list
src/app/commands/contrib.js - Contributor data
contrib.json - Ping command
src/app/commands/ping.js - Client-ready tasks
src/app/events/clientReady/logs.js - Bot link settings
config.json
Other components
- Discord user
- Discord platform
- Discord Bot List
Connections 31
- Discord client → Discord platform: creates client
src/app.ts - Discord user → NAMI resources: invokes (unverified)
- Discord user → Trevor Project: invokes (unverified)
- Discord user → Trans Lifeline: invokes (unverified)
- Discord user → Help overview: invokes (unverified)
- Discord user → GitHub link: invokes (unverified)
- Discord user → Bot invite: invokes (unverified)
- Discord user → Support server: invokes (unverified)
- Discord user → Voting links: invokes (unverified)
- Discord user → Contributor list: invokes (unverified)
- Discord user → Ping command: invokes (unverified)
- NAMI resources → Discord platform: replies
src/app/commands/nami.js - Trevor Project → Discord platform: replies
src/app/commands/trevorproj.js - Trans Lifeline → Discord platform: replies
src/app/commands/transll.js - Help overview → Discord platform: replies
src/app/commands/help.js - GitHub link → Discord platform: replies
src/app/commands/github.js - Bot invite → Discord platform: replies
src/app/commands/invite.js - Support server → Discord platform: replies
src/app/commands/support-server.js - Voting links → Discord platform: replies
src/app/commands/vote.js - Contributor list → Discord platform: replies
src/app/commands/contrib.js - Contributor list → Contributor data: reads
src/app/commands/contrib.js - NAMI resources → Bot link settings: reads links
src/app/commands/nami.js - Trevor Project → Bot link settings: reads links
src/app/commands/trevorproj.js - Trans Lifeline → Bot link settings: reads links
src/app/commands/transll.js - Help overview → Bot link settings: reads links
src/app/commands/help.js - GitHub link → Bot link settings: reads links
src/app/commands/github.js - Bot invite → Bot link settings: reads links
src/app/commands/invite.js - Support server → Bot link settings: reads links
src/app/commands/support-server.js - Voting links → Bot link settings: reads links
src/app/commands/vote.js - Client-ready tasks → Discord platform: updates activity
src/app/events/clientReady/logs.js - Client-ready tasks → Discord Bot List: posts bot data
src/app/events/clientReady/logs.js