fix/FetchServerSettings via HandleActivePlayerList
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayzr-bot",
|
||||
"version": "13.1.5",
|
||||
"version": "13.1.6",
|
||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
+1
-1
@@ -209,7 +209,7 @@ module.exports = {
|
||||
if (!client.exists(guild.activePlayersChannel)) return;
|
||||
const channel = client.GetChannel(guild.activePlayersChannel);
|
||||
|
||||
const data = await FetchServerSettings(GuildDB.Nitrado, client, 'HandleActivePlayersList'); // Fetch server status
|
||||
const data = await FetchServerSettings(nitrado_cred, client, 'HandleActivePlayersList'); // Fetch server status
|
||||
const e = data && data !== 1; // Check if data exists
|
||||
|
||||
const hostname = e ? data.data.gameserver.settings.config.hostname : 'N/A';
|
||||
|
||||
Reference in new issue
Block a user