Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
17a446e
chore(axios): Update axios 0.27.2 -> 1.7.9
Kathund Feb 24, 2025
0e44471
chore(bad-words): Update bad-words 3.0.4 -> 4.0.0
Kathund Feb 24, 2025
b8d25f2
chore(chlak): Update chalk 4.1.0 -> 5.4.1
Kathund Feb 24, 2025
f07e161
chore(discord-emoji-converter): Update discord-emoji-converter 1.2.0 …
Kathund Feb 24, 2025
3db477d
Replace REST & Routes importing
Kathund Feb 24, 2025
976710b
chore(discord.js): Update discord.js 14.13.0 -> 14.18.0
Kathund Feb 24, 2025
8863d64
chore(express): Update express 4.18.1 -> 4.21.2
Kathund Feb 24, 2025
016d722
chore(imgur): Update imgur 2.2.0 -> 2.4.3
Kathund Feb 24, 2025
3988fa9
chore(lilyweight): Update lilyweight 2.7.0 -> 2.7.2
Kathund Feb 24, 2025
d4e50f2
chore(mineflayer): Update mineflayer 4.8.1 -> 4.26.0
Kathund Feb 24, 2025
4e8e9af
chore(mkdirp): Remove unused package
Kathund Feb 24, 2025
9a7cd15
chore(moment): Update moment 2.29.4 -> 2.30.1
Kathund Feb 24, 2025
18a0ecf
chore(node-cron): Update node-cron 3.0.2 -> 3.0.3
Kathund Feb 24, 2025
f27b81c
chore(prismarine-nbt): Update 2.2.1 -> 2.7.0
Kathund Feb 24, 2025
0bf19ce
chore(skyhelper-networth): Update skyhelper-networth 1.25.0 -> 1.27.3
Kathund Feb 24, 2025
12b527e
chore(winston) Update winston 3.13.0 -> 3.17.0
Kathund Feb 24, 2025
a2919d4
chore(ws): Update ws 8.16.0 -> 8.18.1
Kathund Feb 24, 2025
a9f8ac1
chore(eslint): Update eslint 8.43.0 -> 9.21.0
Kathund Feb 24, 2025
f37c2fe
chore(nodemon): Update nodemon 2.0.22 -> 3.1.9
Kathund Feb 24, 2025
1af02f8
chore(prettier): Update prettier 3.2.5 -> 3.5.2
Kathund Feb 24, 2025
5625e3e
Merge branch 'main' into bump-packages
Kathund Feb 25, 2025
4307c00
Fix eslint
Kathund Feb 25, 2025
41f8729
Merge branch 'main' into bump-packages
Kathund Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion API/constants/skills.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getLevelByXp(xp, extra = {}) {

/** the maximum level that any player can achieve (used for gold progress bars) */
// @ts-ignore
const maxLevel = isInfiniteLevelable ? Math.max(uncappedLevel, levelCap) : skillTables.maxedSkillCaps[extra.type] ?? levelCap;
const maxLevel = isInfiniteLevelable ? Math.max(uncappedLevel, levelCap) : (skillTables.maxedSkillCaps[extra.type] ?? levelCap);

/** the level as displayed by in game UI */
const level = isInfiniteLevelable ? uncappedLevel : Math.min(levelCap, uncappedLevel);
Expand Down
2 changes: 1 addition & 1 deletion API/functions/getCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function getSkyblockCalendar() {
const calendar = buildSkyblockCalendar(null, Date.now(), Date.now() + 10710000000, 1, false);

return calendar;
} catch (error) {
} catch {
return null;
}
}
Expand Down
1 change: 0 additions & 1 deletion API/functions/getGarden.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-throw-literal */
const config = require("../../config.json");
// @ts-ignore
const { get } = require("axios");
Expand Down
1 change: 0 additions & 1 deletion API/functions/getLatestProfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-throw-literal */
const { getUUID, getUsername } = require("../../src/contracts/API/mowojangAPI.js");
const { formatUsername } = require("../../src/contracts/helperFunctions.js");
const { getMuseum } = require("./getMuseum.js");
Expand Down
1 change: 0 additions & 1 deletion API/functions/getMuseum.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-throw-literal */
const config = require("../../config.json");
// @ts-ignore
const { get } = require("axios");
Expand Down
6 changes: 3 additions & 3 deletions API/stats/hotm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ function getHotm(profile) {
mithril: {
spent: profile.mining_core.powder_spent_mithril ?? 0,
current: profile.mining_core.powder_mithril ?? 0,
total: profile.mining_core.powder_spent_mithril ?? 0 + profile.mining_core.powder_mithril ?? 0
total: (profile.mining_core.powder_spent_mithril ?? 0) + (profile.mining_core.powder_mithril ?? 0)
},
gemstone: {
spent: profile.mining_core.powder_spent_gemstone ?? 0,
current: profile.mining_core.powder_gemstone ?? 0,
total: profile.mining_core.powder_spent_gemstone ?? 0 + profile.mining_core.powder_gemstone ?? 0
total: (profile.mining_core.powder_spent_gemstone ?? 0) + (profile.mining_core.powder_gemstone ?? 0)
},
glacite: {
spent: profile.mining_core.powder_spent_glacite ?? 0,
current: profile.mining_core.powder_glacite ?? 0,
total: profile.mining_core.powder_spent_glacite ?? 0 + profile.mining_core.powder_glacite ?? 0
total: (profile.mining_core.powder_spent_glacite ?? 0) + (profile.mining_core.powder_glacite ?? 0)
}
},
level: getLevelByXp(profile.mining_core.experience, { type: "hotm" }),
Expand Down
2 changes: 1 addition & 1 deletion API/stats/jacob.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getJacob(profile) {
sugar_cane: profile.jacobs_contest.personal_bests?.SUGAR_CANE ?? 0
}
};
} catch (error) {
} catch {
return null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion API/stats/slayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getSlayer(profile) {
blaze: getSlayerLevel(profile, "blaze"),
vampire: getSlayerLevel(profile, "vampire")
};
} catch (error) {
} catch {
return null;
}
}
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import importPlugin from "eslint-plugin-import";
import prettier from "eslint-config-prettier";
import globals from "globals";
import js from "@eslint/js";

export default [
js.configs.recommended,
importPlugin.flatConfigs.recommended,
prettier,
{
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
globals: {
...globals.es2021,
...globals.node,
bot: "readonly",
client: "readonly",
guild: "readonly",
imgurUrl: "writeable"
}
},
rules: {
"no-constant-condition": ["error", { checkLoops: false }],
"import/extensions": ["warn", "always", { ts: "never" }],
"prefer-const": ["warn", { destructuring: "all" }],
"no-unused-vars": ["error", { args: "none" }],
curly: ["warn", "multi-line", "consistent"]
}
}
];
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
process.on("uncaughtException", (error) => console.log(error));
const app = require("./src/Application.js");

Expand Down
Loading
Loading