Archived
1
0
Fork 0
Commit graph

57 commits

Author SHA1 Message Date
Julien Dessaux
ff07633fb8 Began a big refactoring/rewriting (again) 2011-04-13 20:15:55 +02:00
Julien Dessaux
d05aea2def Regressed from parsec3 to parsec2 to solve a cabal install weird dependency problem. 2010-10-10 01:42:18 +02:00
Julien Dessaux
a6ba40c252 Fixed the plugin loading process. 2010-10-02 00:28:48 +02:00
Julien Dessaux
d0b0fb6ac1 Added the help command for the quote module. 2010-08-22 18:16:21 +02:00
Julien Dessaux
d33ab441f8 Added the quote quick command. 2010-08-22 18:15:14 +02:00
Julien Dessaux
8bbe88a078 Improved message dispatching in core. 2010-08-20 23:36:00 +02:00
Julien Dessaux
41f442028d Greatly improved configuration file handling. 2010-08-20 19:05:50 +02:00
Julien Dessaux
8c59b45dc7 Got a working hsbot-irc back online! 2010-08-01 23:29:48 +02:00
Julien Dessaux
03795ac2f7 Moved the CLI argument processing stuff in its own file. 2010-08-01 17:59:02 +02:00
Julien Dessaux
6a7d1f0381 Added configuration debug stuff. 2010-08-01 17:40:53 +02:00
Julien Dessaux
6888950b60 Added the cli parser and a config file handler for hsbot-irc. 2010-08-01 00:22:58 +02:00
Julien Dessaux
5cb9f9ccfc Got rid of the pseudo dynamic starting stuff, wrote a decent CLI parameters handling. 2010-07-16 11:34:13 +02:00
Julien Dessaux
116c655fdc Made some slight changes in order to make the bot's core "compile". 2010-07-04 01:35:47 +02:00
Julien Dessaux
11c2c16835 Moved files around as a preliminary for architectural changes. 2010-07-03 22:40:17 +02:00
Julien Dessaux
d97177ce3b Wrote most of the resume code for the core and the irc plugin. 2010-06-20 17:49:39 +02:00
Julien Dessaux
3410caa6f2 Fixed the plugin termination.
The master of a plugin will now wait for the plugin it kills to terminate.
2010-05-29 23:55:20 +02:00
Julien Dessaux
9dda7dc1b9 Added signal handling and a better semantic for bot status. 2010-05-29 23:55:12 +02:00
Julien Dessaux
57bec4921b Rationalized the way bot configs are handled. 2010-05-29 17:05:56 +02:00
Julien Dessaux
daea135424 Implemented the clean killing of plugins' threads. 2010-05-29 01:01:31 +02:00
Julien Dessaux
c506c58e92 Cleaned further the bot updates handling. 2010-05-28 22:39:45 +02:00
Julien Dessaux
451564ef5b Cleaned that ugly update message handling and added a reboot command to the ircbot. 2010-05-25 22:07:58 +02:00
Julien Dessaux
8b33600f38 Implemented update message handling in the bot's core. 2010-05-24 23:52:47 +02:00
Julien Dessaux
a12e492772 Implemented ircbot update messages. 2010-05-24 22:46:20 +02:00
Julien Dessaux
5b8cffbf68 Cleaned the definition of irc plugins' data structure. 2010-05-18 00:46:36 +02:00
Julien Dessaux
738ad9e9bb Removed thread ids from plugins data structure. 2010-05-16 17:58:38 +02:00
Julien Dessaux
c1662ba7b9 Rewrote nearly everything!
* Rewrote the whole architecture to achieve extreme modularity
* Added the ability to build a multiprotocol bot
* Added cabal integration
* Added configuration handling the XMonad style
* Added configuration in ~/.hsbot
* Refactored many many named and functions
* Refactored data structures
* Cleaned a big bunch of stuff
2010-05-16 00:01:00 +02:00
Julien Dessaux
c20cfe88b3 Added the quote module. 2010-04-26 14:13:16 +02:00
Julien Dessaux
b6d119cf5b Some refactoring + cosmetics. 2010-04-25 16:43:01 +02:00
Julien Dessaux
727adadc28 Added an utility function to correctly answer a message we receive (aka /msg) 2010-04-22 19:42:53 +02:00
Julien Dessaux
d922240e9a Wrote the list plugin command. 2010-04-22 00:10:13 +02:00
Julien Dessaux
50b21c21ee Make the main thread exit cleanly in case of connection loss. 2010-04-21 23:01:02 +02:00
Julien Dessaux
8551832bd2 Add the IrcMsg as an optional parameter for an internal command. 2010-04-21 22:39:03 +02:00
Julien Dessaux
455b18bc10 Removed all the dynamic module loading stuff. 2010-04-21 22:37:06 +02:00
Julien Dessaux
4c76d3d40b Fixed several stuff. 2010-04-21 20:57:22 +02:00
Julien Dessaux
bfc06f1ff1 Fixed the clean killing of plugin's threads, fixed exception management and cleaned plugins' main functions. 2010-02-08 00:16:02 +01:00
Julien Dessaux
416460886d Continue rewriting, found a problem in the way I kill plugins. 2010-02-04 23:34:15 +01:00
Julien Dessaux
fd8d5faf5f Began a complete rewrite of command and plugin management.
Wrote a command routing statement, added an IrcPlugin monad.
2010-02-04 21:05:37 +01:00
Julien Dessaux
047a10bc9b Fixed some types' functions. 2010-02-04 20:57:10 +01:00
Julien Dessaux
53870767c3 Rewrote command handling, added the Quote module and cleaned input handling. 2010-02-04 20:55:54 +01:00
Julien Dessaux
46d9dd301d Implemented unregisterCommand. 2010-02-04 20:41:22 +01:00
Julien Dessaux
cf68de02be Added command registering and dispatching for plugins. 2010-02-04 20:40:16 +01:00
Julien Dessaux
d2f40f6481 Finished changing plugin data structure to Maps. 2010-02-04 20:38:06 +01:00
Julien Dessaux
884c6c9f2e Reorganized code and types, changed slightly the architecture. 2010-02-04 20:36:58 +01:00
Julien Dessaux
57f559f3a1 Rewrote the whole architecture. 2010-02-04 20:27:22 +01:00
Julien Dessaux
d4103e3e18 Rebooting now works great, thanks to the communication channel preservation. 2009-08-23 23:07:43 +02:00
Julien Dessaux
dfd0b3dcd7 Added the IRCParser (thx galdor), and PrivMsg handling (simply repeat) 2009-08-13 00:07:08 +02:00
Julien Dessaux
65646eb07f Added server states, in order to handle rebooting more cleanly (still missing saving the chan) 2009-08-13 00:04:49 +02:00
Julien Dessaux
7a86235906 Rethought the way I handled IRC data. 2009-08-11 00:38:36 +02:00
Julien Dessaux
8caf09e50b Fixed my mess with the rfc doc stuff... :p 2009-08-09 21:32:40 +02:00
Julien Dessaux
b463cfe451 Added LICENCE, and rfc2812 (IRC protocol) as documentation. 2009-08-07 11:06:15 +02:00