Compare commits
2 Commits
6dbc9087e1
...
064b52ad3c
Author | SHA1 | Date | |
---|---|---|---|
064b52ad3c | |||
445ca1b10b |
19
bot.js
19
bot.js
@ -105,16 +105,8 @@ bot.addListener('message', function(nick, to, text, from) {
|
||||
var command = args[0].toLowerCase()
|
||||
if (args[0] === '$help') {
|
||||
help(to);
|
||||
} else if (command === config.irc.prefix+'flood') {
|
||||
flood(to, args)
|
||||
} else if (command === config.irc.prefix+'sneed') {
|
||||
sneed(to);
|
||||
} else if (command === config.irc.prefix+'ctcpflood') {
|
||||
ctcp(args[1], args[2], args[3]);
|
||||
} else if (command === config.irc.prefix+'rspam') {
|
||||
rspam(to, args[1])
|
||||
} else if (command === config.irc.prefix+'uspam') {
|
||||
uspam(to, args[1]);
|
||||
} else if (command === config.irc.prefix+'art') {
|
||||
art(to, args[1]);
|
||||
} else if (command === config.irc.prefix+'godwords') {
|
||||
@ -124,6 +116,17 @@ bot.addListener('message', function(nick, to, text, from) {
|
||||
} else if (command === config.irc.prefix+'symphish') {
|
||||
symphish(to, args[1], args[2])
|
||||
}
|
||||
if (config.floodprotect.enable_flood_commands == "true") {
|
||||
if (command === config.irc.prefix+'flood') {
|
||||
flood(to, args)
|
||||
} else if (command === config.irc.prefix+'ctcpflood') {
|
||||
ctcp(args[1], args[2], args[3]);
|
||||
} else if (command === config.irc.prefix+'rspam') {
|
||||
rspam(to, args[1])
|
||||
} else if (command === config.irc.prefix+'uspam') {
|
||||
uspam(to, args[1]);
|
||||
}
|
||||
}
|
||||
msgTimeout.add(to);
|
||||
setTimeout(() => {
|
||||
msgTimeout.delete(to);
|
||||
|
@ -55,10 +55,10 @@ if (width > 100) {
|
||||
}
|
||||
if (height == undefined) {
|
||||
consoleLog('[phish] Height was not specified, defaulting to 5')
|
||||
height = 5
|
||||
height = 6
|
||||
}
|
||||
if (width == undefined) {
|
||||
consoleLog('[phish] Width was not specified, defaulting to 5')
|
||||
width = 7
|
||||
width = 10
|
||||
}
|
||||
gen(height, width, type)
|
@ -15,7 +15,8 @@
|
||||
"floodprotect": {
|
||||
"flood_protection": "false",
|
||||
"flood_protection_delay": "0",
|
||||
"command_listen_timeout": "2500"
|
||||
"command_listen_timeout": "2500",
|
||||
"enable_flood_commands": "true"
|
||||
},
|
||||
"errorhandling": {
|
||||
"error_logging": "true",
|
||||
|
Loading…
Reference in New Issue
Block a user