diff --git a/node/boto.js b/node/boto.js index c8f4d8a..ffb19b0 100644 --- a/node/boto.js +++ b/node/boto.js @@ -126,10 +126,26 @@ client.on('message', (channel, tags, message, self) => { client.say(channel, `/color ${args.join(' ')}`); client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}... Welp, alright!`); } + if (message === `!color Blue` || + message === `!color BlueViolet ` || + message === `!color CadetBlue ` || + message === `!color Chocolate ` || + message === `!color Coral ` || + message === `!color DodgerBlue ` || + message === `!color Firebrick ` || + message === `!color GoldenRod ` || + message === `!color Green ` || + message === `!color HotPink ` || + message === `!color OrangeRed ` || + message === `!color Red ` || + message === `!color SeaGreen ` || + message === `!color SpringGreen ` || + message === `!color YellowGreen `){ + client.say(channel, `/color ${args.join(' ')}`); + client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}... Welp, alright!`); + } else{ - // Change your username color. Color must be in hex (#000000) or one of the following: Blue, BlueViolet, CadetBlue, Chocolate, Coral, DodgerBlue, Firebrick, GoldenRod, Green, HotPink, OrangeRed, Red, SeaGreen, SpringGreen, YellowGreen. - client.say(channel, `/color ${args.join(' ')}`); - client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}... Welp, alright!`); + client.say(channel, `/me @Sorry ${tags.username}, but ${args.join(' ')} is not a valid color choice! Please try again!`); } } // FX | K A P P A G E N S