This commit is contained in:
Daniel Odendahl Jr
2017-05-08 21:41:54 +00:00
parent 3d91d5c8ab
commit b054a58bca
42 changed files with 79 additions and 83 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class BotSearchCommand extends Command {
body.prefix, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = class DefineCommand extends Command {
.setDescription(body[0].text);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = class ForecastCommand extends Command {
`**High:** ${forecasts[6].high}°F, **Low:** ${forecasts[6].low}°F, **Condition:** ${forecasts[6].text}`);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class IMDBCommand extends Command {
body.Actors);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+2 -2
View File
@@ -39,9 +39,9 @@ module.exports = class MapCommand extends Command {
const { body } = await request
.get(`https://maps.googleapis.com/maps/api/staticmap?center=${query}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`);
return msg.channel.send({ files: [{ attachment: body, name: 'map.png' }] })
.catch(err => msg.say(`An Error Occurred: ${err}`));
.catch(err => msg.say(err));
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class NeopetCommand extends Command {
if (!link.includes('cp')) throw new Error('Invalid Pet Name.');
return msg.say(link);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class OsuCommand extends Command {
body[0].count_rank_a, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = class SoundCloudCommand extends Command {
body[0].favoritings_count, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -39,7 +39,7 @@ module.exports = class UrbanCommand extends Command {
body.list[0].example.substr(0, 2000) || 'None');
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = class WattpadCommand extends Command {
body.stories[0].commentCount, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class WeatherCommand extends Command {
body.query.results.channel.wind.speed, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class WikipediaCommand extends Command {
.setDescription(body.query.pages[0].extract.substr(0, 2000).replace(/[\n]/g, '\n\n'));
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class YouTubeCommand extends Command {
.setThumbnail(body.items[0].snippet.thumbnails.default.url);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class YuGiOhCommand extends Command {
body.data.card_type, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};