color if then n hibots ping
This commit is contained in:
parent
c6a5b20e80
commit
6c7538e18f
18
node/boto.js
18
node/boto.js
|
@ -103,8 +103,8 @@ client.on('message', (channel, tags, message, self) => {
|
|||
const result = Math.floor(Math.random() * 6) + 1;
|
||||
client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`);
|
||||
}
|
||||
if(command === 'test') {
|
||||
client.say(channel, `what if we output the whole message? Zap! Output: `+ message)
|
||||
if(command === 'hibots') {
|
||||
client.say(channel, `!hichatbots `)
|
||||
}
|
||||
// CMD | Lurk
|
||||
if(command === 'lurk' ||
|
||||
|
@ -118,10 +118,16 @@ client.on('message', (channel, tags, message, self) => {
|
|||
if(isSub) {
|
||||
// CMD | 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.
|
||||
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!`);
|
||||
}
|
||||
}
|
||||
// FX | K A P P A G E N S
|
||||
if(command === 'bg' ||
|
||||
|
@ -166,21 +172,19 @@ client.on('message', (channel, tags, message, self) => {
|
|||
}
|
||||
if(command === 'default' ||
|
||||
command === 'sariboto') {
|
||||
client.say(channel, `/color BlueViolet`);
|
||||
client.say(channel, `/me I've reconfigured myself to @Sarimoko's preferences! Bleep-Bloop!`);
|
||||
client.say(channel, `/color #31737C`);
|
||||
client.say(channel, `/emoteonlyoff `);
|
||||
client.say(channel, `/followersoff `);
|
||||
client.say(channel, `/slowoff `);
|
||||
client.say(channel, `/subscribersoff `);
|
||||
client.say(channel, `/me Back to my original color & all chat-modes have been reset! Bleep-Bloop!`);
|
||||
}
|
||||
if(command === 'mute' ||
|
||||
command === 'slap' ||
|
||||
command === 'timeout' ||
|
||||
command === 'warn') {
|
||||
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
|
||||
});
|
||||
// CHAT SCAN | END
|
||||
|
|
Loading…
Reference in New Issue