3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00
Commit Graph

1066 Commits

Author SHA1 Message Date
Douglas Gardner
ad3e597ad2 update translation information
* Remove commented out code
* Covert translationProgress from an array to an object
* Enlargen progress meters
* Add translation table
2013-04-21 14:28:33 +00:00
Douglas Gardner
47d5404f38 Add beginnings of translation progress API
* Add totally legit and optimised code to find the number of strings in
  each language.
* Add this as an API call
* Add strings for ``na'vi``, ``es`` and ``nl`` for their own language
  names
* Optimise CSS a bit
* Add classes for the languages, for testing purposes
2013-04-21 12:18:24 +00:00
Douglas Gardner
e5b2f8c8f2 Add list of authors; shrink tag sizes 2013-04-21 05:06:26 +00:00
Douglas Gardner
0b44f7afb8 add WIP
m""                #
 mm#mm  m   m   mmm   #   m          mmm    mmm   m   m  m mm    mmm
   #    #   #  #"  "  # m"          "   #  #   "  "m m"  #"  #  #"  "
   #    #   #  #      #"#           m"""#   """m   #m#   #   #  #
   #    "mm"#  "#mm"  #  "m         "mm"#  "mmm"   "#    #   #  "#mm"
                                                   m"
                                                  ""
2013-04-20 23:27:50 +00:00
Douglas Gardner
9d727a211e Complete project module (for now)
- Remove unused modules from ``config.json``
* Move config list stuff from ``onLoad`` to ``api``

