diff --git a/node/boto.js b/node/boto.js index 9a799b8..2f347e4 100644 --- a/node/boto.js +++ b/node/boto.js @@ -120,9 +120,10 @@ client.on('message', (channel, tags, message, self) => { if(command === 'color') { if (args.join === null){ client.say(channel, `/me @{tags.username} you forgot to tell me what color to change to... You can enter hex (#000000) or choose fon the preset color names: Blue, BlueViolet, CadetBlue, Chocolate, Coral, DodgerBlue, Firebrick, GoldenRod, Green, HotPink, OrangeRed, Red, SeaGreen, SpringGreen, YellowGreen`) - }else if (args.join === /^#[0-9A-F]{6}$/i.test('#AABBCC')){ + } + if (args.join === /^#[0-9A-F]{6}$/i.test('#AABBCC')){ client.say(channel, `/color ${args.join(' ')}`); - }else if{ + }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(' ')}`);