-
-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
For those familiar with the Discord bot creation workflow.
- Clone the repository, then install the dependencies.
- Fill tokens in
.env - Fill IDs in
config.json - Add bot scopes:
applications.commandsandbot - Add permissions:
Ban Members,Embed Links,Manage Messages,Manage Nicknames,Manage Roles,Read Message History,Send Messages,Send Messages in Threads,View Channels - Enable intents:
Server Members IntentandMessage Content Intent - Run
npm run deploy-commands- or
scripts/setup.[ps1/sh]
- or
- Run
npm run start- or
scripts/run.[ps1/sh]
- or
You need to create a Discord Application first in Discord's Developer Dashboard.
- Head to https://discord.com/developers/applications
- Click on "New Application"
- Once created, head to the Application's settings (if not already)
These settings are to be set in the Discord developer dashboard for the bot.
LoMMuS requires these scopes to be enabled:
applications.commandsbot
LoMMuS also requires these permissions:
Ban MembersEmbed LinksManage MessagesManage NicknamesManage RolesRead Message HistorySend MessagesSend Messages in ThreadsView Channels
LoMMuS requires two tokens for it to function correctly:
- Discord Application Token (bot token).
- Get it by creating an Application at https://discord.com/developers/applications
- GitHub Personal Access Token, used for fetching GitHub issue and PR details.
- Get it by creating a classic Personal Access Token at https://github.com/settings/tokens.
- You just need the token to have the
public_reposcope, nothing more
These two tokens must be placed inside an .env file at the root of the repository. You'll need to create it yourself.
See the given .env.example file for an example.
Caution
DO NOT COMMIT AND/OR EXPOSE THE ACTUAL .env FILE. EVER. There's a reason it is .gitignored. If any of the credentials are leaked or otherwise exposed, stop the bot and rotate the credentials immediately.
LoMMuS requires a config.json file at the root of the repository that contains some values. See config.json.example for an example.
Note that the only real values needing changes are:
ownerIdclientIdguildId
Changing the color values here is permitted, just make sure they're HEX-formatted.
LoMMuS provides some slash command functionality, which is able to be deployed using deploy-commands.js. Run the script first before running the bot to register slash commands to Discord.
The script is independent of the other modules and handles authentication by itself.
Finally, you can deploy LoMMuS to your preferred machine/service
The LoMMuS wiki on GitHub written and maintained by the LMMS Developers is marked CC0 1.0. To view a copy of this mark, visit https://creativecommons.org/publicdomain/zero/1.0/