Richard Lewis
790e6586b4
Improve string formatting
8 years ago
Richard Lewis
d28156c99a
Pass clientID directly
8 years ago
Richard Lewis
84235d0794
Inline base URL
8 years ago
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
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
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
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
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
Kegan Dougal
cbc30321a4
Use github.com/matrix-org/util
8 years ago
Kegan Dougal
d6d19a8f6c
Add GH Webhook test
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
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
Kegan Dougal
8d75494c19
Also log when clients are created
8 years ago
Kegan Dougal
efe04d7917
Keep doing the Inviter hack when joining rooms so non-ops can kick the bot they invited
8 years ago
Kegan Dougal
e94ab0d18e
And log when we stop
8 years ago
Kegan Dougal
9708e6351b
Stop syncing on nil errors
8 years ago
Kegan Dougal
60429f32b3
Bug fixes
8 years ago
Kegan Dougal
b98e878227
Use gomatrix
8 years ago
Kegan Dougal
7522ddf1a4
Explain why no ParseURL
8 years ago
Kegan Dougal
c4e98238d8
uniq prior to length checks for accuracy
8 years ago
Kegan Dougal
1722871345
Don't use gofeed.ParseURL
It leaks the response because it doesn't close the `resp.Body` on non-2xx.
8 years ago
Kegan Dougal
332b451d77
Redo how recent GUIDs are calculated
This is an attempt to fix #133 .
Previously, we just clobbered the recent GUIDs with the lastest response
every single time, assuming that Atom/RSS feeds would consistently return the
same items. This appears to not be the case. In the wild, the number of items
returned on a single request can vary (sometimes even being 1 or 2 when usually
it is 50!).
This patch alters *how many* and *which* GUIDs we keep between requests, in an
attempt to prevent sending old news for buggy RSS feeds.
8 years ago