Richard Lewis
592b7830e3
Refactor to reduce cyclomatic complexity
8 years ago
Richard Lewis
47060231d1
Add HTML2text library. Fix extract formatting
8 years ago
Richard Lewis
e8597f40a8
Added wikipedia bot integration
8 years ago
Richard Lewis
5f1130608b
Wikipedia config sample
8 years ago
Richard Lewis
3f81304076
Removed redundant field name and type from implemented field comments
8 years ago
Richard Lewis
4e461c16e7
Fix typo
8 years ago
Richard Lewis
a71efc96f0
Improve function names
8 years ago
Richard Lewis
c211f4e4c1
Removed old comment -- error was due to non image file type (HTML)
8 years ago
Richard Lewis
aa3454f2c8
Inline redundant variable
8 years ago
Richard Lewis
c30a9f87b3
Fix response code check
8 years ago
Richard Lewis
f1da426545
Fix google bot tests
8 years ago
Richard Lewis
d51c28cf8b
Fix tests and underlying bugs
8 years ago
Richard Lewis
80e1637238
Fix struct initialisation
8 years ago
Richard Lewis
5bb065f2ca
Merge branch 'master' of github.com:matrix-org/go-neb into imgur
8 years ago
Richard Lewis
0d2593b152
Fix imgur bot tests
8 years ago
Richard Lewis
77e5f692a2
Return a random image result. Clean up some commented code
8 years ago
Richard Lewis
8479782cad
Check that response is actually an image
8 years ago
Richard Lewis
024a784412
Fix data structure
8 years ago
Richard Lewis
33c75423e0
Add auth header
8 years ago
Richard Lewis
f8e4bce075
Fix data object check
8 years ago
Richard Lewis
823d3277c7
Handle image search results
8 years ago
Kegsay
eac024eabb
Merge pull request #156 from matrix-org/kegan/httpcache-update
Update httpcache to fix memory leak
8 years ago
Kegan Dougal
ca451098b2
Update httpcache to fix memory leak
8 years ago
Richard Lewis
4042324a40
Merge pull request #155 from matrix-org/google
Google image search bot
8 years ago
Richard Lewis
4e00142231
Merge branch 'google' of github.com:matrix-org/go-neb into imgur
8 years ago
Richard Lewis
07d27b67b1
Fix number of commands test
8 years ago
Richard Lewis
445c277bd3
Add default command route handler
8 years ago
Richard Lewis
4eeb46d6b9
Search for large images only. Fix httpClient reference. Fix logging when no error and no results
8 years ago
Richard Lewis
51b7f1ec5f
Imgur data model updates -- tests broken
8 years ago
Richard Lewis
6ba9cfb63e
Add cx paramater to sample config
8 years ago
Richard Lewis
b726158ac4
Fix message types
8 years ago
Richard Lewis
c46ad2e09b
Clean up named return value
8 years ago
Richard Lewis
c22c94b1c8
Cleaned up redundant variable
8 years ago
Richard Lewis
3ae13428d8
Moved google custom search engine ID in to service config. Cleaned up comments
8 years ago
Richard Lewis
333161d2e9
Improve command path parsing
8 years ago
Richard Lewis
19845fcc25
Redacted invalid auth keys. Comment / logging cleanup and formatting.
8 years ago
Richard Lewis
0f1ee35418
Check that query string is valid. Disable command execution test (currently broken)
8 years ago
Richard Lewis
b005c4fc83
Google image search bot
8 years ago
Kegsay
89056ebf9e
Merge pull request #152 from matrix-org/kegan/matrix-org-util
Use github.com/matrix-org/util
8 years ago
Kegan Dougal
3a7d5f84da
Bump requirements to Go 1.7 for net/http.Request.Context()
8 years ago
Kegan Dougal
cbc30321a4
Use github.com/matrix-org/util
8 years ago
Kegan Dougal
d6d19a8f6c
Add GH Webhook test
8 years ago
Kegsay
ae5b0df563
Merge pull request #147 from matrix-org/kegan/fix-log-field-names
Do not use log field names 'level', 'msg' or 'time'
8 years ago
Kegan Dougal
356ada4add
Do not use log field names 'level', 'msg' or 'time'
By default logrus uses these keys. If we also define one, logrus detects this
and then works around by adding 'fields.whatever' as the key name. However,
in the process of adding the key to the `Fields` it causes a race condition
which can crash the process with concurrent map r/w errors.
8 years ago
Kegsay
c7a127c2d8
Implement slackapi Service ( #116 )
8 years ago
Kegsay
5abfa281f5
Merge pull request #142 from matrix-org/kegan/gh-help
Add "!github help" and fix command selection bug
8 years ago
Kegan Dougal
96109afd41
Add "!github help" and fix command selection bug
The last command would always be chosen due to pointer fail.
8 years ago
Kegan Dougal
34ea2d06ce
Give a more helpful error message if a service is created with an unknown user ID
8 years ago
Kegsay
b1fe968f83
Merge pull request #137 from matrix-org/kegan/gomatrix
Use gomatrix
8 years ago
Kegan Dougal
8d75494c19
Also log when clients are created
8 years ago