Commit Graph

290 Commits

Author SHA1 Message Date
urlbot
dd85eb1bd9 update dummy plugin to @foo() magic 2015-02-11 01:33:48 +01:00
urlbot
cbd88ea7fa command_wp: urlencode generated URLs 2015-02-09 04:01:35 +01:00
urlbot
51e3c26101 cleanup: fix whitespace, fix style 2015-02-09 03:46:17 +01:00
urlbot
67f2c42585 add default parser; add \LaTeX parser 2015-02-08 23:01:36 +01:00
urlbot
f6b47f2180 sort() help output 2015-02-08 22:37:27 +01:00
urlbot
73ec073c54 use static variables and list instead, which actually works 2015-02-08 22:18:07 +01:00
urlbot
d026990b0a replace Enum with dict because here's no working python3 Enum object available 2015-02-08 22:10:44 +01:00
urlbot
4942bdb52c white space fixes, reformat; update url_blacklist 2015-02-08 22:04:26 +01:00
f697a970ef fix indentation 2015-02-08 21:57:24 +01:00
0030b75e1d wp: report missing page 2015-02-08 21:57:24 +01:00
6858df0491 the cake is a lie 2015-02-08 21:57:23 +01:00
f4cb792c83 wp: now with redirects 2015-02-08 21:57:23 +01:00
15225377d7 small fix 2015-02-08 21:57:23 +01:00
438eb13ec2 wp: make the code a little bit nicer 2015-02-08 21:57:23 +01:00
3fa94d79b4 wp, now with umlaute 2015-02-08 21:57:23 +01:00
5a2623b93f small fixes 2015-02-08 21:57:23 +01:00
35f35865be finsih major rework of plugin.py
* We can give any number of arguments to command plugins
* now the pluginfunction decorator is used instead args == "register"
* wp plugin now joins arguments with whitespaces
2015-02-08 21:57:23 +01:00
3560e0b386 parse plugins now usable again (command to come) 2015-02-08 21:57:22 +01:00
e89bcf26f4 register plugins using the new scheme (but no plugins get used so far) 2015-02-08 21:57:20 +01:00
feb30b7ff5 Add pluginfunction decorator to plugins, unused for now 2015-02-08 21:57:18 +01:00
f0a1ec3c56 print trace on failed plugin load, rename command_else to else_command 2015-02-08 21:57:11 +01:00
65cbd81c38 Implement plugin autoloading 2015-02-08 21:56:29 +01:00
urlbot
5800756c87 fix long info msg: moreinfo["command"->"help"] 2015-02-05 01:16:52 +01:00
urlbot
fcfe2aca19 split command_wp to seperate 'wp' and 'wp-en' commands 2015-02-05 01:16:17 +01:00
urlbot
9a5c0d585c command_wp: add language selection 2015-02-05 01:04:52 +01:00
urlbot
403bcec68f command_wp: cleanup; fix empty string, de.|en., &explaintext 2015-02-05 00:52:33 +01:00
urlbot
daf82ec06b add command_wp: ask Wikipedia API for stuff 2015-02-05 00:48:02 +01:00
urlbot
8dd576b364 add 'src' alias for 'source' 2015-01-04 07:39:58 +01:00
urlbot
2761a94dcd merge command_command to command_help 2015-01-03 19:04:01 +01:00
urlbot
21f87ac8ac mv 'enable'|'disable' to own commands 2015-01-03 18:59:44 +01:00
urlbot
2fd63821a1 cleanup; avoid locking out via 'plugin disable plugin' 2015-01-03 18:42:12 +01:00
urlbot
2a44244413 add is_enabled flag; 'plugin enable' works 2015-01-03 18:17:54 +01:00
urlbot
7a86cffcc9 add command_plugin_activation; 'enable' broken 2015-01-03 18:00:28 +01:00
urlbot
3131f823cd remember() feedback changed: 'ok' -> to_remember 2014-12-27 14:55:24 +01:00
urlbot
c6246eda7c add commands remember, recall (probably hacky) 2014-12-23 19:54:05 +01:00
urlbot
277a93f89f add 'limited to' msg to command_show_blacklist() output 2014-12-22 21:06:23 +01:00
urlbot
49a36df11f command_dice: fix random() calls, compress output to single line 2014-12-20 17:10:26 +01:00
urlbot
ab02c3e59a patch command_dice to roll N dices 2014-12-20 17:02:26 +01:00
urlbot
c0381a7bf4 all plugins: cleanup, early return, use argv0 instead of data 2014-12-16 08:48:03 +01:00
urlbot
80ea4e899a add command_cake 2014-12-16 07:58:35 +01:00
urlbot
5c5072b36a cleanup; pylint suggestions 2014-12-14 16:26:48 +01:00
urlbot
54c590051c fix loop bug on multiple URL given 2014-12-14 16:01:09 +01:00
urlbot
e2e16896b5 send_reply accepts message lists now 2014-12-14 15:54:57 +01:00
urlbot
f315e61f5b actually honor 'spoiler' settings 2014-12-14 03:57:46 +01:00
urlbot
2e8df26a66 re-order locking; add working user setting editing 2014-12-14 03:41:57 +01:00
urlbot
ed0fb9baf2 add command_usersetting; push argvN to #2 2014-12-14 01:27:13 +01:00
urlbot
294dfbab3c cleanup; test .reply().send() 2014-12-14 01:21:30 +01:00
urlbot
75d2b712fb simple 1v1 chat; thread-safe persistent db; remove levenshtein; cleanup 2014-12-13 23:29:51 +01:00
urlbot
a2e33a6c2f fix event_trigger() func pointer calls 2014-12-13 22:57:15 +01:00
urlbot
25896a771a handle multiple rooms; rename chat_write->send_reply, msg->msg_obj 2014-12-13 22:46:23 +01:00