1
0
Fork 0
Commit Graph

20 Commits

Author SHA1 Message Date
nemunaire d0b1336d07 Use a logger 2014-08-14 12:50:19 +02:00
nemunaire 23bc61cce0 Can register hooks thanks to Python decorator; fixes #43 2014-08-12 20:08:55 +02:00
nemunaire 582da6746f Clean importer (following PEP8); print function in module now handles many argument as Python print 2014-08-12 17:47:42 +02:00
nemunaire fabdbc7c47 v3.3 now considered stable 2014-07-17 12:57:30 +02:00
nemunaire 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