SquadJS/plugins/discord-server-status
2020-05-21 22:04:16 +01:00
..
index.js Remove unused function names. 2020-05-21 22:04:16 +01:00
README.md Update README.md 2020-05-16 13:16:06 +01:00

Logo

SquadJS - Discord Server Status

About

Display a server status embed that can be updated by clicking the refresh react.

Installation

// Place the following two lines at the top of your index.js file.
import Discord from 'discord.js';
import { discordServerStatus } from 'plugins';

// Place the following two lines in your index.js file before using an Discord plugins.
const discordClient = new Discord.Client();
await discordClient.login('Discord Login Token'); // insert your Discord bot's login token here.

// Place the following lines after all of the above.
await discordServerStatus(
  server,
  discordClient,
    { // options - the options included below display the defaults and can be removed for simplicity.
      color: 16761867, // color of embed
      command: '!server', // command used to send message
      disableStatus: false // disable bot status as server status
    }
);