if (! blackList.includes(who) && ! isMe(who)) {
console.log("Gave voice to " + who + " on " + channel + "!");
speak(channel, 'You seem nice, nyaa~');
speak(channel, 'With the power of love, I grant you speech ' + who + '-nyan!');
// MODE #save-point +v sinBot
voice(channel, who);
} else {
console.log(who + ' is on my naughty list! Bad-nyaa~');
speak(channel, "Senpai says that you've been bad, " + who + "!");
speak(channel, "I can't give you voice until he says it's okay again, nyan~~ TT__TT");
if (isMe(argument)) {
if (mode === 'v') {
console.log(by + ' gave me voice in ' + channel + '! ^_^');
hasVoice.push(channel);
if (isAdmin(message['host'])) {
speak(channel, "Thank you, sempai!");
}
}
if (mode === 'h') {
console.log(by + ' said I can help in ' + channel + '! ^_^');
hasHelper.push(channel);
if (isAdmin(message['host'])) {
speak(channel, "I will do my very best, sempai!")
}
}
}
});
bot.addListener('-mode', function(channel, by, mode, argument, message) {
if (isMe(argument)) {
if (mode === 'v') {
console.log('Help, ' + by + ' took away my voice in ' + channel + '! ;_;');
hasVoice.splice(hasVoice.indexOf(channel), 1);
}
if (mode === 'h') {
console.log('Help, ' + by + "won't let me help in " + channel + ' anymore! ;_;');
hasHelper.splice(hasHelper.indexOf(channel), 1);
}
}
});
bot.addListener("invite", function(channel, from, message) {
console.log("Recieved an invite from " + from + " to join " + channel + '.');
console.log("It sounds like so much fun!");
bot.say(from, "I can't join that channel!");
bot.say(from, "Senpai says this is not allowed!");
bot.say(from, "I'm still beta ^_~");
});
bot.addListener("ctcp-version", function(from, to, message) {
console.log("Version information requested by " + from + '.');
bot.say(from, "sinBot v0.0.1-beta");
});
As you can see, she doesn't do too much right now. I'm not going to provide constant updates of her code here, this is just the first initial beta code of her to test functionality. Some debug code is in there. :P Should be fun!
Do know:
PayPal charges me 3-5% per successful transaction. ( 2.99% domestic US, everywhere else it varies - although AU seems to be more like 1.5% )
Stripe charges me 2.9% + $0.30 per successful domestic transaction. More for people paying from outside the US
With the average donation size, Stripe eats up about 30% of the donation. Please only use it if you have to, and if you
do, please consider a larger donation to make up for transaction fees.
Okay, I lied, the bot now has proper triggers, well, one '!hug', but all it does is print this is just a test.
Do know:
PayPal charges me 3-5% per successful transaction. ( 2.99% domestic US, everywhere else it varies - although AU seems to be more like 1.5% )
Stripe charges me 2.9% + $0.30 per successful domestic transaction. More for people paying from outside the US
With the average donation size, Stripe eats up about 30% of the donation. Please only use it if you have to, and if you
do, please consider a larger donation to make up for transaction fees.