|
@ -69,7 +69,7 @@ client.once("ready", () => { |
|
|
{ |
|
|
{ |
|
|
"type": 1, |
|
|
"type": 1, |
|
|
"name": "contributors", |
|
|
"name": "contributors", |
|
|
"description": "List contributors to the AwesomeSciBo bot", |
|
|
"description": "Lists contributors to the AwesomeSciBo bot", |
|
|
"options": [] |
|
|
"options": [] |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -77,6 +77,12 @@ client.once("ready", () => { |
|
|
"name": "changelog", |
|
|
"name": "changelog", |
|
|
"description": "Lists the 5 most recent changes in a \"git log\" type format", |
|
|
"description": "Lists the 5 most recent changes in a \"git log\" type format", |
|
|
"options": [] |
|
|
"options": [] |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"type": 1, |
|
|
|
|
|
"name": "bot", |
|
|
|
|
|
"description": "Lists information about AwesomeSciBo", |
|
|
|
|
|
"options": [] |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"description": "Commands regarding the creation/development of the bot" |
|
|
"description": "Commands regarding the creation/development of the bot" |
|
@ -384,7 +390,7 @@ function showLeaderboard(interaction) { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function about(action, interaction) { |
|
|
async function about(action, interaction) { |
|
|
if (action === "contributors") { |
|
|
if (action === "contributors") { |
|
|
interaction.reply( |
|
|
interaction.reply( |
|
|
new Discord.MessageEmbed().setTitle("Contributors: ").setDescription(` |
|
|
new Discord.MessageEmbed().setTitle("Contributors: ").setDescription(` |
|
@ -413,6 +419,13 @@ function about(action, interaction) { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
interaction.reply(changelogEmbed); |
|
|
interaction.reply(changelogEmbed); |
|
|
|
|
|
} else if (action === "bot") { |
|
|
|
|
|
const aboutBotEmbed = new Discord.MessageEmbed() |
|
|
|
|
|
.setAuthor(interaction.user.tag, interaction.user.displayAvatarURL()) |
|
|
|
|
|
.setTitle("About AwesomeSciBo") |
|
|
|
|
|
.addField("Servers", client.guilds.cache.size, true) |
|
|
|
|
|
.addField("Training Users", await userScore.countDocuments({})) |
|
|
|
|
|
.setTimestamp(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|