3265006adb
argparse: add verbosity level
2014-12-17 12:43:08 +01:00
65aa371fdc
Use argparse to parse CLI argument
2014-12-17 12:37:14 +01:00
d6ea5736a5
Move xmlparser to tools
2014-12-17 12:06:28 +01:00
bbd928c6fa
Prompt: documentation, factoring
2014-11-18 12:48:33 +01:00
23b60814b7
Remove dead code in importer
2014-11-14 15:46:48 +01:00
dfde4c5f49
New message processing
2014-10-07 00:21:14 +02:00
41da1c0780
Response class is now part of 'more' module.
...
This commit prepare the new message flow based on protocol independent messages.
This commit changes the module API: you need to import the Response class manually at the begining of our module.
2014-09-27 12:39:44 +02:00
3bc53bb4ef
Introducing new hooks manager
...
Currently, the manager use a naive implementation, this is
mainly for architectural testing purpose.
2014-09-01 19:21:54 +02:00
8d1919a36b
Backport part of v4 Bot class
2014-08-29 12:03:41 +02:00
97143a0182
Centralize configuration: there is no more XML files for module, juste one bot configuration file, also containing module configuration; fixes #56
2014-08-28 12:29:58 +02:00
e5ec487d29
Improve logging system
2014-08-27 07:57:00 +02:00
d0b1336d07
Use a logger
2014-08-14 12:50:19 +02:00
23bc61cce0
Can register hooks thanks to Python decorator; fixes #43
2014-08-12 20:08:55 +02:00
582da6746f
Clean importer (following PEP8); print function in module now handles many argument as Python print
2014-08-12 17:47:42 +02:00
fabdbc7c47
v3.3 now considered stable
2014-07-17 12:57:30 +02:00
26502abe35
New exception: IRCException
...
When raised in a module, respond in the channel with the given string as Response content
2014-04-30 22:19:32 +02:00
Némunaire
3ba52cf1a0
Fix del_event alias in module and display a warning when trying to send a message to a unknown server
2012-12-21 11:05:43 +01:00
Némunaire
dc52593953
Add new hook that treat all messages, not only PRIVMSG ; can respond with a response.Hook to create a hook
2012-11-04 04:35:40 +01:00
Némunaire
d4cfe1e0f8
Fix Warning when using legacy hooks function
2012-11-02 17:29:22 +01:00
Némunaire
a62940380e
Introducing a new nemubot architecture for servers and messages treatment: messages have no more context or server
2012-11-02 12:10:37 +01:00
Némunaire
bbfd34fe7b
New global function: add_hook: add a hook in the current context directly associated to the current module
2012-10-15 02:20:01 +02:00
Némunaire
05f061bccb
In module, new variable DIR hold the directory path containing the module
2012-10-04 13:59:37 +02:00
Némunaire
387ecc7d5c
Fix events (the first event was always skiped)
2012-09-02 19:17:42 +02:00
Némunaire
fc396ef313
Unload a module now unsubscribe auto-registered hooks
2012-09-02 19:17:42 +02:00
Némunaire
a2d9757d06
Add the ability to talk with other nemubot over DCC
2012-08-31 05:21:19 +02:00
Némunaire
99e91af2cb
Automatically load Response and ModuleState in each nemubot modules
2012-08-30 18:26:36 +02:00
Némunaire
68c88fc864
Fix message hooks
2012-08-22 21:52:49 +02:00
Némunaire
7e20368c10
Hook factorisation ; add new hooks : default (same comportement has previous version) and one hook before any parsing
...
When calling a hook, passed parameters change according to associated data variable
2012-08-22 21:09:20 +02:00
Némunaire
ba69d981dc
Allow modules without configuration
2012-08-16 05:23:45 +02:00
Némunaire
433f0977bf
Pass context as argument to load for modules
2012-08-14 06:53:52 +02:00
Némunaire
e4d4e68c45
Introduce nemubot v3.2
...
- New licence: AGPL3 instead of GPL3
- Import is now based on finder and loader instead of sys.path
- Modules used hooks to treat message instead of treating all messages
- Remove a lot of builtins from the prompt
- Prompt: ^C and ^D have now correct feature (nothing and exit)
2012-08-14 05:51:55 +02:00