Renamed alert to weather
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user