Commit Graph

185 Commits (2fce62c9a7ffacf2f01ac2bb685d2bd84aa78f12)

Author SHA1 Message Date
Robert Gerus 2fce62c9a7 Add coveralls.io badge.
It doesn't look very good yet.
2015-12-06 12:57:23 +01:00
Robert Gerus 960292f895 Try again with overalls. 2015-12-06 12:50:20 +01:00
Robert Gerus ace9844824 Enable coveralls.io integration. 2015-12-06 12:29:51 +01:00
Robert Gerus 6c413653aa Don't always spoil the link contents with title. 2015-12-06 11:58:24 +01:00
Robert Gerus f837889e2a Missing copyright header. 2015-12-05 10:23:17 +01:00
Robert Gerus 24965d6756 Attempt to recode iso8859-2 title strings.
Fixes #25
2015-12-05 04:55:54 +01:00
Robert Gerus 8906d2ec86 Increase tls and http timeout.
It doesn't hurt us, because it's running in a goroutine anyway.
Fixes #26.
2015-12-05 04:20:02 +01:00
Robert Gerus a24f4bf592 Rename variables and fix a memleak.
You really shouldn't use single-letter variable names.
Also, it turns out that xpaths from gokogiri need to be freed.
2015-12-05 03:39:49 +01:00
Robert Gerus 9a406e0faf Urldecode links returned from google search.
Fixes #24.
2015-12-01 10:04:49 +01:00
Robert Gerus c56a9290d1 Don't reconnect furiously. 2015-11-29 21:21:56 +01:00
Robert Gerus 355b702da6 Hopefully fix memleak in httpGet. 2015-11-29 21:16:47 +01:00
Robert S. Gerus de569529f0 Merge pull request #22 from arachnist/missing-plugins
Added missing plugins.
2015-11-29 21:12:54 +01:00
Robert Gerus bbd552abab Add jan plugin. 2015-11-29 21:10:38 +01:00
Robert Gerus 57c9e27977 Add "papiez" plugin. 2015-11-29 20:45:38 +01:00
Robert Gerus f19d8bc78c Add readLines helper.
It reads lines from file to []string slice.
2015-11-29 20:45:03 +01:00
Robert Gerus 3eabfde506 Add :pick plugin. 2015-11-29 19:44:31 +01:00
Robert Gerus a4eda1468d Update bonjour and cycki plugins. 2015-11-29 17:46:29 +01:00
Robert Gerus 7dee9b445f Fix url building in bonjour.go 2015-11-29 17:14:40 +01:00
Robert Gerus 0d055fdb49 Fix cycki message. 2015-11-29 17:14:40 +01:00
Robert Gerus 32e7422459 Add proper cycki plugin. 2015-11-29 17:14:40 +01:00
Robert Gerus 57280448c2 Add cycki plugin. 2015-11-29 17:14:40 +01:00
Robert Gerus dbe698ba3f Add bonjour plugin. 2015-11-29 17:14:40 +01:00
Robert S. Gerus c837aa9cfe Merge pull request #21 from arachnist/remove-sender-coroutine
Remove sender coroutine.
Fixes #20 and #18.
2015-11-29 17:07:20 +01:00
Robert Gerus f8cffdcd44 Fix tests for bot package. 2015-11-29 16:58:01 +01:00
Robert Gerus ba55cda22b Fix tests for irc package on legacy go. 2015-11-29 16:31:01 +01:00
Robert Gerus 91dd783b6b Fix tests for irc package. 2015-11-29 16:29:30 +01:00
Robert Gerus bae1d8c427 Adjust bot package to changes in irc package.
Plugins work now. Tests don't, yet.
2015-11-29 15:50:31 +01:00
Robert Gerus 30513fc0d5 Make irc.Sender a function instead of coroutine.
Also, remove two channels that were used with this coroutine.
This patch does not contain the necessary changes in bot package.
2015-11-29 14:34:09 +01:00
Robert S. Gerus ca3d3a2cc8 Merge pull request #16 from arachnist/google
Add "google" plugin.
2015-11-25 15:02:53 +01:00
Robert Gerus c5ec7e9c07 Add "google" plugin. 2015-11-25 14:56:59 +01:00
Robert S. Gerus 2145c7d276 Merge pull request #14 from arachnist/identify
Check on demand if person is identified.
2015-11-23 19:35:29 +01:00
Robert Gerus 07a3b07e03 Check on demand if person is identified.
Works with freenode services. Might possibly crash somewhere else…
2015-11-23 19:16:35 +01:00
Robert S. Gerus 3fecebc78a Merge pull request #13 from arachnist/config-LookupInt
LookupInt function in config.
2015-11-23 18:12:24 +01:00
Robert Gerus 1edaac90ac Add LookupInt interface to config.
Not a pretty addition, because javascript, and therefore json, only has floats,
so the interface{} is first casted onto a float64 and then an int.
2015-11-23 18:07:06 +01:00
Robert Gerus 7b85c167f0 Preliminary version. 2015-11-23 17:53:08 +01:00
Robert Gerus 1cd5057bb0 Rounding to seconds makes more sense. 2015-11-22 11:53:13 +01:00
Robert Gerus f3a6400620 Fix crash 2015-11-22 11:42:20 +01:00
Robert S. Gerus aa54f36242 Merge pull request #12 from arachnist/seen
Add "seen" plugin.
2015-11-22 11:38:56 +01:00
Robert Gerus 449fbc99c5 Added formatting. 2015-11-22 11:34:28 +01:00
Robert Gerus 294fb3fdf8 Fix a crash in httpGetXpath()
doc, err := gokogiri.ParseHtml(buf) can leave both err and doc nil. Added a
check condition for that.
2015-11-22 01:59:57 +01:00
Robert Gerus 5692d3111a Prefix "seen" messages. 2015-11-21 12:43:44 +01:00
Robert Gerus 3ef8b9aeca Initial version of seen plugin.
Doesn't format the output yet, and has several other shortcomings.
2015-11-21 05:47:14 +01:00
Robert Gerus 130b600923 Lock configuration until file list builder is set. 2015-11-21 02:19:10 +01:00
Robert Gerus 771adfe1e6 Add json tag and rename field to silence golint. 2015-11-20 12:41:47 +01:00
Robert Gerus 9bec013fe7 Don't use bytes.Buffer when not needed. 2015-11-20 10:27:09 +01:00
Robert Gerus 970883081b Trim characters prefixing urls. 2015-11-20 10:07:08 +01:00
Robert Gerus f05a9e1e11 Silence golint and go vet, mostly. 2015-11-20 09:53:54 +01:00
Robert Gerus 1c19411c22 Don't post titles for things that don't have them. 2015-11-19 23:40:55 +01:00
Robert Gerus 9e5bac3e6f Checkinator is now working correctly. 2015-11-19 22:39:24 +01:00
Robert Gerus 3418c0798d Initial version of checkinator 2015-11-19 20:33:26 +01:00