The source code of the helper bot for the SupportMail support server.
If you want to use this code, you can do so by forking this repository and modifying the code to fit your needs.
- Node.js (version 20 or higher)
- pnpm package manager
- MongoDB database
- Discord Bot Token from the Discord Developer Portal
git clone https://github.com/your-username/sm-helper.git
cd sm-helperpnpm installCreate environment files in the root directory, based on the .env.example file:
.env.dev: For development environment variables.env.production: For production environment variables
Important
Make sure, if you use Sentry, to update the sentry:sourcemaps script in the package.json to point to your Sentry project.
Tip: You can use the Sentry CLI to automatically let sentry handle this for you.
- Invite your bot to your Discord server with the necessary permissions
- Set up the required channels and roles according to your server structure
- Customize configuration values in the source code as needed
Development mode:
pnpm devProduction mode:
pnpm startBuilding only:
pnpm buildThe bot requires the following Discord permissions:
- Send Messages
- Use Slash Commands
- Manage Messages
- Manage Threads
- Add Reactions
- Read Message History
- Embed Links
- Attach Files
- Mention Everyone
- Use External Emojis
The bot uses MongoDB to store data. Make sure your MongoDB instance is running and accessible via the MONGODB_URI in your environment file. The bot will automatically create the necessary collections and indexes on startup.
Please refer to the FEATURES.md file for a detailed list of current features, components, event-driven automations, cron jobs, database models, caches, utilities, and configuration options.
- Anyone can copy, modify and distribute this code.
- You have to include the license and copyright notice with each and every distribution.
- You can use this software privately.
- You can use this software for commercial purposes.
- If you dare build your business solely from this code, you risk open-sourcing the whole code base.
- If you modify it, you have to indicate changes made to the code.
- Any modifications of this code base MUST be distributed with the same license, GPLv3.
- This software is provided without warranty.
- The software author or license can not be held liable for any damages inflicted by the software.
More information on about the LICENSE can be found here
- Add a way to input
ends_aton/incident createfield for maintenance