2013-10-25 05:25:42 +08:00
|
|
|
/*
|
|
|
|
* adaptor
|
|
|
|
* cylonjs.com
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013 The Hybrid Group
|
|
|
|
* Licensed under the Apache 2.0 license.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
'use strict';
|
2013-11-12 00:28:37 +08:00
|
|
|
var namespace;
|
2013-10-25 05:25:42 +08:00
|
|
|
|
2013-11-12 00:28:37 +08:00
|
|
|
namespace = require('node-namespace');
|
2013-10-25 05:25:42 +08:00
|
|
|
|
2013-11-12 00:28:37 +08:00
|
|
|
namespace('Cylon', function() {
|
|
|
|
return this.Adaptor = (function() {
|
|
|
|
function Adaptor(opts) {
|
|
|
|
this.name = opts.name;
|
|
|
|
}
|
2013-10-25 05:25:42 +08:00
|
|
|
|
2013-11-12 00:28:37 +08:00
|
|
|
Adaptor.prototype.commands = function() {
|
|
|
|
return ['smile', 'laugh', 'help'];
|
|
|
|
};
|
2013-10-25 05:25:42 +08:00
|
|
|
|
2013-11-12 00:28:37 +08:00
|
|
|
return Adaptor;
|
|
|
|
|
|
|
|
})();
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = Cylon.Adaptor;
|
2013-10-25 05:25:42 +08:00
|
|
|
|
|
|
|
}).call(this);
|