NachoToast / LSB-Discord-Bot

Personal utility Discord bot for the LSB server.
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link
discord discord-bot discord-js nodejs

LSB Discord Bot

A Discord.js bot for the LSB Discord server.

Dependencies

Installation

Follow these instructions to set up your own development version of the bot.

  1. Register your bot on the Discord Developer Portal.

    • Intents
      • Presence
      • Server Members
      • Message Content
    • Permissions
      • Administrator
  2. Invite the bot to your Discord server using the OAuth2 URL Generator with the bot scope and Administrator bot permission.

  3. Clone this repository.

  4. Copy the auth.example.json file.

    1. Rename the copy to auth.json.
    2. Replace the devToken field with the token of the bot you just registered.
  5. Open a terminal and use yarn (recommended) or npm to install dependencies.

    # with yarn
    $ yarn
    
    # with npm
    $ npm install
  6. Start the bot in development using the provided script.

    # with yarn
    $ yarn dev
    
    # with npm
    $ npm run dev

Levels

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.