color if then n hibots ping

This commit is contained in:
Sarimoko 2022-02-14 17:13:09 -08:00
parent c6a5b20e80
commit 6c7538e18f
1 changed files with 11 additions and 7 deletions

View File

@ -103,8 +103,8 @@ client.on('message', (channel, tags, message, self) => {
const result = Math.floor(Math.random() * 6) + 1; const result = Math.floor(Math.random() * 6) + 1;
client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`); client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`);
} }
if(command === 'test') { if(command === 'hibots') {
client.say(channel, `what if we output the whole message? Zap! Output: `+ message) client.say(channel, `!hichatbots `)
} }
// CMD | Lurk // CMD | Lurk
if(command === 'lurk' || if(command === 'lurk' ||
@ -118,11 +118,17 @@ client.on('message', (channel, tags, message, self) => {
if(isSub) { if(isSub) {
// CMD | Color // CMD | Color
if(command === 'color') { 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')){
client.say(channel, `/color ${args.join(' ')}`);
}else if{
// 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(' ')}`);
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 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
if(command === 'bg' || if(command === 'bg' ||
command === 'notgg') { command === 'notgg') {
@ -166,20 +172,18 @@ client.on('message', (channel, tags, message, self) => {
} }
if(command === 'default' || if(command === 'default' ||
command === 'sariboto') { command === 'sariboto') {
client.say(channel, `/color BlueViolet`); client.say(channel, `/color #31737C`);
client.say(channel, `/me I've reconfigured myself to @Sarimoko's preferences! Bleep-Bloop!`);
client.say(channel, `/emoteonlyoff `); client.say(channel, `/emoteonlyoff `);
client.say(channel, `/followersoff `); client.say(channel, `/followersoff `);
client.say(channel, `/slowoff `); client.say(channel, `/slowoff `);
client.say(channel, `/subscribersoff `); client.say(channel, `/subscribersoff `);
client.say(channel, `/me Back to my original color & all chat-modes have been reset! Bleep-Bloop!`);
} }
if(command === 'mute' || if(command === 'mute' ||
command === 'slap' || command === 'slap' ||
command === 'timeout' || command === 'timeout' ||
command === 'warn') { command === 'warn') {
client.say(channel, `/timeout ${args.join(' ')} 33`); client.say(channel, `/timeout ${args.join(' ')} 33`);
client.say(channel, `/me Mods cast a 33sec Timeout Curse on @${args.join(' ')}, resistence to Bans is decreased!`);
client.say(channel, `!kappagen sarimoRAGE sarimoNERD`);
} }
} // MOD | END } // MOD | END
}); });