Conversation
Added a temporary notice
I've added a fix for the graph height issue for issue #12 Changed how Trend data is calculated, the trend data will now include the first days worth of data
I am working on optimizing the bot so that it will run smoother and faster I've also changed a bunch of variable names, and set up ESLint to help with consistency and find errors quicker Please note, this will only process the servers.json file once and will just halt, as I havent set up the loop yet!
Ive added looping functionality to the bot, also I've fixed an issue where the guild wasnt being initialized if the bot was added when the bot was running
| 'last_restart': null, | ||
| 'message_id': null | ||
| }; | ||
| } |
Check failure
Code scanning / CodeQL
Server crash
|
|
||
| res.json({ server_uuid }) | ||
| }); | ||
|
|
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
| if (!(server_uuid in jsonData[guild_id])) { | ||
| jsonData[guild_id][server_uuid] = { | ||
| if (!(serverUUID in jsonData[guildID])) { | ||
| jsonData[guildID][serverUUID] = { |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
| jsonData[guild_id][server_uuid].status = server_info.status; | ||
| jsonData[guild_id][server_uuid].last_restart = server_info.last_restart; | ||
| jsonData[guild_id][server_uuid].message_id = server_info.message_id; | ||
| jsonData[guildID][serverUUID].map = queryState.map; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
| jsonData[guildID][serverUUID].map = queryState.map; | ||
| jsonData[guildID][serverUUID].players.push(queryState.active_players); | ||
| jsonData[guildID][serverUUID].ping.push(queryState.ping); | ||
| jsonData[guildID][serverUUID].status = queryState.status; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
| jsonData[guildID][serverUUID].players.push(queryState.active_players); | ||
| jsonData[guildID][serverUUID].ping.push(queryState.ping); | ||
| jsonData[guildID][serverUUID].status = queryState.status; | ||
| jsonData[guildID][serverUUID].last_restart = queryState.last_restart; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
This was
linked to
issues
Aug 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces numerous features and bug fixes, including optimizations to improve the bot's reliability when querying multiple servers. Additionally, we've made coding style enhancements and important updates to the Backend API.
List of Changes