From ff4999eab933e65de23e95b8191a448a29ad2ac6 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Mon, 14 Feb 2022 17:35:18 -0800 Subject: [PATCH] color cmd --- node/boto.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/node/boto.js b/node/boto.js index 3694e8d..c8f4d8a 100644 --- a/node/boto.js +++ b/node/boto.js @@ -121,13 +121,15 @@ client.on('message', (channel, tags, message, self) => { if (message === '!color'){ 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`) } - if (args.join === /^#[0-9A-F]{6}$/i.test('#AABBCC')){ + // TO-DO: Build error checker + if (message === `!color #******`){ client.say(channel, `/color ${args.join(' ')}`); - }else{ + 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(' ')}`); - client.say(channel, `/me Out of the entire hex (#000000) spectrum or the preset color names: Blue, BlueViolet, CadetBlue, Chocolate, Coral, DodgerBlue, Firebrick, GoldenRod, Green, HotPink, OrangeRed, Red, SeaGreen, SpringGreen, YellowGreen you pick ${args.join(' ')}... Welp, alright!`); + client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}... Welp, alright!`); } } // FX | K A P P A G E N S