From e4feedd735626065396dd06a321afd302d739b6f Mon Sep 17 00:00:00 2001 From: jtsshieh <27078349+jtsshieh@users.noreply.github.com> Date: Fri, 29 May 2020 22:36:18 -0400 Subject: Create serverid.js --- commands/Utility/serverid.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 commands/Utility/serverid.js (limited to 'commands/Utility') diff --git a/commands/Utility/serverid.js b/commands/Utility/serverid.js new file mode 100644 index 0000000..5cc99bf --- /dev/null +++ b/commands/Utility/serverid.js @@ -0,0 +1,23 @@ +/** ************************************** + * + * ServerId: Plugin for PokeBot that gives the user the id of the server + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ + +exports.run = (bot, msg) => { + const {RichEmbed} = require('discord.js'); + msg.channel.send(msg.guild.id); +}; + +exports.conf = { + guildOnly: true +}; + +exports.help = { + name: 'serverid', + description: 'Shows the server id', + usage: '' +}; -- cgit v1.2.3