Remove unused commands

This commit is contained in:
Logan Cusano
2023-02-26 22:07:33 -05:00
parent 7bddccc5f4
commit ff5bff89ee
3 changed files with 0 additions and 86 deletions

View File

@@ -1,31 +0,0 @@
const libCore = require("../libCore.js");
const { SlashCommandBuilder } = require('discord.js');
const { DebugBuilder } = require("../utilities/debugBuilder");
const log = new DebugBuilder("server", "food");
module.exports = {
data: new SlashCommandBuilder()
.setName('food')
.setDescription('Gets a random recipe and gives it to you'),
example: "food",
isPrivileged: false,
requiresTokens: false,
async execute(interaction) {
try {
var resultArray = await libCore.getFood();
await interaction.reply(`
[**${resultArray.strMeal}** - *${resultArray.strCategory}*]
${resultArray.strSource}
${resultArray.strMealThumb}
`);
}catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());
}
}
};

View File

@@ -1,26 +0,0 @@
var libCore = require("../libCore.js");
const quote_url = "https://zenquotes.io/api/quotes/";
const { SlashCommandBuilder } = require('discord.js');
const { DebugBuilder } = require("../utilities/debugBuilder");
const log = new DebugBuilder("server", "quotes");
module.exports = {
data: new SlashCommandBuilder()
.setName('quote')
.setDescription('Get a random quote'),
example: "quote",
isPrivileged: false,
requiresTokens: false,
async execute(interaction) {
try {
var quotes = await libCore.getQuotes(quote_url);
var selectedQuote = Math.floor(Math.random() * quotes.length);
interaction.reply(quotes[selectedQuote].quoteText + " - " + quotes[selectedQuote].quoteAuthor);
} catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());
}
}
};

View File

@@ -1,29 +0,0 @@
var libCore = require("../libCore.js");
const { SlashCommandBuilder } = require('discord.js');
const { DebugBuilder } = require("../utilities/debugBuilder");
const log = new DebugBuilder("server", "slang");
module.exports = {
data: new SlashCommandBuilder()
.setName('slang')
.setDescription('Search Urban Dictionary for a phrase.')
.addStringOption(option =>
option.setName('phrase')
.setDescription('The phrase to search')
.setRequired(true)),
example: "slang \"[phrase to search]\"",
isPrivileged: false,
requiresTokens: false,
async execute(interaction) {
try{
var question = encodeURIComponent(interaction.options.getString('phrase').join(" "));
var slangData = await libCore.getSlang(question);
await interaction.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`);
}catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());
}
}
};