diff --git a/index.js b/index.js index 4e139d0..535c254 100644 --- a/index.js +++ b/index.js @@ -4,10 +4,8 @@ import printLogo from 'squad-server/logo'; const configPath = process.argv[2] || './config.json'; printLogo(); -SquadServer.buildFromConfig(configPath) - .then((server) => { - return server.watch(); - }) - .then(() => { - console.log('Watching...'); +SquadServer.buildFromConfig(configPath).then((server) => { + server.watch().then(() => { + console.log(`Watching ${server.serverName}...`); }); +}); diff --git a/rcon/index.js b/rcon/index.js index a59ddb6..ae14ed8 100644 --- a/rcon/index.js +++ b/rcon/index.js @@ -148,7 +148,7 @@ export default class Rcon extends EventEmiiter { steamID: message[2], name: message[3], message: message[4], - time: Date.now() + time: new Date() }); } else if (decodedPacket.id === END_PACKET_ID) { if (this.ignoreNextEndPacket) { diff --git a/squad-server/plugins/discord-base-plugin.js b/squad-server/plugins/discord-base-plugin.js index 593ef9a..db4b1f1 100644 --- a/squad-server/plugins/discord-base-plugin.js +++ b/squad-server/plugins/discord-base-plugin.js @@ -26,7 +26,7 @@ export default class DiscordBasePlugin extends BasePlugin { async sendDiscordMessage(message, channelID = this.channelID) { if (this.channel === null) this.channel = await this.discordClient.channels.fetch(channelID); - if ('embed' in message) message.embed.footer.text = COPYRIGHT_MESSAGE; + if ('embed' in message) message.embed.footer = { text: COPYRIGHT_MESSAGE }; await this.channel.send(message); }