This commit is contained in:
Daniel Odendahl Jr
2017-09-27 16:49:37 +00:00
parent 9f1b9688ae
commit 8a70e44902
16 changed files with 88 additions and 18 deletions
+1
View File
@@ -36,6 +36,7 @@ module.exports = class HoroscopeCommand extends Command {
const embed = new MessageEmbed()
.setColor(0x9797FF)
.setTitle(`Horoscope for ${body.sunsign}...`)
.setURL('https://new.theastrologer.com/horoscopes/')
.setTimestamp()
.setDescription(body.horoscope)
.addField(' Mood',
+4 -2
View File
@@ -21,9 +21,11 @@ module.exports = class WordOfTheDayCommand extends Command {
.get('http://api.wordnik.com/v4/words.json/wordOfTheDay')
.query({ api_key: WORDNIK_KEY });
const embed = new MessageEmbed()
.setColor(0x9797FF)
.setAuthor('Wordnik', 'https://i.imgur.com/VcLZLXn.jpg')
.setColor(0xFE6F11)
.setTitle(body.word)
.setDescription(`(${body.definitions[0].partOfSpeech}) ${body.definitions[0].text}`);
.setURL('http://wordnik.com/word-of-the-day')
.setDescription(`(${body.definitions[0].partOfSpeech || 'N/A'}) ${body.definitions[0].text}`);
return msg.embed(embed);
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);