Skip to content

Commit 141b8de

Browse files
committed
bug fixes and improvements
1 parent 63f37b2 commit 141b8de

37 files changed

Lines changed: 153 additions & 40 deletions

.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ DATABASE_PROVIDER=mysql
2929
DATABASE_URL=mysql://root@localhost:3306/project_canis
3030

3131
# the OpenRouter API key for AI model access
32-
OPEN_ROUTER_API_KEY=
32+
OPEN_ROUTER_API_KEY=
33+
34+
# the shell to use for executing commands
35+
# this should be a valid shell path, e.g., /bin/bash, /bin/zsh
36+
EXEC_SHELL=/bin/bash

src/commands/ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Message } from "whatsapp-web.js";
2-
import log from "npmlog";
2+
import log from "../components/log";
33
import { openrouter, generateText } from "../components/openRouter";
44
import { reply } from "../components/reply";
55

src/commands/alert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message, MessageMedia } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44
import fs from "fs/promises";
55

66
export const command = "alert";

src/commands/bible.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44

55
export const command = "bible";
66
export const role = "user";

src/commands/caution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message, MessageMedia } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44
import fs from "fs/promises";
55
import { client } from "../components/client";
66

src/commands/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message, MessageMedia } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44
import fs from "fs/promises";
55
import { client } from "../components/client";
66

src/commands/go.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44

55
export const command = "go";
66
export const role = "user";

src/commands/god.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message, MessageMedia } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44
import fs from "fs/promises";
55
import { client } from "../components/client";
66

src/commands/hwaifu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Message, MessageMedia } from "whatsapp-web.js";
22
import axios from "axios";
3-
import log from "npmlog";
3+
import log from "../components/log";
44
import fs from "fs/promises";
55
import { client } from "../components/client";
66

src/commands/ls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Message } from "whatsapp-web.js";
2-
import log from "npmlog";
2+
import log from "../components/log";
33
import { commands } from "../index";
44

55
export const command = "ls";

0 commit comments

Comments
 (0)