Add countChars function

This commit is contained in:
2023-04-04 17:20:28 -05:00
parent 9d5ef6f883
commit 03935a0cee
4 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
const { codeBlock } = require("discord.js");
const { codeBlock } = require("discord.js");
const { SlashCommandBuilder, Discord } = require('discord.js');
var abbreviationKey = require("../abbreviation_key.json");
@@ -7,8 +7,8 @@ module.exports = {
data: new SlashCommandBuilder()
.setName('list_phrases')
.setDescription('Lists phrases in target phrases.'),
async execute(interaction) {
async execute(interaction, client) {
await interaction.reply("Here are the current phrases in the phrase list:" + codeBlock("json", JSON.stringify(abbreviationKey.target_phrases, null, " ")));
console.log("User " + interaction.user.tag + " ran /list_phrases");
console.log("User " + interaction.user.tag + " ran /list_phrases");
},
};