mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-29 01:44:26 -05:00
.. | ||
index.js | ||
README.md |
About
The Discord RCON plugin allows you to run RCON commands through a Discord channel.
Installation
// Place the following two lines at the top of your index.js file.
import Discord from 'discord.js';
import { discordRCON } from 'plugins';
// Place the following two lines in your index.js file before using a 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 discordRCON(
server,
discordClient,
'discordChannelID'
);