Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GorlikItsMe committed May 17, 2024
1 parent c14d979 commit 3c7756f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports = {
"plugin:prettier/recommended",
],
rules: {
'ts-expect-error': 'allow-with-description',
},
"@typescript-eslint/ban-ts-comment": "off"
}
};
3 changes: 1 addition & 2 deletions src/modules/login.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { createLogger } from "../logger";
import { type NostaleBot } from "../NostaleBot";
import { PacketNsTeST, PacketNsTeST_Channel } from "../PacketHandler/nstest";
import { TcpClientManager } from "../TcpClient/TcpClientManager";
import {
createLoginPacketNos0577,
createLoginPacketPrivServer,
} from "../utils/createLoginPacket";

const logger = createLogger("NostaleBot");

export function sendLoginPacket(bot: NostaleBot) {
export function sendLoginPacket(bot: NostaleBot): void {
if (bot.config.auth.type == "priv") {
const packet = createLoginPacketPrivServer(
bot.config.auth.login,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/createLoginPacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function createLoginPacketNos0577(
nostaleClientXHash: string,
nostaleClientHash: string,
nostaleClientXVersion: string
) {
): string {
const md5Hash = md5(nostaleClientXHash.toUpperCase() + nostaleClientHash.toUpperCase());
const rand2 = randomString(8, "1234567890ABCDEF");
const c = String.fromCharCode(0xb);
Expand Down

0 comments on commit 3c7756f

Please sign in to comment.