aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility
diff options
context:
space:
mode:
authorjtsshieh <27078349+jtsshieh@users.noreply.github.com>2020-05-29 22:36:18 -0400
committerGitHub <noreply@github.com>2020-05-29 22:36:18 -0400
commite4feedd735626065396dd06a321afd302d739b6f (patch)
tree60439be8e649335da27a2ac7721be39064407cb8 /commands/Utility
parentc109c2a6866af94a3eee38ffe2bf654fec484852 (diff)
downloadPokeBot-Rebirth.tar.gz
PokeBot-Rebirth.tar.bz2
PokeBot-Rebirth.zip
Create serverid.jsHEADRebirth
Diffstat (limited to 'commands/Utility')
-rw-r--r--commands/Utility/serverid.js23
1 files changed, 23 insertions, 0 deletions
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: ''
+};