mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 16:24:25 -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';
|
const configPath = process.argv[2] || './config.json';
|
||||||
|
|
||||||
printLogo();
|
printLogo();
|
||||||
SquadServer.buildFromConfig(configPath)
|
SquadServer.buildFromConfig(configPath).then((server) => {
|
||||||
.then((server) => {
|
server.watch().then(() => {
|
||||||
return server.watch();
|
console.log(`Watching ${server.serverName}...`);
|
||||||
})
|
});
|
||||||
.then(() => {
|
|
||||||
console.log('Watching...');
|
|
||||||
});
|
});
|
||||||
|
@ -148,7 +148,7 @@ export default class Rcon extends EventEmiiter {
|
|||||||
steamID: message[2],
|
steamID: message[2],
|
||||||
name: message[3],
|
name: message[3],
|
||||||
message: message[4],
|
message: message[4],
|
||||||
time: Date.now()
|
time: new Date()
|
||||||
});
|
});
|
||||||
} else if (decodedPacket.id === END_PACKET_ID) {
|
} else if (decodedPacket.id === END_PACKET_ID) {
|
||||||
if (this.ignoreNextEndPacket) {
|
if (this.ignoreNextEndPacket) {
|
||||||
|
@ -26,7 +26,7 @@ export default class DiscordBasePlugin extends BasePlugin {
|
|||||||
async sendDiscordMessage(message, channelID = this.channelID) {
|
async sendDiscordMessage(message, channelID = this.channelID) {
|
||||||
if (this.channel === null) this.channel = await this.discordClient.channels.fetch(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);
|
await this.channel.send(message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user