Skip to content

Commit

Permalink
v3.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Feb 21, 2023
1 parent 4f349ee commit 91fc751
Show file tree
Hide file tree
Showing 49 changed files with 1,298 additions and 627 deletions.
8 changes: 6 additions & 2 deletions API/functions/getLatestProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ async function getLatestProfile(uuid) {
axios.get(
`https://api.hypixel.net/skyblock/profiles?key=${config.api.hypixelAPIkey}&uuid=${uuid}`
),
]);
]).catch(
(error) => {
// eslint-disable-next-line no-throw-literal
throw error?.response?.data?.cause ?? "Request to Hypixel API failed. Please try again!";
}
)

playerRes = playerRes?.data ?? {};
profileRes = profileRes?.data ?? {};
Expand Down Expand Up @@ -68,7 +73,6 @@ async function getLatestProfile(uuid) {
};

} catch (error) {

throw error;
}
}
Expand Down
3 changes: 2 additions & 1 deletion config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"guildID": "HYPIXEL_GUILD_ID",
"guildExp": 0,
"messageRepeatBypass": true,
"messageRepeatBypassLength": 24
"messageRepeatBypassLength": 24,
"messageFormat": " »"
},
"discord": {
"token": "TOKEN",
Expand Down
12 changes: 10 additions & 2 deletions data/skyblockNotifer.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
"Minecraft Server and Public API Unavailable | Monitoring - A fix has been implemented and we are slowly re-opening the server to players. | Feb 6, 18:58 EST",
"Minecraft Server and Public API Unavailable | Investigating - We are currently investigating a major issue with our backend systems causing the Minecraft Server and Public API to be unavailable. | Feb 6, 17:41 EST",
"SkyBlock Profiles API | Resolved - We have made some backend changes with the aim to improve the recent issues of increased response times on the SkyBlock profiles API and it is now operating normally. We will be monitoring the results over the coming days and will made additional changes if needed. | Feb 4, 17:49 EST",
"SkyBlock Profiles API | Investigating - We are investigating issues with the SkyBlock Profiles endpoints on the Hypixel Public API. During this time the endpoint may be disabled while we attempt to investigate and work on a solution. | Feb 4, 14:32 EST"
"SkyBlock Profiles API | Investigating - We are investigating issues with the SkyBlock Profiles endpoints on the Hypixel Public API. During this time the endpoint may be disabled while we attempt to investigate and work on a solution. | Feb 4, 14:32 EST",
"SkyBlock Update 0.18 | Completed - The scheduled maintenance has been completed. | Feb 14, 12:18 EST",
"SkyBlock Update 0.18 | In progress - SkyBlock is currently undergoing maintenance for the release of 0.18. | Feb 14, 09:56 EST",
"SkyBlock Update 0.18 | Scheduled - SkyBlock will be undergoing maintenance for the release of 0.18. | Feb 14, 09:51 EST"
],
"skyblockUpdates": [
"[December 13] SkyBlock Patch Notes | https://hypixel.net/threads/december-13-skyblock-patch-notes.5199900/ | Tue, 10 Jan 2023 23:14:20 +0000",
Expand All @@ -120,6 +123,11 @@
"[February 3] Autopet Changes | https://hypixel.net/threads/february-3-autopet-changes.5262861/ | Wed, 08 Feb 2023 05:11:13 +0000",
"[February 6] SkyBlock Patch Notes | https://hypixel.net/threads/february-6-skyblock-patch-notes.5266045/ | Wed, 08 Feb 2023 05:10:43 +0000",
"[February 2] Patch 0.17.3 Bug Fixes | https://hypixel.net/threads/february-2-patch-0-17-3-bug-fixes.5261361/ | Wed, 08 Feb 2023 04:59:09 +0000",
"[January 10th] Some Bug Fixes | https://hypixel.net/threads/january-10th-some-bug-fixes.5233523/ | Sun, 29 Jan 2023 11:32:32 +0000"
"[January 10th] Some Bug Fixes | https://hypixel.net/threads/january-10th-some-bug-fixes.5233523/ | Sun, 29 Jan 2023 11:32:32 +0000",
"[February 16] Final Dungeon Journals | https://hypixel.net/threads/february-16-final-dungeon-journals.5276354/ | Mon, 20 Feb 2023 14:27:42 +0000",
"[February 3] Autopet Changes | https://hypixel.net/threads/february-3-autopet-changes.5262861/ | Wed, 15 Feb 2023 13:47:12 +0000",
"[February 2] Patch 0.17.3 Bug Fixes | https://hypixel.net/threads/february-2-patch-0-17-3-bug-fixes.5261361/ | Tue, 14 Feb 2023 22:27:01 +0000",
"[February 6] SkyBlock Patch Notes | https://hypixel.net/threads/february-6-skyblock-patch-notes.5266045/ | Sun, 12 Feb 2023 07:12:37 +0000",
"[February 16] Final Dungeon Journals | https://hypixel.net/threads/february-16-final-dungeon-journals.5276354/ | Tue, 21 Feb 2023 01:47:54 +0000"
]
}
Binary file added hypixel-discord-chat-bridge.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"blacklistMessage": " has been successfully blacklisted.",
"blacklistRemoveMessage": " has been successfully removed from the blacklist.",
"alreadyBlacklistedMessage": "Player is already blacklisted.",
"cannotMuteMoreThanOneMonthMessage": "You cannot mute someone for more than one month"
"cannotMuteMoreThanOneMonthMessage": "You cannot mute someone for more than one month",
"guildLevelUpMessage": "The guild has reached level"
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypixel-discord-chat-bridge",
"version": "2.7",
"version": "3.1.12",
"description": "A Hypixel guild chat and Discord chat bridge",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -31,11 +31,12 @@
"homepage": "https://github.com/DuckySoLucky/hypixel-discord-chat-bridge#readme",
"dependencies": {
"@discordjs/rest": "^1.5.0",
"axios": "^1.2.1",
"axios": "0.27.2",
"bad-words": "^3.0.4",
"canvas": "2.10.1",
"chalk": "^4.1.0",
"discord-api-types": "^0.37.33",
"discord-emoji-converter": "^1.2.8",
"discord.js": "^14.7.1",
"express": "^4.18.1",
"hypixel-api-reborn": "^10.0.0",
Expand All @@ -57,8 +58,6 @@
"globals": {
"bot": true,
"client": true,
"minecraftCommandList": true,
"uptime": true,
"bridgeChat": true
}
}
Expand Down
Loading

0 comments on commit 91fc751

Please sign in to comment.