From 572808433a1adad80e5c9733c7ffd9840e8edb46 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 16:04:28 -0500 Subject: [PATCH] Add aboutServer command --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 1712dd4..23c4136 100644 --- a/index.js +++ b/index.js @@ -28,6 +28,9 @@ client.on("message", async message => { console.log(err); }); break; + case '$aboutserver': + aboutServer(message); + break; } if (message.content.toLowerCase().startsWith("$bulkdelete")) { bulkDelete(message); @@ -36,6 +39,13 @@ client.on("message", async message => { } }); +async function aboutServer(message) { + const aboutServerEmbed = new Discord.MessageEmbed() + .setTitle(`About ${message.guild.name}`) + .addField("Owner", `<@${message.guild.ownerID}>`); + message.channel.send(aboutServerEmbed).catch(console.error); +} + async function addRoles(user, message) { const noviceRole = message.guild.roles.cache.get("827220856983519232"); const advancedRole = message.guild.roles.cache.get("827220906908450826");