3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00
Commit Graph

105 Commits

Author SHA1 Message Date
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
27ace10fe9 new outputprefixes 2013-05-22 17:37:07 +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
Luke Slater
5fd7e2ca50 Merge pull request #451 from zuzak/borkborkbork
Add tracking for a certain hash
2013-05-20 08:27:10 -07: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
4e53a06e75 Merge github.com:reality/depressionbot into database 2013-05-20 15:05:30 +00:00
reality
3849df921c update docs for imgur with web routes [#445] and config options [#352] 2013-05-19 10:48:24 +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
reality
d285aab97c Merge branch 'borkborkbork' of https://github.com/zuzak/depressionbot 2013-05-17 13:53:21 +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
df2b484a66 merge 2013-05-17 13:32:41 +00:00
reality
f4f34d2852 documentation for imgur [#352] 2013-05-17 11:28:04 +00:00
reality
f98f7e435a that should be all of the dependencies [#413] 2013-04-22 16:20:17 +00:00
reality
5eba864f22 fix imgur for now 2013-04-22 14:38:03 +00:00
reality
75b160f161 merge 2013-04-19 23:37:26 +00:00
Niels Simenon
ff52d7e6f1 Added Dutch translations. 2013-04-20 00:05:46 +02:00
reality
146e7afa5b Don't shit out if there's no highscore quote category 2013-04-19 17:06:19 +00:00
Douglas Gardner
eb1d12ec83 Add hidden counter to imgur
+ Add a counter to the random imgur page.
+ Added functionality to the ``c`` key to toggle the counter display.
+ Added functionality to the ``r`` key to reset the counter to default.
+ Added a new configuration option for a quote category to get the
  default 'highscore' from.

  This commit adds a small decreasing counter to the corner of the
  screen. Hidden by default, press ``c`` to toggle it.

  The counter will begin at highscore + 1, and will decrease with every
  new image. This is intended to be used during contests to see how many
  images one can cycle through before, for example, finding a picture of
  a cat. The counter can be reset using the ``r`` key.

  The highscore is automatically set at page load to the most recent
  quote added to the category specified in the configuration option.
  Therefore it is important that only numeric data is placed in that
  particular quote.

  The score will not reset to a new highscore automatically, and nor
  will a new highscore update the quote category.
2013-04-19 00:02:39 +00:00
reality
4b935bcd9b config syntax 2013-04-16 21:22:23 +00:00
reality
2b2d256081 merge 2013-04-16 21:19:11 +00:00
Douglas Gardner
33e2e12086 recommit api key 2013-04-16 21:08:00 +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
e7540a3507 stats on web 2013-04-16 18:59:29 +00:00
reality
dcf03287f8 forgit config file 2013-04-16 17:59:41 +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
Thomas Menari
b7dad66a26 random imgur 2013-04-15 02:10:29 +01: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
reality
841ebc3f21 auto handlers for imgur links [#350] 2013-04-13 00:42:20 +00:00
reality
a9acaeaebd show info about ~ri images [#350] 2013-04-12 23:44:19 +00:00
reality
270ae138bf Initial API function for imgur detail getting [#350] 2013-04-12 23:27:31 +00:00
Matt Molyneaux
3d918414b8 Put the colon next to the name, moron 2013-04-11 20:33:33 +01:00
Matt Molyneaux
ee06dc634b I warned you about porn bro, I told you dog!
I told you man

I TOLD you about porn!
2013-04-11 20:25:18 +01:00
reality
8cd703940f ~ri instead of ~randomimgur 2013-04-10 20:36:26 +00:00
reality
8f977f8923 faster and includes uppercase characters (which are apparently the larger images) 2013-04-10 20:14:54 +00:00
reality
d82108de83 imgur better 2013-04-10 20:08:04 +00:00
reality
88037de55e prevent returning deleted imgurs 2013-04-10 20:05:57 +00:00
reality
4fa870e34e Initial imgur module with ~randomimgur command 2013-04-10 19:43:11 +00:00