mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 17:34:25 -05:00
commit
4dc54ef3f4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "SquadJS",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"repository": "https://github.com/Thomas-Smyth/SquadJS.git",
|
||||
"author": "Thomas Smyth <https://github.com/Thomas-Smyth>",
|
||||
"license": "MIT",
|
||||
|
@ -49,6 +49,7 @@ export default async function plugin(server, discordClient, options = {}) {
|
||||
options = {
|
||||
color: 16761867,
|
||||
command: '!server',
|
||||
disableStatus: false,
|
||||
...options
|
||||
};
|
||||
|
||||
@ -81,6 +82,6 @@ export default async function plugin(server, discordClient, options = {}) {
|
||||
});
|
||||
|
||||
server.on(SERVER_A2S_UPDATED, () => {
|
||||
discordClient.user.setActivity(`(${server.a2sPlayerCount}/${server.publicSlots}) ${server.currentLayer}`, { type: 'WATCHING' });
|
||||
if(!options.disableStatus) discordClient.user.setActivity(`(${server.a2sPlayerCount}/${server.publicSlots}) ${server.currentLayer}`, { type: 'WATCHING' });
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user