forked from Supositware/Haha-Yes
This commit is contained in:
parent
7abc70a9af
commit
f8e5f531d6
1 changed files with 5 additions and 2 deletions
|
@ -17,8 +17,11 @@ class StatsCommand extends Command {
|
||||||
|
|
||||||
async exec(message) {
|
async exec(message) {
|
||||||
const autoresponse = reload('../../json/autoresponse.json');
|
const autoresponse = reload('../../json/autoresponse.json');
|
||||||
if (autoresponse[message.channel.id] == undefined)
|
let autoresponseStatus;
|
||||||
var autoresponseStatus = 'disable';
|
if (autoresponse[message.channel.id] == undefined || autoresponse[message.channel.id] == 'disable')
|
||||||
|
autoresponseStatus = 'disabled';
|
||||||
|
else if (autoresponse[message.channel.id] == 'enable')
|
||||||
|
autoresponseStatus = 'enabled';
|
||||||
|
|
||||||
let totalSeconds = (this.client.uptime / 1000);
|
let totalSeconds = (this.client.uptime / 1000);
|
||||||
let days = Math.floor(totalSeconds / 86400);
|
let days = Math.floor(totalSeconds / 86400);
|
||||||
|
|
Loading…
Reference in a new issue