Restructured src files into a more logical hierarchy

This commit is contained in:
n1474335 2017-03-23 00:33:40 +00:00
parent c9910a8ddb
commit 0f2a5014be
125 changed files with 421 additions and 793 deletions

View file

@ -1,27 +0,0 @@
/**
* Numberwang operations.
*
* @author Unknown Male 282
* @namespace
*/
var Numberwang = module.exports = {
/**
* Numberwang operation. Remain indoors.
*
* @param {string} input
* @param {Object[]} args
* @returns {string}
*/
run: function(input, args) {
if (!input) return "Let's play Wangernumb!";
var match = input.match(/\d+/);
if (match) {
return match[0] + "! That's Numberwang!";
} else {
// That's a bad miss!
return "Sorry, that's not Numberwang. Let's rotate the board!";
}
},
};