Remove old module mistakenly left in

This commit is contained in:
Logan Cusano
2023-02-25 03:54:31 -05:00
parent c371f44f98
commit 7a89baf666
3 changed files with 0 additions and 64 deletions

View File

@@ -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());
}
}
};

View File

@@ -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);
}
};

View File

@@ -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());
}
}
};