Commit graph

151 commits

Author SHA1 Message Date
39936e9d39 Add type for use with mypy 2016-07-10 00:17:37 +02:00
a8706d6213 New printer and parser for bot data, XML-based 2016-07-10 00:17:37 +02:00
e103d22bf2 Use fileno instead of name to index existing servers 2016-07-10 00:15:14 +02:00
1e8cb3a12a Use super() instead of parent class name 2016-07-10 00:15:14 +02:00
fab747fcfd Documentation 2016-07-10 00:15:14 +02:00
c0e489f6b6 In debug mode, display running thread at exit 2016-07-08 22:42:44 +02:00
509446a0f4 Handle case where frm and to have not been filled 2016-07-08 22:27:57 +02:00
4473d9547e Review consumer errors 2016-07-08 22:27:57 +02:00
95fc044783 Remove reload feature
As reload shoudl be done in a particular order, to keep valid types, and because maintaining such system is too complex (currently, it doesn't work for a while), now, a reload is just reload configuration file (and possibly modules)
2016-07-08 22:27:57 +02:00
1dd06f1621 New keywords class that accepts any keywords 2016-07-08 22:27:57 +02:00
670a1319a2 Can attach to the main process 2016-07-08 22:27:57 +02:00
2b1469c03f Remove legacy prompt 2016-07-08 22:27:57 +02:00
8983b9b67c Fix and improve reload process 2016-07-08 22:27:57 +02:00
c0fed51fde New argument: --socketfile that create a socket for internal communication 2016-07-08 22:27:57 +02:00
0b14207c88 New CLI argument: --pidfile, path to store the daemon PID 2016-07-08 22:27:57 +02:00
e17368cf26 Catch SIGUSR1: log threads stack traces 2016-07-08 22:27:57 +02:00
220bc7356e Extract deamonize to a dedicated function that can be called from anywhere 2016-07-08 22:27:57 +02:00
29913bd943 Catch SIGHUP: deep reload 2016-07-08 22:27:57 +02:00
7440bd4222 Do a proper close on SIGINT and SIGTERM 2016-07-08 22:27:57 +02:00
179397e96a Remove prompt at launch 2016-07-08 22:27:57 +02:00
992c847e27 Introducing daemon mode 2016-07-08 22:27:57 +02:00
358499e6d5 Expect IM keyword argument in command to be at the begining of the args list 2016-04-18 17:21:51 +02:00
5fae67255b Log Python version 2016-04-08 12:55:24 +02:00
2c3d61495f Welcome in 2016... Happy new year! 2016-04-08 12:55:24 +02:00
6ad979a5eb Fix event/timer issue if very close to 0 2016-01-29 16:52:52 +01:00
ff6460b92e Fix IRC message parameter escape 2016-01-19 18:45:14 +01:00
277d55d521 Add subparse method in context, that use server parser 2016-01-12 18:09:22 +01:00
57c460fc9c Simplify date extraction 2015-12-23 12:50:25 +01:00
cd0dbc4cc2 Xmlparser: parser for lists and dicts 2015-12-21 14:50:48 +01:00
d59f629dd9 Xmlparser: new class that just store one node, futher nodes will be parsed 2015-12-21 14:50:48 +01:00
f47aa8c478 Load module data on first access 2015-12-21 14:50:47 +01:00
ea8656ce0d Refactor command help: use hookmanager to get command help instead of custom search 2015-11-18 20:21:06 +01:00
0ba763f8b1 Display miss string only if no hook match on a full message treatment 2015-11-18 20:21:05 +01:00
43c42e1397 Rework hook managment and add some tests 2015-11-18 20:21:05 +01:00
31d93734a6 Fixed empty module configuration 2015-11-18 19:58:46 +01:00
e83c4091bf Avoid catchall DirectAsk 2015-11-18 19:58:26 +01:00
38412c1c16 Suggest command(s) on typo 2015-11-13 17:06:28 +01:00
0f4a904a77 Log configuration loading 2015-11-13 17:05:52 +01:00
36cfdd8861 Added check and match module defined functions to hooks 2015-11-13 17:05:27 +01:00
c06fb69c8b Extract tools.config as config module 2015-11-03 16:53:49 +01:00
f39a0eac56 Refactors hooks registration 2015-11-03 16:53:49 +01:00
49d7e4ced6 Hooks: add global methods to restrict read/write on channels 2015-11-03 16:35:19 +01:00
de2e1d6216 Remove Message.receivers, long time deprecated 2015-11-03 07:26:01 +01:00
ea9829b341 Check command keywords using keyword help (passed in @hook) 2015-11-03 07:23:21 +01:00
9790954dfc Hooks can now contain help on optional keywords 2015-11-03 07:22:01 +01:00
c6aa38147b Include some forgotten module in reload process 2015-11-03 07:21:49 +01:00
8b4f08c5bd Replace IRCException by IMException, as nemubot is not only built for IRC 2015-11-03 07:21:06 +01:00
ac33ceb579 Remove dead or useless code 2015-11-03 07:20:52 +01:00
f496c31d1c Help: don't append space character before ':' when the usage key is None 2015-10-31 17:45:50 +01:00
e4d67ec345 Use Channel class when creating Server 2015-10-29 15:25:54 +01:00