mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 11:54:23 -05:00
Minor bug fixes
This commit is contained in:
parent
4c8364b86e
commit
b8e9506cbf
10
index.js
10
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}...`);
|
||||
});
|
||||
});
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user