Commit Graph

489 Commits

Author SHA1 Message Date
707131023a [urlreducer] add some checks 2015-12-23 12:51:16 +01:00
1e29061bc9 [urlreducer] Framalink is in fact LSTU 2015-12-21 14:50:48 +01:00
e03d803ae0 [wolframalpha] Servers take a long times to respond theses days :( 2015-12-21 14:50:47 +01:00
6fc6561186 [alias] Fix parsing error when creating a (not allowed) spaced alias 2015-12-21 14:50:47 +01:00
43c42e1397 Rework hook managment and add some tests 2015-11-18 20:21:05 +01:00
e83c4091bf Avoid catchall DirectAsk 2015-11-18 19:58:26 +01:00
7ae7e381c3 [alias] Forward command keywords 2015-11-18 19:58:03 +01:00
f27347f028 [grep] Introducing new module that perform grep like action on subcommand 2015-11-13 17:32:58 +01:00
2ebd86b80f [events] Avoid catchall hook 2015-11-13 17:06:10 +01:00
11bdf8d0a1 [cve] Dusting module 2015-11-08 01:12:21 +01:00
00fa139e54 [syno] Dusting module 2015-11-08 01:12:21 +01:00
1ef54426bc [networking/whois] improve netwhois response by using normalized API fields 2015-11-08 01:12:20 +01:00
6aef54910e [networking/whois] New function to get domain availability status 2015-11-08 01:12:20 +01:00
a4e6e4ce84 [more] Fix append_content behaviour: initialize a list, don't convert string to char list 2015-11-08 01:12:20 +01:00
c4a7df7a6f [spell] Dusting module 2015-11-07 10:06:06 +01:00
3a1ce6c9e8 [ddg] Don't include empty definition in global results 2015-11-05 14:32:34 +01:00
f39a0eac56 Refactors hooks registration 2015-11-03 16:53:49 +01:00
de2e1d6216 Remove Message.receivers, long time deprecated 2015-11-03 07:26:01 +01:00
70b52d5567 [translate] Refactor module, use keywords 2015-11-03 07:22:55 +01:00
8ff0b626a2 Update help of module using keywords 2015-11-03 07:22:26 +01:00
979f1d0c55 [more] Don't display the count string if the message is alone 2015-11-03 07:22:16 +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
9935e038fc [man] num variable wasn't used here 2015-11-03 07:20:28 +01:00
Max
c6e1e9acb2 [framalink] Update regex, clean up code 2015-10-29 16:34:58 +01:00
Max
1e36846265 [framalink] Fix ycc shortner 2015-10-29 16:34:58 +01:00
Max
04d5be04fa [suivi] Add TNT support 2015-10-29 16:34:58 +01:00
Max
3cb9a54cee [suivi] Code cleanup 2015-10-29 16:34:58 +01:00
Max
497263eaf7 [suivi] improve the suivi module
* Add multiple arguments/tracking numbers support
* Make it easier to add new tracking services
* Simplified to just one hook to which we can specify trackers using the
names variables

(correct typo in framalink comments)
2015-10-29 16:34:58 +01:00
c560e13f24 Rework XML parser: part 1
This is the first step of the parser refactoring: here we change
	the configuration, next step will change data saving.
2015-10-28 10:55:02 +01:00
59ea2e971b Refactor modules that used nemubot XML parser due to previous commit 2015-10-28 10:55:02 +01:00
2b96c32063 [ddg] Split the module in two: ddg for search and urbandict for urbandictionnary 2015-10-27 23:05:49 +01:00
Max
aca073faff [framalink] Fix framalink quoting; add @provider
!framalink now allows the provider to be specified using the @provider
parameter.
2015-10-27 23:05:49 +01:00
Max
7ce9b2bb4c [framalink] Add error handling (invalid URLs) 2015-10-27 23:05:49 +01:00
089823d884 [rnd] New command to choice between cmd 2015-10-20 18:02:02 +02:00
dbca402fe7 [alias] Use title in response 2015-10-19 17:15:42 +02:00
55e6550cb1 tools/web: factorize getNormalizedURL 2015-10-13 16:23:55 +02:00
76ec0d26b4 Modules: avoid unhandled exception in all_post 2015-10-13 16:23:51 +02:00
aa4050f6cd [framalink] some refactor 2015-10-13 16:23:33 +02:00
2cd8f70cdc [networking] Dusting module 2015-10-12 13:37:53 +02:00
eb95480c8f [news] normalize URL before performing a join 2015-10-12 13:10:58 +02:00
20105e7d98 tools/web: add a URL normalizer function 2015-10-12 13:10:58 +02:00
db70974504 [alias] Fix old issues 2015-10-08 18:25:57 +02:00
Max
ece42ffe47 [urlshortner] Add framalink support 2015-10-09 01:47:42 +01:00
a6a10b78d1 Fill help in some modules 2015-10-07 18:22:01 +02:00
Max
e1310516fa [alias] Fix argument consumption, allow multiple usage of same var 2015-10-07 00:14:37 +01:00
Max
461c62f596 Fix alias ranges
Args are now consumed when in ranges, and ranges with 1 bound now work
2015-10-06 23:23:42 +01:00
57ba0d5db9 [networking] Fix traceurl: trace all URL even if an error occurs 2015-10-03 16:47:20 +02:00
c812fd8c16 As the char ':' is not valid in URL, don't expect it 2015-10-03 16:47:08 +02:00
ff605756ff [news] Add support for RSS feeds and catch ExpatError when trying to parse a bad URL 2015-09-28 12:59:00 +02:00
ee1910806c [news] Introduce new module News: it fetchs atom feed from a website and display it 2015-09-28 11:53:55 +02:00
a4f4bb799c Extract atom from networking module to core 2015-09-28 11:53:29 +02:00
471feca8fb [networking.atom] use Datetime to store internal dates and can get an ordered list of elements 2015-09-28 11:53:11 +02:00
bbf5acafbb [mediawiki] fix OpenSearch: can have empty description 2015-09-25 15:48:09 +02:00
7a1ad6430c [whois] update module
* change intra-bocal URL to fix CertificateError
	* fix 23.tf trombi URL
	* add a catch when trying trombi URL
2015-09-24 11:29:51 +02:00
4f7d89a3a1 [ycc] Dusting module, now named tinyurl 2015-09-24 11:29:50 +02:00
be776405e3 Dusting URL stacking modules: fixing error when using channel list as response 2015-09-24 11:29:50 +02:00
35ba5c03c9 [more] Allow method chaining 2015-09-24 11:29:49 +02:00
Max
8018369800 Add global tracking hook 2015-09-24 11:29:48 +02:00
d74a9067c0 [bonneannee] Command for the nextyear doesn't require argument anymore 2015-09-24 11:29:48 +02:00
Max
e915c4930c Fix #2 ; Add chronopost and colis privé support 2015-09-24 11:29:47 +02:00
ac3ed0d492 [alias] huge refactoring 2015-09-24 11:29:44 +02:00
ec9481e65b [networking] Add !title command to display the title of a page 2015-09-24 11:29:43 +02:00
969210a723 [networking] Avoid exception when port is not defined on socket error 2015-09-24 11:29:37 +02:00
6147eef19b [mediawiki] Help user find the article he want to read if it doesn't exist 2015-09-23 10:57:25 +02:00
67cd66b922 [mediawiki] Handle # 2015-09-23 10:57:25 +02:00
Max
710896f711 [suivi] Now using nemubot.tools.web for queries 2015-08-26 12:18:24 +02:00
Max
5b039edb62 Updated tracking module to support colissimo 2015-08-26 12:18:24 +02:00
d1c28fc4a3 [networking] New function to get a list of watched URL 2015-08-26 12:18:24 +02:00
3c15d35fca [alias] Dusting module 2015-08-26 12:18:21 +02:00
4d51bc1fda Dusting modules 2015-08-26 12:18:20 +02:00
4bc8bc3c12 Dusting modules 2015-08-26 12:17:22 +02:00
Max
b5e4acdb70 [jsonbot] replacing spaces with %20 in queried url 2015-08-26 12:17:22 +02:00
Max
6e226f0fb3 [nextstop] Updated nextstop with destination option 2015-08-26 12:17:22 +02:00
b75c54419f [ddg] Dusting + !safeoff handling 2015-08-26 12:17:21 +02:00
787a5fd3da Web tool raise more IRCException 2015-08-26 12:17:21 +02:00
6415e4a697 [networking] Handle ConnectionError exceptions 2015-08-26 12:17:20 +02:00
3b8195b81b [alias] Variable replacement can operate on slice list.
In addition to ${1}, ${2}, ... you can now use slice: ${1:5} or ${1:}.
	The effect is to join arguments with a space character.
2015-08-26 12:17:20 +02:00
Max
dc681fdc35 [jsonbot] now taking all cmd args 2015-08-26 12:17:20 +02:00
Max
3cad591086 [imdb] Fixed grammar 2015-08-26 12:17:19 +02:00
Max
ea05b3014c [jsonbot] now supports json lists 2015-08-26 12:17:19 +02:00
0c960e984a [networking] fix watch pages that aren't text/html 2015-08-26 12:17:19 +02:00
487cb13e14 [weather] fix some hypothetical errors 2015-08-26 12:17:18 +02:00
d90c44de49 [nextstop] Update submodule 2015-08-26 12:17:18 +02:00
b44464d255 [networking] Log error when unable to restart a watch 2015-08-26 12:17:17 +02:00
Max
0e76a6ed2a Added json parsing module 2015-06-24 20:06:00 +02:00
Ivan Delalande
8a7ca25d6f Change !yt to use youtube-dl
youtube-dl does a good job at extracting all the information from hundreds of
website, presenting it in a standardized way and staying up-to-date.

Signed-off-by: Ivan Delalande <colona@ycc.fr>
2015-06-24 20:05:59 +02:00
5f29fe8167 [alias] Allow anyone to remove an alias 2015-06-24 20:05:59 +02:00
889b129da3 [alias] Fix #86 2015-06-24 20:05:58 +02:00
ed6da06271 [alias] Fix #83 2015-06-24 20:05:58 +02:00
cacf216e36 [alias] Fix #85 2015-06-24 20:05:57 +02:00
Max
ef73516ceb Updated submodule 2015-06-24 20:05:57 +02:00
Max
73082e4109 Updated nextstop module 2015-06-24 20:05:57 +02:00
3ac151f888 [books] Fix API calls 2015-06-24 20:05:56 +02:00
c0e6b26b0c [alias] Fix variable replacement in aliases 2015-06-24 20:05:55 +02:00
859b32abb7 [ctfs] Improve module 2015-06-24 20:05:55 +02:00
381cf13432 [networking] Allow anyone to remove a watch 2015-06-24 20:05:54 +02:00
Bob
f786dd1d43 ctfs plugins 2015-06-24 20:05:54 +02:00
f4a80e0fda New function in ModuleContext: call_hook 2015-06-24 20:05:54 +02:00
d95de8c195 In some modules, raise ImportError to avoid module loading on errors 2015-06-24 20:05:53 +02:00
2e55ba5671 [ddg/wolframalpha] extract wolframalpha module and dusting 2015-06-03 19:39:16 +02:00
91688875d4 [github] can use #ID as ID when looking for a particular issue 2015-06-03 17:20:32 +02:00
19ad2d7a32 [github] use msg.args instead of deprecated msg.cmds; fixes #80 2015-06-03 17:11:25 +02:00
04023e945e Fix module parseresponse when more.Response is used as response 2015-06-03 17:00:28 +02:00
8d91ad31fb [whois] Module try to find a recent photo 2015-06-03 15:30:28 +02:00
889e376254 [whois] Module try to find a recent photo 2015-06-03 15:30:27 +02:00
63a6654331 [yt] Improve module: track last video URL 2015-06-03 15:30:27 +02:00
Bob
b3274c0dc7 New module youtube-title: that retrieve title from a youtube link 2015-06-03 15:30:27 +02:00
4be9f78104 [whois] New module from nbr23 bot 2015-06-03 15:30:17 +02:00
Maxence
481b1974c3 [laposte] handling no arguments 2015-05-25 16:44:32 +02:00
Maxence
9120cf56c2 Updated SAP transaction lookup module 2015-05-25 16:44:32 +02:00
Maxence
7d051f7b35 Added a La Poste tracking module 2015-05-25 16:44:31 +02:00
9c78e9df1d [cve] Merge multiple lines 2015-05-25 16:44:31 +02:00
65b5f6b056 [mediawiki] Improve parsing of recursive templates 2015-05-25 16:44:31 +02:00
f19dd81a0d Update TODO item 2015-05-25 16:44:29 +02:00
48ebc1b1f5 [speak] Avoid saying multiple identical message 2015-05-25 16:44:28 +02:00
002f2463a3 Extract hooks 2015-05-25 16:44:28 +02:00
c8d495d508 Split messages class into multiple files 2015-05-25 16:44:27 +02:00
3d1a8ff2ba [mediawiki] improve output 2015-05-25 16:44:25 +02:00
e588c30044 Optimize imports 2015-05-25 16:44:16 +02:00
46268cb2cf [networking] Fix variable name conflict 2015-02-13 12:56:29 +01:00
28005e5654 Convert modules to new importer 2015-02-11 18:12:39 +01:00
e225f3b8d7 import ModuleState when needed 2015-01-05 10:18:40 +01:00
06c85289e0 Don't import some nemubot module automatically 2015-01-05 02:49:06 +01:00
7c7b63634b [wip] in modules, changes import to reflect new directory structure 2015-01-05 02:49:05 +01:00
8aebeb6346 [cmd_server] rework due to previous prompt rework 2015-01-04 15:14:16 +01:00
0d21b1fa2c Indicate full version in UserAgent HTTP header 2015-01-02 10:15:30 +01:00
0d4130b391 [events] ids don't have to be saved 2014-12-31 09:46:15 +01:00
17bbb000ad [networking] Oops, watchWebsite wasn't working; fixed 2014-12-29 07:50:27 +01:00
466ec31be7 [nextstop] Dusting 2014-12-29 07:50:18 +01:00
c691450111 [tpb] Give working magnet link 2014-12-20 07:28:12 +01:00
bf266dd21f [ycc] Dusting 2014-12-18 13:02:19 +01:00
d14fec4cec Modules: global dusting: call getJSON instead of making raw calls to urllib 2014-12-18 12:52:39 +01:00
66ec7cb7ca [tpb] More usefull information 2014-12-18 11:54:35 +01:00
99106d26a9 Fix #70: new module tpb using an API with a TPB dump 2014-12-17 18:09:19 +01:00
dd285b67d1 fix netloc != hostname 2014-12-17 17:49:57 +01:00
a1c086a807 [networking] use getJSON 2014-12-17 16:00:06 +01:00
d6ea5736a5 Move xmlparser to tools 2014-12-17 12:06:28 +01:00
5dcf0d6961 [networking] integrate watchwebsite module to networking + doc and reworking 2014-12-17 12:06:11 +01:00
c75d85b88b [birthday] fix date saving for other people 2014-12-17 10:59:18 +01:00
48149fadc1 [networking] update netwhois 2014-12-17 10:59:02 +01:00
f181d644b4 [networking] Refactor module 2014-12-17 10:54:57 +01:00
Bob
0dd6036808 del xml 2014-11-17 14:56:08 +01:00
Bob
58d330c333 add cve module 2014-11-17 14:24:18 +01:00
63cc770800 [cmd_server] launch and disconnect function doesn't exist anymore 2014-11-14 14:25:52 +01:00
2dfe1f0e9a PEP8 clean 2014-11-13 15:52:04 +01:00
e1aff6c4cf channel or nick required when creating a Response 2014-11-13 14:51:18 +01:00
4f27232fd4 [bonneannee] Unharcode channel to send message on 1 January 2014-11-10 17:05:18 +01:00
95deafe7af [speak] Fix error on non-TextMessage arrival 2014-11-10 13:01:03 +01:00
745d2b0487 Events module: display an error if server doesn't exist when registering the event 2014-11-03 15:45:16 +01:00