Skip to content

Commit

Permalink
Merge pull request #9 from Thomas-Smyth/beta
Browse files Browse the repository at this point in the history
SquadJS v1.0.4 Release
  • Loading branch information
Thomas-Smyth authored May 16, 2020
2 parents bb51292 + 35b2226 commit 4dc54ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion plugins/discord-server-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default async function plugin(server, discordClient, options = {}) {
options = {
color: 16761867,
command: '!server',
disableStatus: false,
...options
};

Expand Down Expand Up @@ -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' });
});
}

0 comments on commit 4dc54ef

Please sign in to comment.