fix max amt cap

This commit is contained in:
hgw 2023-10-02 02:14:35 +00:00
parent d1433609c9
commit 4004815b47

6
bot.js
View File

@ -9,7 +9,7 @@ var config = { //edit your shit here
server: "irc.supernets.org", server: "irc.supernets.org",
port: 6697, port: 6697,
SSL: true, SSL: true,
channels: ['#superbowl', '#dev'], channels: ['#dev'],
botName: "fascinus", botName: "fascinus",
userName: "fascinus", userName: "fascinus",
realName: "Sneed" realName: "Sneed"
@ -49,7 +49,7 @@ async function help(chan) {
} }
async function flood(text, chan, amt) { async function flood(text, chan, amt) {
if (amt > '100000') { if (amt > 100000) {
bot.say(chan, "no"); bot.say(chan, "no");
} else { } else {
for(var i=0; i < amt; i++){ for(var i=0; i < amt; i++){
@ -68,7 +68,7 @@ async function sneed(chan) {
} }
async function ctcp(target, text, amt) { async function ctcp(target, text, amt) {
if (amt > '100000') { if (amt > 100000) {
bot.say(chan, "no"); bot.say(chan, "no");
} else { } else {
for(var i=0; i < amt; i++){ for(var i=0; i < amt; i++){