summaryrefslogtreecommitdiff
path: root/abot.py
AgeCommit message (Collapse)Author
2015-04-03Added (sub/main)command, removed abot error checkDico200
@command is untested.
2015-03-28Added cmd check to ABOT, commented out advancedcmdDico200
advancedcmd doens't work atm, apparently function.func_code is a thing but adding co_consts isn't an attribute of that. Tested abot, seems to work well.
2015-03-19Changed all CommandExecutor argumentsDico200
Added arguments command and label to all command executor functions, hopefully for massive performance increase. This is due to the following mess in PythonLoader: ``` Java @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean result; if (argcount == -1) { try { result = call(4, sender, command, label, args); argcount = 4; } catch (PyException e) { //this could goof up someone ... they'll probably yell at us and eventually read this code ... fuck them if (e.type == Py.TypeError && (e.value.toString().endsWith("takes exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes exactly 4 arguments (5 given)"))) { result = call(3, sender, command, label, args); argcount = 3; } else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes exactly 3 arguments (5 given)"))) { result = call(2, sender, command, label, args); argcount = 2; } else { throw e; } } } else { result = call(argcount, sender, command, label, args); } return result; } ``` Note: Still WIP on reports - I'm working on making it keep solved reports to fix issue 10
2015-01-06change indentation from 2 spaces to 4, fix #5jomo
2014-07-27rename log to infojomo
2014-07-27apply file read/save helpersjomo
2014-07-21fix problem with 'none' permissionjomo
2014-07-16more code cleanupjomo
2014-07-16removed camelcase, added more coding style to readmejomo
2014-07-14add noperm; return truejomo
2014-07-14fix basecolor in abotjomo
2014-07-14can't call function before definitionjomo
2014-07-14use json config for abotjomo
2014-07-11more abot fixesjomo
2014-07-10more abot fixesjomo
2014-07-10match e.g. who can clear plotjomo
2014-07-10remove empty matchgroup; first match has to be a wordjomo
2014-07-10fix false positive for e.g. MODel, MODernjomo
2014-07-10fix false positive for e.g. MODel, MODernjomo
2014-07-10skip abot for players with 'utils.ignore_abot' permissionjomo
2014-07-10fix literal '.' in regex, fixesjomo
2014-07-10more noob matchingjomo
2014-07-10needs trailing spacejomo
2014-07-10fix typo, nicer outputjomo
2014-07-10do not require extra wordsjomo
2014-07-10fucking commajomo
2014-07-10fix bracesjomo
2014-07-10more questionsjomo
2014-07-10add abot (AnswerBot) to get rid of stupid FAQ askingjomo