Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Huang committed Jan 19, 2018
1 parent fb69686 commit e737079
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.js
Expand Up @@ -122,15 +122,12 @@ var incomes = {skype: 0, telegram: 0, slack: 0, kik: 0, total: 0};

var LineConnector = require("botbuilder-linebot-connector");
var lineConnector = new LineConnector.LineConnector({
hasPushApi: false,
channelId: process.env.line1,
channelSecret: process.env.line2,
channelAccessToken: process.env.line3
});

function f2c(f) {
var c = (parseInt(f) - 32) / 1.8;
return c.toFixed();
}
bot.connector("line", lineConnector);

var viber = require('botbuilder-viber');
var viberChannel = new viber.ViberEnabledConnector({
Expand All @@ -141,6 +138,11 @@ var viberChannel = new viber.ViberEnabledConnector({
});
bot.connector("viber", viberChannel);

function f2c(f) {
var c = (parseInt(f) - 32) / 1.8;
return c.toFixed();
}

setInterval(function(){
dd.postSeries({
"series": [{
Expand Down

0 comments on commit e737079

Please sign in to comment.