color cmd

This commit is contained in:
Sarimoko 2022-02-14 17:35:18 -08:00
parent b854bb50f5
commit ff4999eab9
1 changed files with 6 additions and 4 deletions

View File

@ -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