added listPhrases
This commit is contained in:
14
commands/listPhrases.ts
Normal file
14
commands/listPhrases.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
const { codeBlock } = require("discord.js");
|
||||
|
||||
const { SlashCommandBuilder, Discord } = require('discord.js');
|
||||
var abbreviationKey = require("../abbreviation_key.json");
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('list_phrases')
|
||||
.setDescription('Lists phrases in target phrases.'),
|
||||
async execute(interaction) {
|
||||
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");
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user