Browse Source

Add aboutServer command

master
Abheek Dhawan 4 years ago
parent
commit
572808433a
  1. 10
      index.js

10
index.js

@ -28,6 +28,9 @@ client.on("message", async message => {
console.log(err); console.log(err);
}); });
break; break;
case '$aboutserver':
aboutServer(message);
break;
} }
if (message.content.toLowerCase().startsWith("$bulkdelete")) { if (message.content.toLowerCase().startsWith("$bulkdelete")) {
bulkDelete(message); 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) { async function addRoles(user, message) {
const noviceRole = message.guild.roles.cache.get("827220856983519232"); const noviceRole = message.guild.roles.cache.get("827220856983519232");
const advancedRole = message.guild.roles.cache.get("827220906908450826"); const advancedRole = message.guild.roles.cache.get("827220906908450826");

Loading…
Cancel
Save