3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
Commit Graph

60 Commits

Author SHA1 Message Date
reality
96369ab604 split on \n 2013-08-25 20:58:11 +00:00
reality
69f061c671 pick random result for ~imgur 2013-08-25 20:45:47 +00:00
reality
cb38352519 remove imgur from the search terms lol (fix regexen) 2013-08-25 19:07:11 +00:00
reality
ab9cfb1469 fix for not found 2013-08-25 19:04:42 +00:00
reality
760780537a imgur keyword search 2013-08-25 19:02:34 +00:00
reality
a40abd4bbd and trim it 2013-08-24 13:31:12 +00:00
reality
4f4cdea951 this thing 2013-08-24 13:30:17 +00:00
reality
7eec11197a thingy thingy 2013-08-24 13:28:46 +00:00
reality
165c9491a9 herpo derpo 2013-08-21 21:44:10 +00:00
reality
509911aae0 reset that shit 2013-08-21 15:38:43 +00:00
reality
a9fdd82911 how about this 2013-08-21 15:32:32 +00:00
reality
4d130df390 mroe thingy 2013-08-21 15:27:30 +00:00
reality
284a316cd5 thing 2013-08-21 15:26:16 +00:00
reality
fc4537bcea debugging 2013-08-21 15:22:05 +00:00
reality
0efa8d0217 that might do it 2013-08-21 15:18:08 +00:00
reality
2c988b0f77 i love shots in the dark 2013-08-21 15:13:58 +00:00
reality
71b7b3c570 that might do it 2013-08-21 15:11:06 +00:00
reality
f2755468e0 reality is a dumbass 2013-08-21 14:58:43 +00:00
reality
506ca60682 onyl accept ~ri images bigger than 300x300 2013-08-21 14:55:44 +00:00
reality
4ae10a2b26 link handlers callback result instead of event.reply it[Close #536] 2013-07-25 21:56:44 +00:00
reality
eafc2dbee1 fix config pointers in admin and imgur [#489] 2013-06-05 20:13:40 +00:00
reality
150821cbb3 fix db pointer for imgur olDB 2013-05-28 17:40:25 +00:00
reality
e7605e0c0e Merge git://github.com/reality/depressionbot into database 2013-05-26 17:20:49 +00:00
reality
0cb8147abb improve imgur linkhandler efficiency by using only one callback and link name feature [#475] 2013-05-26 17:19:25 +00:00
reality
3afb53939a Get gallery info depending on if it is an image or album [#475] 2013-05-26 17:10:21 +00:00
reality
18e6053399 Support for imgur album data [#475] 2013-05-26 16:55:45 +00:00
reality
712db49274 Merge github.com:reality/depressionbot into database 2013-05-25 21:05:45 +00:00
reality
9792daf669 syntax error.. 2013-05-23 12:16:43 +00:00
reality
06c14d4fc5 imgur info string [#462] 2013-05-23 12:15:25 +00:00
reality
11b23ffc85 fix for the bug with infostring i introduced fixing undefinedxundefined 2013-05-21 16:05:20 +00:00
reality
0bc0a1bdb7 quote add for db branch in imgur 2013-05-20 15:40:13 +00:00
reality
48ce88490d Merge github.com:reality/depressionbot into database 2013-05-20 15:35:42 +00:00
reality
648b44b298 fix add on empty cat 2013-05-20 15:35:01 +00:00
reality
b3d2b89734 Merge github.com:reality/depressionbot into database 2013-05-20 15:27:22 +00:00
Douglas Gardner
be1ea0acde Adding config option to auto-add hashes to qdb
This should be useful for keeping track of certain massively duplicated
images.
2013-05-20 15:18:19 +00:00
reality
3541534b76 this should fix [#453] 2013-05-19 09:52:14 +00:00
Douglas Gardner
5fd2a3923f Add tracking for a certain hash
This is a fairly simple hack to record any imgur URLs discovered via the
random image facility that match a certain MD5 hash.

A known bug with this commit is that it may crash the bot the first time
the bot tries to add to the database, as the category is undefined. This
can be easily worked around by ensuring that the category is
prepopulated with at least one image before letting the bot add
automatically.

An issue should probably be opened to merge this code into something
reading hashes from a configuration file: it's pretty hardcoded at the
moment.
2013-05-17 17:04:53 +00:00
reality
ffec54ffe2 reload 2013-05-17 16:33:04 +00:00
Douglas Gardner
7578382bee Add basic hashing functionality to imgur
* There is probably a much nicer way of doing it (perhaps a better
  hash)?
* Added a counter to the imgur random page counting the number of
  [Facebook Monopoly Men](http://i.imgur.com/3Tt6N.gif).
* Added the md5sum of the current image to the getRandomImage api call.
* Future functionality might be storing every image md5 in an array and
  counting duplicates, instead of the current check-against-known-dupes.
2013-05-17 13:50:35 +00:00
reality
5eba864f22 fix imgur for now 2013-04-22 14:38:03 +00:00
reality
2b2d256081 merge 2013-04-16 21:19:11 +00:00
Douglas Gardner
2b9dbea855 improve imgur module
* Added config.json to the party
* Moved API key (client ID) to the configuration file
* Added image link to random imgur image page
* Minimised loading message
* Added fade to loading message
* Added count to title attribute of webpage
* Removed font-size increase
* Added placeholders
2013-04-16 21:03:50 +00:00
reality
2f11e9fa0e count api/http/images generated by imgur 2013-04-16 17:58:37 +00:00
reality
3b5ef9f55e Show info about the imgur url on the random page 2013-04-16 16:42:57 +00:00
Douglas Gardner
0f9da5c40e replace "is" with pair of brackets (imgur)
What imgur calls "title" is possibly better described as a caption. Most titles in imgur's gallery are full sentences, making the current behaviour of "xxx is yyy" fall flat, as the resulting string does not have satisfactory grammar.

This commit changes the functionality from "[foo is bar]" to "[foo][bar]".

Untested.
2013-04-15 01:59:00 +00:00
reality
a628d12361 Initial API module [#361] 2013-04-14 17:21:24 +00:00
Douglas Gardner
7d0162afff slim down the normal announcement
Specifying that images are non-animated each time isn't really required, and causes the string to be rather long. Stripping this implicit property makes it look a bit nicer.
2013-04-13 22:40:35 +00:00
reality
a6ca9bb9c8 fix thing 2013-04-13 18:37:47 +00:00
reality
8151122b80 oh, handler was checking existence of matches[2] for some stupid reason [Close #353] 2013-04-13 15:41:13 +00:00
reality
8a2dd076a4 show width/height of imgur image too [#350] 2013-04-13 15:33:43 +00:00