max flood limit
This commit is contained in:
parent
d5b4027931
commit
96b361ce07
20
bot.js
20
bot.js
@ -48,11 +48,15 @@ async function help(chan) {
|
||||
bot.say(chan, "$uspam [LINES] - Spams x lines of random unicode characters of varying length")
|
||||
}
|
||||
|
||||
async function flood(text, chan, times) {
|
||||
for(var i=0; i < times; i++){
|
||||
async function flood(text, chan, amt) {
|
||||
if (amt > '100000') {
|
||||
bot.say(chan, "no");
|
||||
} else {
|
||||
for(var i=0; i < amt; i++){
|
||||
bot.say(chan, text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function sneed(chan) {
|
||||
bot.say(chan, 'THE SIGN IS A SUBTLE JOKE. THE SHOP IS CALLED \"SNEED\'S FEED & SEED\", WHERE')
|
||||
@ -64,23 +68,35 @@ async function sneed(chan) {
|
||||
}
|
||||
|
||||
async function ctcp(target, text, amt) {
|
||||
if (amt > '100000') {
|
||||
bot.say(chan, "no");
|
||||
} else {
|
||||
for(var i=0; i < amt; i++){
|
||||
bot.ctcp(target, "privmsg", text);
|
||||
await timer(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function rspam(chan, amt) {
|
||||
if (amt > '100000') {
|
||||
bot.say(chan, "no")
|
||||
} else {
|
||||
for(var i=0; i < amt; i++){
|
||||
bot.say(chan, generateRandomString(randomext.integer(100,60)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function uspam(chan, amt){
|
||||
if (amt > '100000') {
|
||||
bot.say(chan, "no")
|
||||
} else {
|
||||
for(var i=0; i < amt; i++){
|
||||
bot.say(chan, "0" + randomext.integer(9,0) + randomext.uString(120,40));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bot.addListener('message', function(nick, to, text, from) {
|
||||
var args = text.split(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user