Skip to content

Commit

Permalink
lib/twitch: Fix uptime command response
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Apr 3, 2018
1 parent d78ce01 commit 31a338a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/twitch.js
Expand Up @@ -55,8 +55,8 @@ class Twitch {

async uptime (self, sender) {
const when = await global.cache.when()
const time = global.commons.getTime(await global.cache.isOnline ? when.online : when.offline, true)
global.commons.sendMessage(global.translate(await global.cache.isOnline ? 'uptime.online' : 'uptime.offline')
const time = global.commons.getTime(await global.cache.isOnline() ? when.online : when.offline, true)
global.commons.sendMessage(global.translate(await global.cache.isOnline() ? 'uptime.online' : 'uptime.offline')
.replace(/\$days/g, time.days)
.replace(/\$hours/g, time.hours)
.replace(/\$minutes/g, time.minutes)
Expand Down

0 comments on commit 31a338a

Please sign in to comment.