diff --git a/commands/alert.js b/commands/weather.js similarity index 71% rename from commands/alert.js rename to commands/weather.js index 0dcdbfc..0183732 100644 --- a/commands/alert.js +++ b/commands/weather.js @@ -1,8 +1,9 @@ -var libFlayer = require("../libFlayer.js"); +var libCore = require("../libCore.js"); module.exports = { name: 'alert', - description: 'Alert', + description: 'Get any current weather alerts in the state specified.', + example: "alert [state]", async execute(message, args) { try { if (args.length < 1) { @@ -11,7 +12,7 @@ module.exports = { } var question = encodeURIComponent(args.join(" ")); - var answerData = await libFlayer.weatherAlert(question); + var answerData = await libCore.weatherAlert(question); answerData.forEach(feature => { message.reply(` ${feature.properties.areaDesc}