|
|
@ -1,4 +1,5 @@
|
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
const LogStats = require('../../models/').LogStats;
|
|
|
|
|
|
|
|
|
|
|
|
class ServerCommand extends Command {
|
|
|
|
class ServerCommand extends Command {
|
|
|
|
constructor() {
|
|
|
|
constructor() {
|
|
|
@ -30,7 +31,10 @@ class ServerCommand extends Command {
|
|
|
|
.addField('Owner', message.guild.owner, true)
|
|
|
|
.addField('Owner', message.guild.owner, true)
|
|
|
|
.setTimestamp();
|
|
|
|
.setTimestamp();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const logStats = await LogStats.findOne({where: {guild: message.guild.id}});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (logStats) addEmbed.addField('Logging', 'On ✅');
|
|
|
|
|
|
|
|
else addEmbed.addField('Logging', 'Off ❌');
|
|
|
|
|
|
|
|
|
|
|
|
message.channel.send({ embed: addEmbed });
|
|
|
|
message.channel.send({ embed: addEmbed });
|
|
|
|
}
|
|
|
|
}
|
|
|
|