diff --git a/package.json b/package.json index 6b16f7b..4602c99 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@adiwajshing/keyed-db": "0.2.4", "@hapi/boom": "9.1.3", - "@laxeder/baileys": "github:laxeder/baileys#782ccc24510d79b3e3e01e2786ec8754fda398b1", + "@whiskeysockets/baileys": "6.6.0", "axios": "1.6.5", "body-parser": "1.20.2", "cluster": "0.7.7", diff --git a/src/index.ts b/src/index.ts index 57aba49..6863879 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ +import baileys from "@whiskeysockets/baileys"; + import Client from "./client/Client"; -import baileys from "@laxeder/baileys"; export * from "./bot/index"; export * from "./chat/index"; diff --git a/src/wa/Auth.ts b/src/wa/Auth.ts index 46b2873..0ecd69c 100644 --- a/src/wa/Auth.ts +++ b/src/wa/Auth.ts @@ -1,4 +1,4 @@ -import { SignalDataTypeMap, initAuthCreds, BufferJSON, proto, AuthenticationState, AuthenticationCreds } from "@laxeder/baileys"; +import { SignalDataTypeMap, initAuthCreds, BufferJSON, proto, AuthenticationState, AuthenticationCreds } from "@whiskeysockets/baileys"; import { readFile, writeFile, unlink } from "fs/promises"; import { mkdirSync, readdirSync, statSync } from "fs"; import { join } from "path"; diff --git a/src/wa/ConfigWAEvents.ts b/src/wa/ConfigWAEvents.ts index f43f02c..255e69d 100644 --- a/src/wa/ConfigWAEvents.ts +++ b/src/wa/ConfigWAEvents.ts @@ -1,4 +1,4 @@ -import { DisconnectReason, MessageUpsertType, isJidGroup, proto } from "@laxeder/baileys"; +import { DisconnectReason, MessageUpsertType, isJidGroup, proto } from "@whiskeysockets/baileys"; import { Boom } from "@hapi/boom"; import Long from "long"; diff --git a/src/wa/ConvertToWAMessage.ts b/src/wa/ConvertToWAMessage.ts index 9ddcf7a..1fe16c6 100644 --- a/src/wa/ConvertToWAMessage.ts +++ b/src/wa/ConvertToWAMessage.ts @@ -1,4 +1,4 @@ -import { generateWAMessage, isJidGroup, MiscMessageGenerationOptions, proto } from "@laxeder/baileys"; +import { generateWAMessage, isJidGroup, MiscMessageGenerationOptions, proto } from "@whiskeysockets/baileys"; import Message, { MessageStatus, MessageType } from "../messages/Message"; import ListMessage, { List, ListItem } from "../messages/ListMessage"; diff --git a/src/wa/ConvertWAMessage.ts b/src/wa/ConvertWAMessage.ts index 79be154..a906508 100644 --- a/src/wa/ConvertWAMessage.ts +++ b/src/wa/ConvertWAMessage.ts @@ -1,9 +1,9 @@ -import { decryptPollVote, getContentType, getDevice, isJidGroup, MessageUpsertType, normalizeMessageContent, proto, WAMessage, WAMessageContent, WAMessageUpdate } from "@laxeder/baileys"; +import { decryptPollVote, getContentType, getDevice, isJidGroup, MessageUpsertType, normalizeMessageContent, proto, WAMessage, WAMessageContent, WAMessageUpdate } from "@whiskeysockets/baileys"; import digestSync from "crypto-digest-sync"; import Long from "long"; -import PollMessage, { PollAction, PollOption } from "../messages/PollMessage"; import Message, { MessagePlataform, MessageStatus, MessageType } from "../messages/Message"; +import PollMessage, { PollAction, PollOption } from "../messages/PollMessage"; import ListMessage, { ListType } from "../messages/ListMessage"; import MediaMessage, { Media } from "../messages/MediaMessage"; import PollUpdateMessage from "../messages/PollUpdateMessage"; diff --git a/src/wa/WAStatus.ts b/src/wa/WAStatus.ts index 27dd8ab..97d3c4d 100644 --- a/src/wa/WAStatus.ts +++ b/src/wa/WAStatus.ts @@ -1,4 +1,4 @@ -import { WAPresence } from "@laxeder/baileys"; +import { WAPresence } from "@whiskeysockets/baileys"; import { ChatStatus } from "../chat/ChatStatus"; diff --git a/src/wa/WhatsAppBot.ts b/src/wa/WhatsAppBot.ts index 673f67a..fad5ab4 100644 --- a/src/wa/WhatsAppBot.ts +++ b/src/wa/WhatsAppBot.ts @@ -17,7 +17,7 @@ import makeWASocket, { Contact, proto, Chat as BaileysChat, -} from "@laxeder/baileys"; +} from "@whiskeysockets/baileys"; import NodeCache from "node-cache"; import { Boom } from "@hapi/boom"; import internal from "stream"; diff --git a/src/wa/makeInMemoryStore.ts b/src/wa/makeInMemoryStore.ts index ce35cbd..44ed821 100644 --- a/src/wa/makeInMemoryStore.ts +++ b/src/wa/makeInMemoryStore.ts @@ -1,3 +1,5 @@ +import type KeyedDB from "@adiwajshing/keyed-db"; + import NodeCache from "node-cache"; import { Logger } from "pino"; @@ -16,14 +18,13 @@ import { WAMessageKey, proto, makeInMemoryStore, -} from "@laxeder/baileys"; +} from "@whiskeysockets/baileys"; -import { waChatKey, waLabelAssociationKey, waMessageID } from "@laxeder/baileys/lib/Store/make-in-memory-store"; -import { ObjectRepository } from "@laxeder/baileys/lib/Store/object-repository"; -import { LabelAssociation } from "@laxeder/baileys/lib/Types/LabelAssociation"; +import { waChatKey, waLabelAssociationKey, waMessageID } from "@whiskeysockets/baileys/lib/Store/make-in-memory-store"; +import { ObjectRepository } from "@whiskeysockets/baileys/lib/Store/object-repository"; +import { LabelAssociation } from "@whiskeysockets/baileys/lib/Types/LabelAssociation"; import { Comparable } from "@adiwajshing/keyed-db/lib/Types"; -import { Label } from "@laxeder/baileys/lib/Types/Label"; -import type KeyedDB from "@adiwajshing/keyed-db"; +import { Label } from "@whiskeysockets/baileys/lib/Types/Label"; export type BaileysInMemoryStoreConfig = { chatKey?: Comparable;