omigod I am disgusting. How could this happen

Changed spaces into tabs
This commit is contained in:
Daniel Løvbrøtte Olsen 2016-10-26 16:44:19 +02:00 committed by GitHub
parent 2270bb2da8
commit adfe7c82a7

View File

@ -9,9 +9,9 @@ var helper = require('./helper.js');
// restify setup // restify setup
var https_options = { var https_options = {
key: fs.readFileSync('/etc/ssl/privkey.pem'), key: fs.readFileSync('/etc/ssl/privkey.pem'),
certificate: fs.readFileSync('/etc/ssl/fullchain.pem'), certificate: fs.readFileSync('/etc/ssl/fullchain.pem'),
ca: fs.readFileSync('/etc/ssl/chain.pem') ca: fs.readFileSync('/etc/ssl/chain.pem')
}; };
var server = restify.createServer(https_options); var server = restify.createServer(https_options);
@ -30,15 +30,15 @@ server.post('/api/messages', connector.listen());
// Bot Dialogs // Bot Dialogs
bot.dialog('/', new builder.IntentDialog() bot.dialog('/', new builder.IntentDialog()
.matches(helper.regex("ping"), function(s) {cmd.ping(s)}) .matches(helper.regex("ping"), function(s) {cmd.ping(s)})
.matches(helper.regex("stuff"), function(s) {cmd.stuff(s)}) .matches(helper.regex("stuff"), function(s) {cmd.stuff(s)})
.matches(helper.regex("games"), function(s) {cmd.games(s)}) .matches(helper.regex("games"), function(s) {cmd.games(s)})
.matches(helper.regex("about"), function(s) {cmd.about(s)}) .matches(helper.regex("about"), function(s) {cmd.about(s)})
.matches(helper.regex("help"), function(s) {cmd.help(s)}) .matches(helper.regex("help"), function(s) {cmd.help(s)})
.matches(helper.regex("meme \\w+"), function(s) {cmd.meme(s)}) .matches(helper.regex("meme \\w+"), function(s) {cmd.meme(s)})
.matches(helper.regex("memes"), function(s) {cmd.memes(s)}) .matches(helper.regex("memes"), function(s) {cmd.memes(s)})
.matches(helper.regex("debug"), function(s) {cmd.debug(s)}) .matches(helper.regex("debug"), function(s) {cmd.debug(s)})
.onDefault(function(session) { .onDefault(function(session) {
console.log(session); console.log(session);
session.send("I didn't understand. Say 'help' to get a list of commands!"); session.send("I didn't understand. Say 'help' to get a list of commands!");
})); }));