A Discord.js bot for the LSB Discord server.
Follow these instructions to set up your own development version of the bot.
Register your bot on the Discord Developer Portal.
Invite the bot to your Discord server using the OAuth2 URL Generator with the bot
scope and Administrator
bot permission.
Clone this repository.
Copy the auth.example.json
file.
Open a terminal and use yarn
(recommended) or npm
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:
yarn build
first, and have a token
configured in auth.json
# with node
$ node .
# with yarn
$ yarn start
# with npm
$ npm run start
You can install yarn
via npm
using npm 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.