mirror of
https://github.com/SrIzan10/wacals.git
synced 2026-06-06 01:07:01 +00:00
docs: add more setup guide
This commit is contained in:
@@ -10,7 +10,7 @@ bun install
|
|||||||
|
|
||||||
## run
|
## run
|
||||||
|
|
||||||
populate env:
|
populate env:
|
||||||
```
|
```
|
||||||
REDIS_URL=""
|
REDIS_URL=""
|
||||||
# you are better off generating this with "openssl rand -base64 32"
|
# you are better off generating this with "openssl rand -base64 32"
|
||||||
@@ -18,6 +18,13 @@ AUTH_KEY="asdfasdasddfasdfasddf"
|
|||||||
CHAT_ID=""
|
CHAT_ID=""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
to get the chat id, add the following code to `src/index.ts` (under the qr code listener) and run it locally. then send a message to the chat you want to send notifs to:
|
||||||
|
```ts
|
||||||
|
wa.on("message_create", (message) => {
|
||||||
|
console.log(`[WA] the chat id for the message you sent is: ${message.to}`);
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun run src/index.ts
|
bun run src/index.ts
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user