Commit Graph

464 Commits

Author SHA1 Message Date
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
77b897a1e3 Fix in modules: is_owner is now frm_owner 2014-11-03 15:43:39 +01:00
f927d5ab0a Convert nemuspeak as a module to nemubot 2014-10-27 18:40:04 +01:00
5e87843dda Mediawiki module: fetch namespaces list to hide categories 2014-10-22 07:38:53 +02:00
67f6d49fb8 Weather module: new nemubot version fix 2014-10-21 20:55:39 +02:00
fe709e630f SMS module: new nemubot version fix 2014-10-21 17:06:25 +02:00
bd92f64449 More module: ensure that never return None 2014-10-10 23:15:11 +02:00
4dd837cf4b Change add_server behaviour, fix IRC parameters parsing, can use with Python statement for managing server scope 2014-10-09 07:37:52 +02:00
f9ee1fe898 Can use countdown without timezone 2014-10-09 07:31:21 +02:00
dfde4c5f49 New message processing 2014-10-07 00:21:14 +02:00
49bfcdcae5 Bonneannee module: fix timezone 2014-10-04 07:34:30 +02:00
5d5030efe1 Syno module: add english language support; closing #64 2014-10-04 07:33:34 +02:00
ce9dec7ed4 Xmlparser module: getNodes is now a generator 2014-10-02 07:03:27 +02:00
ada19a221c In Response, nomore can now be a function 2014-10-02 06:59:54 +02:00
23c660ab57 Mediawiki module: can search through opensearch or classic search 2014-10-01 00:16:19 +02:00
c5a69f1bd0 Internal timezone is now UTC 2014-10-01 00:14:27 +02:00
32cb79344b Mediawiki module: fix links 2014-09-29 22:45:44 +02:00
74bb0caa1b Fix prompt commands: join, leave and part 2014-09-28 20:34:49 +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
cdaad47b13 Ensure multiline message after line_treat are collapsed to one line 2014-09-24 10:53:16 +02:00
acded35e1a Pick events class from v4 2014-09-23 22:47:50 +02:00
a7830f709d WatchWebsite module: use w3m function from networking module 2014-09-20 00:15:06 +02:00
7a5c2d9786 Separate curl and w3m functions to use it from others modules 2014-09-20 00:14:19 +02:00
b184b27d4f Randomize the first fetch of watched pages; closing #33 2014-09-19 19:28:48 +02:00
8b819f097d Mediawiki: display an error when the article doesn't exist 2014-09-19 08:02:31 +02:00
880b2950d3 RATP: clean and update module 2014-09-19 01:42:37 +02:00
dee6ec28fe Can deferred a treatment on each line responded (to save time at first fetch) 2014-09-18 08:22:59 +02:00
772d68a34d Response sender is not needed anymore, private channels are now better handled 2014-09-18 07:57:06 +02:00
1beed6751b Books module: can search books writen by someone and read description of a given book; closing #65 2014-09-16 20:20:37 +02:00
edbfac2943 Alias module: avoid infinite recursion if an alias substitute by the same command 2014-09-15 07:55:35 +02:00
8c52f75b6a Prepare hooks to be used for other things than Message 2014-09-11 21:20:56 +02:00
4cbf73c45a Rework on networking module 2014-09-10 21:28:47 +02:00
4f19f08c9f WatchWebsite module: raw content can be display in response 2014-09-10 12:19:25 +02:00
eba4a07ed1 Event module: use time tag instead of now() as event start time 2014-09-08 02:28:34 +02:00
ee14682c4f extractDate function is now in a separate Python module 2014-09-08 02:25:26 +02:00
76399a110f New module books: related to #65 2014-09-07 23:55:40 +02:00
8f17c0a977 Velib module: fix use without xml configuration file 2014-09-07 23:52:54 +02:00
b0e457ffc9 Fix return of parselisten functions 2014-09-03 19:06:26 +02:00
7387fabee1 New module mediawiki 2014-09-02 21:21:06 +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
dcce36eb7c Implement more and next features as module instead of part of core 2014-08-31 01:55:28 +02:00
28c1ad088b Move countdown to a separate module in tools 2014-08-29 17:13:28 +02:00
0a16321259 (wip) reworking of the Message class; backported from v4 2014-08-29 17:12:12 +02:00
4b9a6305d4 Legacy hooks now need to be explicitely declared 2014-08-28 18:05:21 +02:00
da32ee6490 GitHub module: add command !github_commit 2014-08-28 14:28:56 +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
eae0adbb43 IMDB module: reworking, handle year precision 2014-08-28 02:04:33 +02:00
cd7843e16e Replace help_tiny by module docstring 2014-08-28 01:39:31 +02:00
84d3ee262c IMDB module: detect IMDBid 2014-08-26 16:38:30 +02:00
0e5562fa01 New module: github 2014-08-26 07:06:23 +02:00
82156543aa Birthday module: fixes #63 2014-08-21 15:16:25 +02:00
Max
17c29e386c Added imdb id support as a fallback to imdb title checkout feature. 2014-08-18 17:49:37 +02:00
0a96627d6a Weather module use mapquest module to found city location 2014-08-16 01:26:45 +02:00
46c8048b53 New mapquest module: can geocode (will help #45) 2014-08-16 01:26:05 +02:00
94a9a9a30b Switch to v3.4 branch 2014-08-13 15:53:55 +02:00
ef50f6a1c9 Birthday module: fix regexp string used 2014-08-13 15:25:29 +02:00
fe0f120038 Using newly added Python decorator for hook registration 2014-08-13 15:14:41 +02:00
ccff1c8b1e Birthday module: dusting 2014-08-11 14:55:25 +02:00
3ae01da380 Events module: dusting 2014-08-08 19:45:41 +02:00
22b6392cc8 Alias module: can create of aliases; fixes #27 2014-08-08 19:07:55 +02:00
1e139b3afa Translate module: fix order of meanings 2014-08-08 18:22:14 +02:00
c15127feb8 WatchWebsite module: dusting & fix unwatch authorizations 2014-08-06 16:20:51 +02:00
d985b71373 Rnd module: fix random choice between 0 possibility 2014-08-06 16:10:10 +02:00
7a55840aeb Translate module: add indication of more available translation 2014-08-06 16:10:04 +02:00
b34a73cea6 Fix exception on empty message 2014-08-04 02:32:29 +02:00
eccf4ddf7a Translation module: allow only translation to or from english (due to wordreference restrinctions) 2014-07-25 18:10:23 +02:00
5bec50744c Dusting some modules 2014-07-25 18:02:30 +02:00
495c1f0efa Refactor translation module 2014-07-25 17:55:49 +02:00
1a3912cc4f YCC module: dusting & anchors are correctly passed; fixes #59 2014-07-25 16:38:01 +02:00
d16f57f8d5 Refresh old code and add antonyme search 2014-07-25 15:12:37 +02:00
9b010544b5 Last PR modules: made some stabilization modifications 2014-07-25 12:53:07 +02:00
Max
be80e84323 Added SAP tcode lookup module 2014-07-24 05:32:07 +02:00
411d8cdc41 New prompt command: netstat that display information about connected networkbot 2014-07-23 16:32:42 +02:00
0036dcc285 Merge pull request #57 from Cccompany/v3.3
IMDB module (fixes  #11) + clean conjugaison module
2014-07-23 15:13:04 +02:00
Bertrand Cournaud
9eb3357148 Clean conjugaison module 2014-07-23 15:01:14 +02:00
Bertrand Cournaud
cd16bf8de9 Update conjugaison module by adding tens 2014-07-23 15:00:01 +02:00
Bertrand Cournaud
fee11aca42 Add imdb search module. \!imdb for info about a movie, \!imdbs to search a movie 2014-07-23 14:54:00 +02:00
82198160fd Worlcup module: add a timeout to urlopen to avoid infinite event 2014-07-17 12:04:34 +02:00
e5741ce1cb cmd_server: new command top to display bot load 2014-07-17 11:58:59 +02:00
Bertrand Cournaud
fde217dfde Define a dictonary for the tens list 2014-07-15 11:28:38 +02:00
Bertrand Cournaud
f6d4600df3 Add conjugaison module 2014-07-11 15:38:30 +02:00
509e85f55a SMS module: after reload, datas are not correctly typed 2014-07-10 23:38:00 +02:00
85edb9489d Choice module: append nick to avoid response stating with a command 2014-07-10 23:35:41 +02:00
75def22e57 W3C module: handle document wide messages 2014-07-09 15:19:32 +02:00
4e1fc0bca1 networking module: new feature curly; closes #41 2014-07-08 03:28:01 +02:00
95ceeeaec9 networking module: new feature: w3m to dump page instead of displaying raw HTML 2014-07-08 03:03:33 +02:00
fa77a3b323 Fix decoding of some pages 2014-07-08 02:44:20 +02:00
63f24c7b59 New module worldcup 2014-07-05 02:27:22 +02:00
971e3c882d Fix wiktionary display 2014-07-04 02:13:26 +02:00
3e014d4ebe Alias: add commands to list aliases and variables; fixes #49 2014-06-30 10:59:25 +02:00
05a148fef4 Web tool now handles HTTPS connections, content is decoded following given charset header 2014-06-24 18:21:19 +02:00
7575c41645 New module SMS using new Free Mobile API 2014-06-14 00:12:45 +02:00
31fe146c6a Fix !eventslist action, closes #44 2014-06-06 16:18:31 +02:00
6755b88229 Fix spell module with UTF-8 chars; fixes #21 2014-05-27 16:24:45 +02:00
f97bd593af Fix bug when no module configuration is present 2014-05-27 16:06:47 +02:00
be1beec980 Networking module: fix regression on traceurl command 2014-05-05 20:05:58 +02:00
8a3037d288 Weather module: add a command to display stored city coordinates; fixes #40 2014-05-05 18:45:13 +02:00
0cceb8226d Networking module: display error message when API returns error 2014-05-05 18:25:33 +02:00
02d0d91df9 Networking module: avoid error on unexiststant registrant, administrativeContact or technicalContact 2014-05-05 17:52:55 +02:00
34188c71a5 Networking module: Add W3C validator; fixes #4 2014-05-05 12:12:19 +02:00
d549d91aca Networking module: add Whois command; related to issue #4 2014-05-05 11:39:04 +02:00
14e2c59064 Weather module: localize time with timezone; fixes #35 2014-05-05 10:40:07 +02:00
da84a493ed Networking module: add user-agent on isup request; fixes #39 2014-05-05 09:55:47 +02:00
aa285b1393 Event module: remove vacs command 2014-05-03 01:06:37 +02:00
a0fca91d06 Reddit module: Show url in response 2014-05-02 00:27:42 +02:00
818d8b754c New module: reddit that display information about a subreddit; close #37 2014-05-01 23:44:26 +02:00
471e40aed1 YCC module: never fail, even if bad URL is given 2014-05-01 23:36:21 +02:00
b925cee08a New module: weather; close #7 2014-04-30 22:57:28 +02:00
d38ebd372c DDG module: add examples on !ud commands 2014-04-22 17:23:03 +02:00
08f3a31e88 DDG module: new !urbandictionnary command that display results from Urban Dictionnary website; closes #29 2014-04-22 17:19:10 +02:00
eefcf96516 DDG module: display redirect link on bang request 2014-04-22 17:00:47 +02:00
073f34af26 Alias module: handle special variable like $1, $2, ... 2014-03-03 20:26:34 +01:00
85fb612475 Chronos: fix display order 2014-03-03 20:25:00 +01:00
Némunaire
d88146780f Spell module: fix encoding problem 2014-02-26 18:51:12 +01:00
Némunaire
ad7c8e6fce Syno module: improve general stability 2013-03-20 15:08:24 +01:00
Némunaire
cec57b69ed Add save command in prompt, fixed issue #28 2013-03-20 09:56:50 +01:00
Némunaire
aced38a44b WatchWebsite module: Assumes that empty content is not normal 2013-01-25 17:47:11 +01:00
Némunaire
a11c617ade Tools.web: use urllib instead of custom urlparser 2013-01-24 14:18:24 +01:00
Némunaire
b9d7eda336 Networking module: improve curl stability 2013-01-15 11:24:01 +01:00
Némunaire
b0d0b4a234 Man module: display whatis by default, use english location instead of user one 2013-01-15 11:15:25 +01:00
Némunaire
dfa4c49d68 New module rnd to make choice 2013-01-07 12:22:07 +01:00
Némunaire
81db3de0df Networking module: add a !curl command to display a webpage; issue #4 2013-01-04 18:09:29 +01:00
Némunaire
418e6ba32a Chronos module: code refactoring to work with events interface 2013-01-04 18:07:18 +01:00
Némunaire
309615cdc7 New module Chronos to look at next courses 2013-01-03 18:17:02 +01:00
Némunaire
a7fd178a41 New module man that prints man pages on IRC 2013-01-02 15:49:26 +01:00
Némunaire
1b05b965ed Spell module: remember correct and bad spelling by people 2013-01-02 15:48:42 +01:00