Add countChars function
This commit is contained in:
@@ -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");
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user