Commit Graph

39 Commits (master)

Author SHA1 Message Date
Fabien Freling ad9f0d13b2 Add imgur support 2015-09-06 22:16:57 +02:00
Fabien Freling fcf9fa63b2 Add unit test for url parser. 2015-07-31 21:31:22 +02:00
Fabien Freling 383920e6ee Add HTTPS support. 2015-07-31 21:22:24 +02:00
Fabien Freling 187b82fd41 Update to Ocamlnet v4.
Also update dependencies to add camlp4 and ounit.
2015-07-29 18:00:58 +00:00
Fabien Freling e7e25526be Add scripts to install deps 2015-07-28 22:15:14 +02:00
Fabien Freling 3761364d2d Add opam file
This takes care of the OCaml dependencies.
2015-07-28 22:14:25 +02:00
Fabien Freling 1de4ad70db Add bootstrap script.
This script takes care of all the dependencies.
2015-07-17 23:34:06 +02:00
Fabien Freling 209c9cf911 Handle HTML escape characters.
Convert “&…” codes to corresponding characters.
2014-12-21 17:10:22 +01:00
Fabien Freling 0046f46bbd Clean some code. 2014-12-21 17:00:07 +01:00
Fabien Freling ac5cafeb21 Add 'make check' target. 2014-12-21 16:12:52 +01:00
Fabien Freling 057106c665 Greet with o/ 2014-12-12 23:28:16 +01:00
Fabien Freling a8571e3597 Put titles in brackets. 2014-12-12 23:25:41 +01:00
Fabien Freling 062fd87bf5 Removes spaces in URL titles.
This is mainly used for Imgur.
2014-12-12 23:20:51 +01:00
Fabien Freling ff6b555372 Remove IRC greetings. 2014-12-12 23:20:24 +01:00
Fabien Freling 6d2791b3fe Incorporate Evaluate into irc
The code is a bit ugly in order to conform with the type system.
2014-12-08 23:48:41 +01:00
Fabien Freling 229932ece4 Recognize urls without www component.
For more complex regexp, another library might be required.
2014-12-07 23:14:24 +01:00
Fabien Freling adcb83ac8f Add simple Makefile. 2014-12-07 23:13:33 +01:00
Fabien Freling 610ccbb27d Make irc work.
With the new irc-client 0.2.0, everything works fine.
2014-12-07 23:13:22 +01:00
Fabien Freling a80e014c7e Update README. 2014-03-14 23:02:27 +01:00
Fabien Freling b3f1423b54 Add IRC client. 2014-03-14 23:02:27 +01:00
Fabien Freling 3749a2a973 Add ignore rule for bytecode binaries. 2014-03-14 23:02:27 +01:00
Fabien Freling 764581f505 Add Evaluate module.
The Evaluate module contains the logic for cheesebot actions.
2014-03-14 23:02:27 +01:00
Fabien Freling 5b790d3f09 Add unit test for HTML title. 2014-03-03 23:33:47 +01:00
Fabien Freling 1ab32d004c Parse HTML document to retrieve title. 2014-03-03 23:33:21 +01:00
Fabien Freling 1e7a1806b1 Remove binary.
It was added by accident.
2014-03-03 10:00:12 +01:00
Fabien Freling 35cf4a46a8 Clean module opening. 2014-03-01 22:32:28 +01:00
Fabien Freling ff69981a5c Break code into modules.
Use ocamlbuild command to build cheesebot.
2014-03-01 22:12:50 +01:00
Fabien Freling 7732fdf877 Add linking to Str module.
This module is used for regular expression manipulation.
2014-02-28 12:05:07 +01:00
Fabien Freling 53e3b146f5 Extend youtube regexp.
Cheesebot can now recognize youtube urls formatted like this:

- http://www.youtube.com
- https://www.youtube.com
- http://youtube.com
- www.youtube.com
- youtu.be
2014-02-28 09:04:12 +01:00
Fabien Freling 0f095addec Support SSL URLs when fetching HTML body. 2013-12-19 23:21:01 +01:00
Fabien Freling 155140fd70 Update build script with SSL and netstring modules. 2013-12-19 23:19:17 +01:00
Fabien Freling 9fd90effb3 Update gitignore to include vim swap files. 2013-12-19 23:18:19 +01:00
Fabien Freling a3488cb554 Use regexp to check if youtube url.
- Add basic build command.
2013-12-08 17:07:53 +01:00
Fabien Freling 642c6aa94a Update OCaml code with pattern guards.
Now the missing piece for recognizing urls is
regexp support.
2013-10-28 13:42:28 +01:00
Fabien Freling 1fd5486328 Update .gitignore for OCaml. 2013-10-28 13:41:05 +01:00
Fabien Freling c37eb1088e Add OCaml parrot. 2013-10-25 14:21:05 +02:00
Fabien Freling 6711eb6e5b Move haskell sources to specific directory.
Create an ocaml directory to test the 2 languages.
2013-10-25 13:54:11 +02:00
Fabien f9a2640104 Add initial files for IRC bot.
Add basic IRC bot main file.
Add simple module to parse HMTL title from an url.
2013-04-07 19:45:02 +02:00
Fabien Freling abb28aa95b Initial commit 2013-04-07 10:28:54 -07:00