Skip to content

Commit f34f7f0

Browse files
committed
fix: bug fixes
1 parent e55d8aa commit f34f7f0

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/commands/help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default async function (msg: Message) {
7979
return;
8080
}
8181

82-
if (!/^[1-9]\d*$/.test(query)) {
82+
if (!/^[1-9]\d*$/.test(query) && query != "") {
8383
await msg.reply("Please type a valid page number.");
8484
return;
8585
}

src/commands/sim.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Message } from "../../types/message"
22
import log from "../components/utils/log";
33
import agentHandler from "../components/ai/agentHandler";
44
import { greetings } from "../components/utils/data";
5+
56
export const info = {
67
command: "sim",
78
description: "Generate a sexy, flirty, funny, and horny response.",

src/components/events/message.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ export default async function (msg: Message, type: string) {
9595
return;
9696
}
9797

98-
if (debug) {
99-
log.info("Message", senderId, msg.body.slice(0, 150));
100-
}
98+
log.info("Message", senderId, msg.body.slice(0, 150));
10199
msg.body = !bodyHasPrefix ? msg.body : msg.body.slice(commandPrefix.length);
102100

103101
const originalReply = msg.reply.bind(msg);
@@ -198,7 +196,7 @@ export default async function (msg: Message, type: string) {
198196
Please try again later.
199197
If the problem persists, please create an issue on GitHub.
200198
201-
https://github.com/project-canis/project-canis/issues/
199+
https://github.com/project-canis/issues/
202200
`;
203201
await msg.reply(text);
204202
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import log from "./components/utils/log";
88
import { mapCommands } from "./components/utils/cmd/loader";
99
import watcher from "./components/utils/cmd/watcher";
1010
import "./components/process";
11+
import "./components/server";
1112
import MemoryMonitor from "./components/utils/memMonitor";
1213

1314
const monitor = new MemoryMonitor({ interval: 30000 });

0 commit comments

Comments
 (0)