A Discord.js bot for the LSB Discord server.
- Node JS 16.13.1 or higher
Follow these instructions to set up your own development version of the bot.
-
Register your bot on the Discord Developer Portal.
- Intents
- Presence
- Server Members
- Message Content
- Permissions
- Administrator
- Intents
-
Invite the bot to your Discord server using the OAuth2 URL Generator with the
bot
scope andAdministrator
bot permission. -
Clone this repository.
-
Copy the
auth.example.json
file. -
Open a terminal and use
yarn
(recommended) ornpm
to install dependencies.# with yarn $ yarn # with npm $ npm install
-
Start the bot in development using the provided script.
# with yarn $ yarn dev # with npm $ npm run dev
-
To start the bot in production:
- Make sure you've run
yarn build
first, and have atoken
configured inauth.json
- Start the bot with one of the following commands:
# with node $ node . # with yarn $ yarn start # with npm $ npm run start
- Make sure you've run
-
You can install
yarn
vianpm
usingnpm i -g yarn
If you want user levels to carry over from when Mee6 was in use, you can run the porting script using yarn port
or npm run port
.
You'll need to enter the ID of the server, and make sure Mee6 hasn't left it yet.
Once you do this, you'll see a message about loading legacy data when you start the bot.
After you've started it once (in development or production), you can safely delete the archive
folder.