Dico200
de43b0d0db
Added (sub/main)command, removed abot error check
...
@command is untested.
2015-04-03 02:01:57 +02:00
Dico200
6590a8d30a
Added cmd check to ABOT, commented out advancedcmd
...
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-28 16:39:09 +01:00
Dico200
1750c82208
Changed all CommandExecutor arguments
...
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-03-19 23:51:33 +01:00
jomo
9a916ed2cd
change indentation from 2 spaces to 4, fix #5
2015-01-06 23:38:42 +01:00
jomo
81669c62d7
rename log to info
2014-07-27 22:20:18 +02:00
jomo
b1a3a92e49
apply file read/save helpers
2014-07-27 19:42:33 +02:00
jomo
ce8b20aacd
fix problem with 'none' permission
2014-07-21 02:07:45 +02:00
jomo
9a0779d168
more code cleanup
2014-07-16 00:49:55 +02:00
jomo
1430a454ed
removed camelcase, added more coding style to readme
2014-07-16 00:33:43 +02:00
jomo
bd5dcf1933
add noperm; return true
2014-07-14 01:20:42 +02:00
jomo
62b3f8a270
fix basecolor in abot
2014-07-14 01:20:11 +02:00
jomo
c9763953d4
can't call function before definition
2014-07-14 00:56:46 +02:00
jomo
2a00635606
use json config for abot
2014-07-14 00:54:25 +02:00
jomo
f3c781ab47
more abot fixes
2014-07-11 00:26:49 +02:00
jomo
7cd3151d8c
more abot fixes
2014-07-10 23:45:32 +02:00
jomo
e78a147a44
match e.g. who can clear plot
2014-07-10 23:36:36 +02:00
jomo
9af08cfe4f
remove empty matchgroup; first match has to be a word
2014-07-10 23:35:03 +02:00
jomo
55e3cbc137
fix false positive for e.g. MODel, MODern
2014-07-10 23:32:23 +02:00
jomo
8efb6bcc20
fix false positive for e.g. MODel, MODern
2014-07-10 23:30:35 +02:00
jomo
bde3848ee6
skip abot for players with 'utils.ignore_abot' permission
2014-07-10 23:08:23 +02:00
jomo
bf0507ee23
fix literal '.' in regex, fixes
2014-07-10 23:06:45 +02:00
jomo
7b742a3152
more noob matching
2014-07-10 22:58:47 +02:00
jomo
07f1a169c3
needs trailing space
2014-07-10 01:22:53 +02:00
jomo
755bd35abb
fix typo, nicer output
2014-07-10 01:21:14 +02:00
jomo
ec9063b6e7
do not require extra words
2014-07-10 01:11:25 +02:00
jomo
44af737e9e
fucking comma
2014-07-10 01:03:39 +02:00
jomo
c2814fac4a
fix braces
2014-07-10 00:55:04 +02:00
jomo
2248007358
more questions
2014-07-10 00:52:32 +02:00
jomo
43e4015311
add abot (AnswerBot) to get rid of stupid FAQ asking
2014-07-10 00:37:42 +02:00