Skip to content

Commit

Permalink
Merge commit '7062785c35a552cf902542012704833326561423' into prod-Emas
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwjk committed Feb 19, 2015
2 parents 7b1b0fb + 7062785 commit 6e93688
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
62 changes: 60 additions & 2 deletions Emas/Emas.js
Expand Up @@ -3,7 +3,7 @@
var Emas = Emas || (function() {
'use strict';

var version = 0.4,
var version = 0.5,

ch = function (c) {
var entities = {
Expand Down Expand Up @@ -36,7 +36,10 @@ var Emas = Emas || (function() {
+'Emas v'+version
+'</div>'
+'<div style="padding-left:10px;margin-bottom:3px;">'
+'<p>Emas provides the <b>!emas</b> command, which looks like /emas but works for everyone, as well as the <b>!as</b> command, which looks like /as but works for everyone.</p>'
+'<p>Emas provides the <b>!emas</b> command, which looks like /emas but '
+'works for everyone, as well as the <b>!as</b> command, which looks like '
+'/as but works for everyone. <b>!w</b>, <b>!r</b>, <b>!gr</b> as '
+'well.</p>'
+'</div>'
+'<b>Commands</b>'
+'<div style="padding-left:10px;">'
Expand All @@ -61,6 +64,39 @@ var Emas = Emas || (function() {
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!w '+ch('<')+'message'+ch('>')+'</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Sends a message in the same manner as <i>/w</i> does.</p>'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">'+ch('<')+'message'+ch('>')+'</span></b> '+ch('-')+' The message to output as part of the emote.'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!r '+ch('<')+'message'+ch('>')+'</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Sends a message in the same manner as <i>/r</i> does.</p>'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">'+ch('<')+'message'+ch('>')+'</span></b> '+ch('-')+' The message to output as part of the emote.'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!gr '+ch('<')+'message'+ch('>')+'</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Sends a message in the same manner as <i>/gr</i> does.</p>'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">'+ch('<')+'message'+ch('>')+'</span></b> '+ch('-')+' The message to output as part of the emote.'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'</div>'
);
},
Expand Down Expand Up @@ -89,6 +125,28 @@ var Emas = Emas || (function() {
sendChat('','/as '+_.rest(args).join(' '));
}
break;
case '!w':
if(1 === args.length) {
showHelp(who);
} else {
sendChat(msg.who,'/w '+who+' '+_.rest(args,2).join(' '));
sendChat(msg.who,'/w '+_.rest(args).join(' '));
}
break;
case '!r':
if(1 === args.length) {
showHelp(who);
} else {
sendChat('','/r '+_.rest(args).join(' '));
}
break;
case '!gr':
if(1 === args.length) {
showHelp(who);
} else {
sendChat('','/gr '+_.rest(args).join(' '));
}
break;
}
},

Expand Down
2 changes: 1 addition & 1 deletion Emas/package.json
@@ -1,6 +1,6 @@
{
"name": "emas",
"version": "0.4",
"version": "0.5",
"description": "Provides player !emas and !as commands.",
"authors": "The Aaron",
"roll20userid": "104025",
Expand Down

0 comments on commit 6e93688

Please sign in to comment.