The api call might be useful elsewhere
2013-04-20 20:00:59 +00:00
Douglas Gardner
adcd5803b0 move some stuff to project.js 2013-04-20 17:42:34 +00:00
Douglas Gardner
95e7d0ee80 readd strings after weird git explosion 2013-04-20 00:59:31 +00:00
Douglas Gardner
f18c4d0f3a Merge branch 'master' of reality/depressionbot 2013-04-20 00:25:32 +00:00
reality
0f6a486fe7 bump stats lang 2013-04-20 00:04:28 +00:00
Niels Simenon
1e30fcfac3 Added Dutch translations for project module. 2013-04-20 01:59:48 +02:00
reality
75b160f161 merge 2013-04-19 23:37:26 +00:00
Niels Simenon
cc0e2030f0 Fixed incorrect spelling correction. 2013-04-20 00:16:58 +02:00
Niels Simenon
b857eaf426 Fixed JSON syntax threat. 2013-04-20 00:13:42 +02:00
Niels Simenon
ff52d7e6f1 Added Dutch translations. 2013-04-20 00:05:46 +02:00
Douglas Gardner
7106d4dd8b Merge branch 'master' of https://github.com/reality/depressionbot into gitstatus 2013-04-19 17:16:11 +00:00
reality
146e7afa5b Don't shit out if there's no highscore quote category 2013-04-19 17:06:19 +00:00
reality
24b7c2b6b4 merge 2013-04-19 13:41:11 +00:00
Douglas Gardner
59b97befed Merge branch 'master' of https://github.com/reality/depressionbot into gitstatus 2013-04-19 13:41:09 +00:00
reality
65302765f0 readd statos [Close #382] 2013-04-19 11:44:33 +00:00
reality
f57a91e481 remove stats [#382] 2013-04-19 11:42:00 +00:00
Douglas Gardner
bddb7ccce4 Add more configuration splurge
+ Added dependency on underscore
+ Added displaying of some configuration options for dent, link, quotes,
  report and web
+ Translated (badly) the word "Milestones"
* Translated and moved the github advert to below the milestones
2013-04-19 10:55:20 +00:00
Douglas Gardner
a61a2300ab Tidy up the project module some more
## Additions
 + Add current branch to display
 + Pass Github repo through to the page
 + Add link to source
 + Differentiate "progress bar" and "milestone" headers again
 + Add Git ``h4``, renamed "version control" because it's more interesting
   to translate
 + Add progress percentages to the progress bars

 - Remove redundant short-hash placeholder
 - Remove extraneous margins on ``ul``
 - Simplify progress calculation code

 * Change some variable names to be more forthcoming about what they
   represent
 * Fix links to the milestones
 * Fix indentation of strings.json
2013-04-19 04:28:03 +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
75657c5782 Merge branch 'master' of github.com:reality/depressionbot 2013-04-18 23:11:07 +00:00
reality
5108b811a1 bump stats 2013-04-18 23:10:59 +00:00
reality
a5d65313a0 Merge pull request #380 from zuzak/gitstatus
Translations, progress bar fallback, lowercasing
2013-04-18 11:58:31 -07:00
reality
93a483a4b3 Fix comments in project, make quotes use bot name & not fail if no quotes, reformatting[#379] 2013-04-18 18:57:04 +00:00
Douglas Gardner
c1693a768f Translations, progress bar fallback, lowercasing
+ Added translations into English for ``cy``, ``es`` and ``na'vi``,
  to ensure that all possible current languages are catered for.
+ Added ``background-color`` rule to progress bars on ``project`` to
  ensure that they are always visible.
+ Forced lowercase for more of the ``project`` page 'cos it looks nice
  (although that's an opinion).
- Removed redundant text shadow rule.
2013-04-18 18:20:58 +00:00
Douglas Gardner
fd61f09654 remove errant punctuation 2013-04-18 17:59:01 +00:00
Douglas Gardner
1534d1451c Remove cruft.
- Removed abcdef placeholder from revision total (as the commit is on
  the line below (in longform).
- Removed the English translation of English.
2013-04-18 17:36:43 +00:00
Douglas Gardner
54beca1501 Add config options; remove closed milestone count 2013-04-18 17:06:25 +00:00
Douglas Gardner
c157ddf08c Added random quote to header 2013-04-18 16:54:09 +00:00
Douglas Gardner
ef2b50863c Renamed "git" "development"
(because I thought having "Development" / "Configuration" would look
cool.
2013-04-18 16:27:07 +00:00
Douglas Gardner
f7dbe77838 Format stuff
## Changelog:

 - Remove Github status call.
 + Closed issues
 + Localised <h1>
 + Add introductory paragraph
 + Add last diff to page
 - Remove jade include to layout.jade
 + Dynamic language metadata
 + CSS
 + Progress bars

 ## Known issues:
 * Loading the closed milestones raises an exception for some reason;
   in a try-catch for now, unsure how to fix.

 ## Still to do:
 * Style loaded modules section (columns?)
 * Shrink footer
 * Do we need a shorthand hash by the revision?
 * Pull req count? (low priority)
2013-04-18 16:17:36 +00:00
Douglas Gardner
985b53c768 Add milestone
+ Bump github
+ Fix Italian translation of revision count
+ Add translation of git to strings.json
  (bonus points if you find a language that needs it)
2013-04-18 14:30:00 +00:00
Douglas Gardner
d3f8e295be convert to dbot.t; add Italian; add debugMode 2013-04-18 11:45:15 +00:00
Douglas Gardner
2a4698c982 push out WIP 2013-04-18 11:06:13 +00:00
reality
4b935bcd9b config syntax 2013-04-16 21:22:23 +00:00
reality
06054bdbf1 revert web again 2013-04-16 21:19:52 +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
9b3e3ec48e fuck web/config.json 2013-04-16 18:07:11 +00:00
reality
52e6561f51 dirty hack til i sort the thing thing out 2013-04-16 18:06:03 +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
2c03cbbbf3 revert config web change 2013-04-14 18:15:51 +00:00
reality
1a1a08768a Map request functions to extMap. getQuoteCategory external API function [#361] 2013-04-14 18:14:59 +00:00
reality
a628d12361 Initial API module [#361] 2013-04-14 17:21:24 +00:00
reality
3923a38a17 syntax error 2013-04-14 15:41:40 +00:00
reality
a30f1a6a77 include chanserv config key [#261] 2013-04-14 15:40:41 +00:00
reality
6493de52b9 update ban and quiet in kick.api to use configured chanserv [#261] 2013-04-14 15:36:48 +00:00
reality
e40a8437a3 bind the kick listener correctly to this 2013-04-14 15:00:15 +00:00
reality
1ba57f4d5d revert the fucking web config file again 2013-04-14 14:38:04 +00:00
reality
9b0c390511 include new kick commands file... [#261] 2013-04-14 14:35:49 +00:00
reality
732a1e3d3b ~ckick command to channelKick on behalf of dbot. Add countSilently kick option. [#261] 2013-04-14 14:34:30 +00:00
reality
d8267316ef Add API function for notification in report module [#360] 2013-04-14 14:33:47 +00:00
reality
b51f240061 Fix broken syntax in command changes [#359] 2013-04-14 14:29:14 +00:00
reality
5e0f126693 Do [#359] 2013-04-14 13:58:45 +00:00
reality
de2a22834d extra whatever thing good comit msg 2013-04-14 04:02:00 +00:00
reality
69c7ddde55 missing close brakcet in profiles 2013-04-14 04:00:59 +00:00
reality
e99653076d Merge branch 'master' of github.com:reality/depressionbot 2013-04-14 03:54:00 +00:00
reality
5e063ac24a fix web getUrl api function 2013-04-14 03:53:53 +00:00
Douglas Gardner
1a9f2d47ee Update strings.json 2013-04-14 01:46:39 +00:00
Douglas Gardner
b24a9b56b1 Update strings.json 2013-04-14 01:39:13 +00:00
Douglas Gardner
541e6a1798 add color to up/downvotes; move NSFW to strings
Orange isn't a color widely available on IRC clients, so green has been
substituted.

"NSFW" is fairly transcendal when it comes to languages; Catalan,
French, and German generally do not seem to localise the abbreviation.
However, it has been moved to strings.json on the off chance that a
better translation arises.

This commit has not been tested. Merge at your own risk.
2013-04-14 01:35:04 +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
c1f642084d flashy module uses new url constructor api 2013-04-13 21:08:23 +00:00
reality
cd3b468ada Show short form of link for Reddit posts [#293] 2013-04-13 20:04:06 +00:00
reality
588ea41fb7 Show comment info for reddit module [#293] 2013-04-13 19:58:05 +00:00
reality
1dada50559 Add ability to get post information and write regex (unimplemented handler for comments currently) which handles all three Things [#293] 2013-04-13 19:20:02 +00:00
reality
49beccf849 fix syntax error in web 2013-04-13 18:38:53 +00:00
reality
a6ca9bb9c8 fix thing 2013-04-13 18:37:47 +00:00
reality
234e84010c fix for reddit data with www 2013-04-13 17:57:42 +00:00
reality
a881e60c81 Basic Reddit module which posts info about Reddit links posted in the channel [#293] 2013-04-13 16:54:48 +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
0e2e6a60db Add links to existing docs in config.json files [#352] 2013-04-13 15:21:07 +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
reality
677a820638 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
reality
d8342f4489 Actually fix [#335] 2013-04-12 22:38:00 +00:00
reality
6134f97a97 spotify module uses addHandler [#344] also spaceinvader sort your bloody indentation out 2013-04-12 19:17:22 +00:00
reality
0f298bd061 Fix for the Identica bit by allowing a name argument to be passed [#344] 2013-04-12 19:11:55 +00:00
reality
5d30261770 Create addHandler API for link module and have dent use it. Removed its own listener. [#344] 2013-04-12 19:03:01 +00:00
reality
e667d95ca8 Return correct head info is related result term is given by UD [Close #341] 2013-04-12 18:33:49 +00:00
reality
3a33c2be04 option to notify voiced users with ~report [Close #348] 2013-04-12 18:31:02 +00:00
Niels Simenon
68cdf34cc3 Added multiple colors. 2013-04-11 23:57:42 +02: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
reality
6638dec85a remove = from flashy regex since all colours are one word anyway 2013-04-09 22:33:07 +00:00
reality
b038ecf63f no blank at end 2013-04-09 22:15:17 +00:00
reality
52d232a2e6 add more colours, automatic upper case and help output 2013-04-09 22:14:15 +00:00
reality
381a78e311 forgot event.reply (flashy) 2013-04-09 22:07:11 +00:00
reality
a129083826 input, not params (flashy) 2013-04-09 22:06:03 +00:00
reality
4d5fa04277 fix render to point to text proeprly 2013-04-09 15:30:56 +00:00
reality
694e1bf857 fix regex and add g and b colour codes 2013-04-09 15:28:56 +00:00
reality
cecfd781d6 Add provisional flashy module which doesnt work yet 2013-04-09 15:20:07 +00:00
reality
05cd889a4e Don't dent new quote additions if it includes interpolation notation. 2013-04-08 23:51:28 +00:00
reality
4a27036307 fix #335 by making req limit higher 2013-04-05 13:30:47 +03:00
Matt Molyneaux
141cab407d Remove ^A from ctcp actions
I'll have my pony now.
2013-03-28 21:20:41 +00:00
reality
3c225defee stop telling people to fuck off 2013-03-26 18:43:55 +01:00
reality
e9b4a9f112 give reasonable size limit [#332] 2013-03-25 18:26:13 +00:00
reality
6176dd5695 fix crash on too big of a request [Close #332] 2013-03-25 18:23:35 +00:00
Douglas Gardner
681f56f465 nvi → na'vi 2013-03-24 19:31:58 +00:00
Thomas Menari
67f88097df Update strings.json 2013-03-24 19:26:27 +00:00
Douglas Gardner
57dcc0daf1 remove try catch in favour of boring if(error){} 2013-03-22 15:39:29 +00:00
reality
3ac1c8189f bump jsbot 2013-03-22 11:18:06 +00:00
reality
0c263a2005 Merge pull request #324 from JohnMaguire2013/help
adding forgotten usage file for ~help and ~usage
2013-03-22 04:17:37 -07:00
reality
4a7880d803 Merge pull request #325 from JohnMaguire2013/nick
use new JSBot.parse() NICK action variables.
2013-03-22 04:17:28 -07:00
reality
84c311ee41 Stop [#326] happening again in the admin module by applying admin to all commands by default 2013-03-22 10:58:40 +00:00
Luke Slater
ccc8d6c6e9 merge clash 2013-03-22 10:49:22 +00:00
Luke Slater
8d7962acc8 change module names each loop in module loader to use underscore each 2013-03-22 10:48:36 +00:00
reality
a5f2c35b4d Merge pull request #323 from zuzak/dns
DNS functionality
2013-03-22 03:45:28 -07:00
reality
b8f089284f Merge pull request #322 from JohnMaguire2013/ignore
little bit of cleanup on dbKeys of admin/ignore modules
2013-03-22 03:44:25 -07:00
John Maguire
eff41ee844 use new JSBot.parse() NICK action variables. 2013-03-21 15:58:33 -04:00
John Maguire
eea6643028 adding forgotten usage file for ~help and ~usage 2013-03-21 15:08:48 -04:00
Sam Nicholls
9034dbae6b Patch pushconfig critical 2013-03-21 18:48:06 +00:00
Douglas Gardner
0bb331f87d add basic dns function thingies 2013-03-21 18:29:18 +00:00
John Maguire
3193e45a95 removing empty dbKeys from admin module config 2013-03-21 14:23:58 -04:00
John Maguire
18227fa30b adding "bans" to ignore module dbKeys 2013-03-21 14:23:14 -04:00
reality
774b6673c5 what is stats? baby dont change me, dont change me, no more 2013-03-21 17:35:21 +00:00
reality
415047f765 remove ban/unban from admin [#321] 2013-03-21 14:47:11 +00:00
reality
c26d0acfc0 Merge branch 'ignoreban' of https://github.com/JohnMaguire2013/depressionbot 2013-03-21 14:45:34 +00:00
reality
0f2c77187c Merge pull request #320 from JohnMaguire2013/admin
fix error on "showconfig" with no paremeters (now shows root config)
2013-03-21 07:35:32 -07:00
reality
7fdf145e26 Merge pull request #319 from JohnMaguire2013/quotes
fixing some minor bugs in quotes module
2013-03-21 07:31:45 -07:00
reality
ea948a4ae4 Merge pull request #318 from JohnMaguire2013/users
fixes the issue where users are not tracked correctly on some IRCd's
2013-03-21 07:29:48 -07:00
reality
e811c47a63 Merge pull request #316 from JohnMaguire2013/reloading
fixing some bugs related to loading
2013-03-21 07:28:17 -07:00
John Maguire
42361e0c0c adding support for wildcard ~ignore and ~unignore 2013-03-21 06:40:54 -04:00
John Maguire
af3a8bf1f2 adding support for ban/unban from ignore module, with wildcards 2013-03-21 06:39:57 -04:00
John Maguire
e90572aebf adding initial support for wildcard ignores/bans 2013-03-21 06:34:33 -04:00
John Maguire
ded2f09e87 fix error on "showconfig" with no paremeters (now shows root config) 2013-03-21 04:42:03 -04:00
John Maguire
42de44b4de supress error on joining channel, due to dbot attempting to get info on own join 2013-03-21 04:38:16 -04:00
John Maguire
fac4cb73b1 fixing ~rq error on empty quote db 2013-03-21 04:00:07 -04:00
John Maguire
4e6393dd9a don't allow whitespace-only categories for ~qadd 2013-03-21 03:42:13 -04:00
John Maguire
25b6099fbd fix error on ~rmlast when category doesn't exist 2013-03-21 03:41:53 -04:00
John Maguire
4a8e5d0cc0 fix error on ~link when web is misconfigured/not loaded 2013-03-21 03:41:27 -04:00
John Maguire
d87000f78d give users module proper usage info, subsequently fix empty params erroring 2013-03-21 02:58:40 -04:00
John Maguire
d9a03d03b6 fixing stylistic stuff on ~alias. should close reality/depressionbot#295 2013-03-21 02:07:49 -04:00
John Maguire
ffeb42dde3 removes the leading character on a NICK message, only if it's a : to deal with non-conforming IRCd's 2013-03-21 01:53:11 -04:00