From 7a89baf66628900abf08ebbd4036659455a4ce86 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 25 Feb 2023 03:54:31 -0500 Subject: [PATCH] Remove old module mistakenly left in --- commands/slang.js | 21 --------------------- commands/sources.js | 15 --------------- commands/weather.js | 28 ---------------------------- 3 files changed, 64 deletions(-) diff --git a/commands/slang.js b/commands/slang.js index 031d9a6..9babaa6 100644 --- a/commands/slang.js +++ b/commands/slang.js @@ -26,25 +26,4 @@ module.exports = { //await interaction.reply(err.toString()); } } -}; - -module.exports = { - name: 'slang', - description: 'Search Urban Dictionary for a phrase.', - example: "slang \"[phrase to search]\"", - async execute(message, args) { - try { - if (args.length < 1) { - message.reply(`Please use in !slang [question] format`); - return; - } - var question = encodeURIComponent(args.join(" ")); - - var slangData = await libCore.getSlang(question); - message.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`); - } catch (e) { - message.reply(e.toString()); - } - - } }; \ No newline at end of file diff --git a/commands/sources.js b/commands/sources.js index 7ed4b3c..ed3cc58 100644 --- a/commands/sources.js +++ b/commands/sources.js @@ -26,19 +26,4 @@ module.exports = { //await interaction.reply(err.toString()); } } -}; - -module.exports = { - name: 'sources', - description: 'List RSS Sources', - execute(message, args) { - - var sourceArray = libCore.getSources(); - var sourceString = ""; - sourceArray.forEach(source => { - sourceString +=`[${source.title}](${source.link}) \n`; - }); - message.reply(sourceString); - - } }; \ No newline at end of file diff --git a/commands/weather.js b/commands/weather.js index 0eabfc7..d5b7a36 100644 --- a/commands/weather.js +++ b/commands/weather.js @@ -34,32 +34,4 @@ module.exports = { //await interaction.reply(err.toString()); } } -}; - -module.exports = { - name: 'alert', - description: 'Get any current weather alerts in the state specified.', - example: "alert [state]", - async execute(message, args) { - try { - if (args.length < 1) { - message.reply(`Please use in !alert [state]`); - return; - } - var question = encodeURIComponent(args.join(" ")); - - var answerData = await libCore.weatherAlert(question); - answerData.forEach(feature => { - message.reply(` - ${feature.properties.areaDesc} - ${feature.properties.headline} - ${feature.properties.description} - `); - - }) - - } catch (err) { - message.reply(err.toString()); - } - } }; \ No newline at end of file