Skip to content

Commit

Permalink
file relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenga8533 committed Jan 1, 2024
1 parent b72b350 commit c452ad5
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 48 deletions.
1 change: 1 addition & 0 deletions changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"- TODO: Added /va nw",
"- Changed blacklist to auto kick",
"- Changed warplist to dianalist",
"- Changed file pathing",
"- TODO: Recoded skill and powder? tracker",
"- Changed valuelist to only register held item"
]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { formatNumber, getTime, unformatNumber } from "../../utils/functions";
import { registerWhen } from "../../utils/variables";
import { getWorld } from "../../utils/worlds";
import { getBazaar } from "../economy/Economy";
import { getWaifu } from "../general/party/PartyCommands";
import { getWaifu } from "../party/PartyCommands";


/**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion features/general/ChatWebhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import toggles from "../../utils/toggles";
import { request } from "../../../axios";
import { getGuildName, getPlayerName } from "../../utils/functions";
import { registerWhen } from "../../utils/variables";
import { getWaifu } from "./party/PartyCommands";
import { getWaifu } from "../party/PartyCommands";


/**
Expand Down
2 changes: 1 addition & 1 deletion features/mining/PowderTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { commafy, getTime } from "../../utils/functions";
import { Overlay } from "../../utils/overlay";
import { Stat, data, getPaused, registerWhen } from "../../utils/variables";
import { getWorld } from "../../utils/worlds";
import { getWaifu } from "../general/party/PartyCommands";
import { getWaifu } from "../party/PartyCommands";


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import settings from "../../../utils/settings";
import { getInParty } from "../../../utils/party";
import { delay } from "../../../utils/thread";
import { registerWhen } from "../../../utils/variables";
import { GREEN, LOGO } from "../../../utils/constants";
import settings from "../../utils/settings";
import { getInParty } from "../../utils/party";
import { delay } from "../../utils/thread";
import { registerWhen } from "../../utils/variables";
import { GREEN, LOGO } from "../../utils/constants";


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { getPlayerName } from "../../../utils/functions";
import { delay } from "../../../utils/thread";
import { data, registerWhen } from "../../../utils/variables";
import { getPlayerName } from "../../utils/functions";
import { getIsLeader } from "../../utils/party";
import { delay } from "../../utils/thread";
import { data, registerWhen } from "../../utils/variables";


/**
* Kick users on blacklist.
*/
registerWhen(register("chat", (player) => {
if (!getIsLeader()) return;

player = getPlayerName(player).toLowerCase();
if (data.blacklist.find(name => {
name === player;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import settings from "../../../utils/settings";
import { getPlayerName } from "../../../utils/functions";
import { delay } from "../../../utils/thread";
import { registerWhen } from "../../../utils/variables";
import { getWorld } from "../../../utils/worlds";
import { getInParty, getIsLeader, getParty } from "../../../utils/party";
import settings from "../../utils/settings";
import { getPlayerName } from "../../utils/functions";
import { delay } from "../../utils/thread";
import { registerWhen } from "../../utils/variables";
import { getWorld } from "../../utils/worlds";
import { getInParty, getIsLeader, getParty } from "../../utils/party";


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import settings from "../../../utils/settings";
import { delay } from "../../../utils/thread";
import { registerWhen } from "../../../utils/variables";
import settings from "../../utils/settings";
import { delay } from "../../utils/thread";
import { registerWhen } from "../../utils/variables";

registerWhen(register("chat", () => {
delay(() => ChatLib.command(`pc ${settings.partyMessage}`), 100);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import settings from "../../../utils/settings";
import { getPlayerName } from "../../../utils/functions";
import { delay } from "../../../utils/thread";
import { data, registerWhen } from "../../../utils/variables";
import settings from "../../utils/settings";
import { getPlayerName } from "../../utils/functions";
import { delay } from "../../utils/thread";
import { data, registerWhen } from "../../utils/variables";


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import axios from "../../../../axios";
import settings from "../../../utils/settings";
import toggles from "../../../utils/toggles";
import { request } from "../../../../requestV2";
import { AQUA, DARK_AQUA, DARK_GREEN, GRAY, GREEN, LOGO, RED, WHITE } from "../../../utils/constants";
import { getGuildName, getPlayerName } from "../../../utils/functions";
import { getIsLeader } from "../../../utils/party";
import { delay } from "../../../utils/thread";
import { data, registerWhen } from "../../../utils/variables";
import { getPing, getTPS } from "../Performance";
import axios from "../../../axios";
import settings from "../../utils/settings";
import toggles from "../../utils/toggles";
import { request } from "../../../requestV2";
import { AQUA, DARK_AQUA, DARK_GREEN, GRAY, GREEN, LOGO, RED, WHITE } from "../../utils/constants";
import { getGuildName, getPlayerName } from "../../utils/functions";
import { getIsLeader } from "../../utils/party";
import { delay } from "../../utils/thread";
import { data, registerWhen } from "../../utils/variables";
import { getPing, getTPS } from "../general/Performance";


/**
Expand Down
29 changes: 15 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import "./utils/player";
import settings from "./utils/settings";
import toggles from "./utils/toggles";
import "./utils/waypoints";
import { AQUA, BOLD, CAT_SOULS, CONTRACT, DARK_AQUA, DARK_GRAY, ENIGMA_SOULS, FAIRY_SOULS, GOLD, GRAY, GREEN, ITALIC, LOGO, RED, RESET, RIFT_NPCS, RIFT_ZONES, UNDERLINE, WHITE } from "./utils/constants";
import { formatNumber, getTime, unformatNumber } from "./utils/functions";
import { AQUA, BOLD, CAT_SOULS, CONTRACT, DARK_AQUA, DARK_GRAY, ENIGMA_SOULS, FAIRY_SOULS, GOLD, GRAY, GREEN, LOGO, RED, RESET, RIFT_NPCS, RIFT_ZONES, UNDERLINE, WHITE } from "./utils/constants";
import { getTime } from "./utils/functions";
import { getInParty, getIsLeader, getParty } from "./utils/party";
import { openGUI } from "./utils/overlay";
import { delay } from "./utils/thread";
Expand All @@ -17,14 +17,8 @@ for (const key in settings) if (CHANGED_SETTINGS.has(key) && typeof settings[key
if (typeof settings.partyCommands !== "boolean") settings.partyCommands = false;

// General Features
import "./features/general/party/AntiGhostParty";
import "./features/general/party/AutoKick";
import "./features/general/party/JoinMessage";
import "./features/general/party/JoinParty";
import { executeCommand } from "./features/general/party/PartyCommands";
import "./features/general/ArmorDisplay";
import "./features/general/Autocorrect";
import "./features/general/party/AutoTransfer";
import "./features/general/ChangeMessage";
import "./features/general/ChatWebhook";
import "./features/general/Cooldowns";
Expand All @@ -41,6 +35,13 @@ import "./features/general/SlotBinding";
import "./features/general/SpamHider";
import { getStat } from "./features/general/Statistics";
import { createWaypoint } from "./features/general/UserWaypoints";
// Party Features
import "./features/party/AntiGhostParty";
import "./features/party/AutoKick";
import "./features/party/AutoTransfer";
import "./features/party/JoinMessage";
import "./features/party/JoinParty";
import { executeCommand } from "./features/party/PartyCommands";
// Economy Features
import { getAttributes } from "./features/economy/AttributePricing";
import "./features/economy/BitsAlert";
Expand All @@ -65,12 +66,12 @@ import "./features/mining/PowderChest";
import "./features/mining/PowderTracker";
import "./features/mining/WishingCompass";
// Farming Features
import { calcCompost } from "./features/garden/ComposterCalc";
import "./features/garden/FarmingWebhook";
import { getNextVisitor } from "./features/garden/GardenTab";
import "./features/garden/GardenWarp";
import "./features/garden/JacobHighlight";
import "./features/garden/PestTracking";
import { calcCompost } from "./features/farming/ComposterCalc";
import "./features/farming/FarmingWebhook";
import { getNextVisitor } from "./features/farming/GardenTab";
import "./features/farming/GardenWarp";
import "./features/farming/JacobHighlight";
import "./features/farming/PestTracking";
// Event Features
import "./features/event/BurrowDetect";
import "./features/event/GreatSpook";
Expand Down

0 comments on commit c452ad5

Please sign in to comment.