3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
Go to file
Douglas Gardner 1a2595aaf2 increment size with image count
This commit adds functionality to the loading callout in the imgur
module.

The size of the font used in the loading callout now increases in a
linear fashion in proportion to the number of images viewed in a row.

The size starts at 12px, and will increase to 72px at image 2000, with
round figures at most "standard" font sizes.

This is largely an experiment to see what it looks like: it might not be
as nice looking now that the callout contains extra information (such as
the view count). It may be worth experimenting with just increasing the
count number and leaving the "a w with x views (y*z)" message at a
static size, or perhaps by editing the colour variant, or even the
position on the screen.

I really just wanted some feedback to make it a bit more interesting for
a heavy user that has reached high numbers of images.

Some figures:
 * 12px is reached after 0 images
 * 14px is reached after 66 images
 * 16px is reached after 133 images
 * 18px is reached after 200 images
 * 21px is reached after 300 images
 * 24px is reached after 400 images
 * 36px is reached after 800 images
 * 48px is reached after 1,200 images
 * 60px is reached after 1,600 images
 * 72px is reached after 2,000 images
 * 144px is reached after 4,400 images.
2013-04-16 17:22:09 +00:00
jsbot@11cbb75b50 bump jsbot 2013-04-14 15:09:45 +00:00
modules Show info about the imgur url on the random page 2013-04-16 16:42:57 +00:00
public increment size with image count 2013-04-16 17:22:09 +00:00
views increment size with image count 2013-04-16 17:22:09 +00:00
.gitignore Module specific config. Allows specify dbKeys to ensure default objects there for use. 2012-12-12 18:07:08 +00:00
.gitmodules add zuzaks github module 2013-01-28 00:44:52 +00:00
config.json.sample adding link to default modules 2013-03-18 21:53:08 -04:00
install.sh making sure node.js and npm are installed before running install.sh 2013-03-19 01:16:26 -04:00
LICENCE LICENCE Housekeeping 2013-01-28 01:54:39 +00:00
README.md include underscore in dependencies 2013-01-13 17:48:20 +01:00
run.js merge clash 2013-03-22 10:49:22 +00:00
snippets.js Remove object prototype extensions in master [#135] 2013-02-12 18:34:36 +00:00
strings.json add web api function for getUrl instead of string in base, use externalAddress optional config key to define external behaviours [#264] 2013-04-12 22:53:45 +00:00
VERSION start 0.4 dev 2013-01-28 01:50:18 +00:00

Depressionbot IRC Bot

Introduction

Depressionbot is an IRC bot which aims to be the fanciest IRC bot around - On the general standard of software fanciness, dbot is statistically rated as being 82% the same as bathing in fine, fine grape juice.

Please note that this documentation is not complete and is a work in progress, given I started it rather a long time after I began development of the project. Please dont judge me too harshly for this as I am, in fact, mildly allergic to writing documentation.

Requirements:

  • Node JS
  • JSBot, a Javascript library which handles the IRC protocol
  • Underscore JS library
  • Various modules have their own requirements also.

External Modules

JSBot and externally developed modules can be imported by running the following commands in the cloned repository:

git submodule init
git submodule update