color cmd
This commit is contained in:
parent
b854bb50f5
commit
ff4999eab9
10
node/boto.js
10
node/boto.js
|
@ -121,13 +121,15 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
if (message === '!color'){
|
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`)
|
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(' ')}`);
|
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.
|
// 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, `/color ${args.join(' ')}`);
|
||||||
client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}`);
|
client.say(channel, `/me @${tags.username} has changed my color to ${args.join(' ')}... Welp, alright!`);
|
||||||
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!`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// FX | K A P P A G E N S
|
// FX | K A P P A G E N S
|
||||||
|
|
Loading…
Reference in New Issue