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

2302 Commits

Author SHA1 Message Date
Douglas Gardner
fb24c4d8ee Add 5s timer functionality to random imgur
* Add [.] key to enable timer
* "Loading..." message turns red and italic when timer is active
* Press [.] key to disable timer.

After a bit of experimentation, 5s seemed optimal: 2 seconds would cause
the imgur api to trip if the app is used more than once at a time; 5
seconds is enough time to view the image without feeling particularly
slow.

Maximums:
 1 images in 5 seconds
3600 images in 5 minutes
43200 images in an hour
2013-05-20 11:25:27 +00:00
reality
329a0df7fb Merge branch 'master' of github.com:reality/depressionbot 2013-05-19 10:49:02 +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
reality
449ad684ad More quotes docs updates [#351] 2013-05-17 17:57:21 +00:00
reality
e8c2db5488 Update documentation for users [#351] 2013-05-17 17:23:39 +00:00
reality
5bcd1d9c27 remove chancein 2013-05-17 17:04:55 +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
6dfa5de478 youare doesnt need snippets [#135] 2013-05-17 17:04:19 +00:00
reality
1e52809e06 nickserv thing 2013-05-17 16:57:47 +00:00
reality
ffec54ffe2 reload 2013-05-17 16:33:04 +00:00
Luke Slater
8f2cc5bd4d Merge pull request #303 from zuzak/rc
Add UDP packet functionality
2013-05-17 09:30:53 -07:00
reality
1e01aeb146 load the right route api 2013-05-17 14:15:59 +00:00
reality
0a8ad1e468 syntax error 2013-05-17 14:15:15 +00:00
reality
5da4d88ad9 api root in onLoad 2013-05-17 14:13:42 +00:00
reality
1127d11a0e undo thing 2013-05-17 14:10:43 +00:00
reality
086d4be6ab i think adding a this.pages breaks it 2013-05-17 13:58:44 +00:00
reality
f69d7058ba merge 2013-05-17 13:54:17 +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
Luke Slater
8d876d8d03 Merge pull request #429 from zuzak/borkborkbork
Add counter for Facebok Monopoly Men
2013-05-17 06:44:34 -07:00
reality
df2b484a66 merge 2013-05-17 13:32:41 +00:00
reality
15fd9c32e4 Initial go at [#448] 2013-05-17 13:29:28 +00:00
reality
33f8b21edd config rather than currentOption 2013-05-17 12:02:38 +00:00
reality
f4f34d2852 documentation for imgur [#352] 2013-05-17 11:28:04 +00:00
reality
da3e99dd90 ffs 2013-05-17 10:00:39 +00:00
reality
7713169721 help for api module [#352] 2013-05-17 09:59:25 +00:00
reality
28825fd22b clean [#261] up enough for 0.4 2013-05-17 09:06:55 +00:00
reality
53b7bbe5a8 kickcount and kickstats do not need elevated access [#261] 2013-05-17 08:58:11 +00:00
reality
be7d5a41cd use current channel if no admin channel defined [#261] 2013-05-17 08:52:24 +00:00
reality
2b57300f65 Fix [#443] 2013-05-17 08:15:16 +00:00
reality
9d03364a23 merge [#439] 2013-05-17 07:40:46 +00:00
reality
be23d97293 [ 2013-05-17 07:35:21 +00:00
reality
eac0083bea Build help link automatically [#439] 2013-05-17 07:34:25 +00:00
reality
84bd092bae Fix [#442] 2013-05-17 07:04:57 +00:00
reality
cb0956405f Merge git://github.com/reality/depressionbot into database 2013-05-17 07:01:29 +00:00
Sam Nicholls
8f9b44d4f0 Prevent link from poll view to poll list 404 [Fix #440] 2013-05-14 18:26:21 +02:00
reality
1cc99d02e1 ] 2013-05-13 18:21:50 +00:00
reality
ccc962d9f2 update admin docs [#351] 2013-05-10 18:38:57 +00:00
reality
41ec896dfc Merge git://github.com/reality/depressionbot into database 2013-05-10 18:13:41 +00:00
reality
0259584c25 savemodules command [#438] 2013-05-10 18:12:40 +00:00
reality
91f2730785 favicon [#416] 2013-05-10 12:38:14 +00:00
reality
9fc95cdd04 flashy dox[#351][#352] 2013-05-10 12:11:32 +00:00
reality
15e6b039b9 add link to nickserv dox[#352] 2013-05-10 11:48:52 +00:00
reality
cef60ccb64 docs for nickserv module [#351][#352] 2013-05-10 11:45:38 +00:00
reality
b46f72a409 nban should work goodly now 2013-05-07 14:23:37 +00:00
reality
cdfe353b94 more shit i cant be bothered to finish yet on [#261] 2013-05-06 21:56:45 +00:00
reality
80b586ba60 Fix access control [Close #436] 2013-05-06 21:49:45 +00:00
reality
e8537a93b2 Remove leading slash in url api maker [#435] 2013-05-06 20:09:19 +00:00
reality
5b0f4d3ae8 finish off poll using new users api [#434] 2013-05-06 20:00:31 +00:00