3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00
Commit Graph

67 Commits

Author SHA1 Message Date
reality
506ca60682 onyl accept ~ri images bigger than 300x300 2013-08-21 14:55:44 +00:00
reality
914e5677b8 Full set of Italian translations from gian-maria.daffre@giammi.com 2013-07-28 12:23:06 +00:00
reality
e3b35adb1c ah just remove that shit for now 2013-07-27 23:11:02 +00:00
reality
ba9921919f fix imgur config pointer 2013-07-27 23:08:32 +00:00
reality
4ae10a2b26 link handlers callback result instead of event.reply it[Close #536] 2013-07-25 21:56:44 +00:00
iceTwy
e29927b478 French translation 2013-07-11 03:29:02 +02:00
reality
eafc2dbee1 fix config pointers in admin and imgur [#489] 2013-06-05 20:13:40 +00:00
reality
ec0c4ad781 merge of terror #2 2013-06-01 17:57:07 +00:00
Roi
505d69ef73 German translations 2013-06-01 16:16:24 +00:00
reality
a01438a879 worst merge 2013 eu 2013-06-01 15:55:09 +00:00
Owen Dyckhoff
f576a9074a Completed imgur module Welsh translations in strings.json 2013-05-28 21:57:20 +02: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
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