Skip to content

Commit

Permalink
再接続とか
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Jul 29, 2019
1 parent e09714c commit 35d2a19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/kokoro.io/hubot/mstdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Mstdn {
this.listener = null;
}
}
this.listener = this.mstdn.stream('/api/v1/streaming/user');
this.listener = this.mstdn.stream('/api/v1/streaming/user', 10);
if (this.listener) {
console.log('mastodon userstream connected');
this.listener.on('update', msg => this._onStreamMessage(msg));
Expand Down Expand Up @@ -63,9 +63,9 @@ class Mstdn {

status(msg) {
if (this.listener) {
msg.reply(`\`${process.env.MASTODON_API_URL}streaming/user\`に接続しています`);
msg.reply(`\`${process.env.MASTODON_BASE_URL}/api/v1/streaming/user\`に接続しています`);
} else {
msg.reply(`\`${process.env.MASTODON_API_URL}streaming/user\`に接続していません`);
msg.reply(`\`${process.env.MASTODON_BASE_URL}/api/v1/streaming/user\`に接続していません`);
}
}

Expand Down Expand Up @@ -259,7 +259,7 @@ ${Mstdn.unescape(dbTarget)}: ${mode}
reconnect(msg) {
this._connect();
if (msg) {
msg.reply(`\`${process.env.MASTODON_API_URL}streaming/user\`に再接続しました`);
msg.reply(`\`${process.env.MASTODON_BASE_URL}/api/v1/streaming/user\`に再接続しました`);
}
}

Expand Down

0 comments on commit 35d2a19

Please sign in to comment.