Skip to content

Commit c49f5d0

Browse files
committed
feat: i added another bug to be fix tomorrow, next week and next month. thank you
1 parent cced83a commit c49f5d0

137 files changed

Lines changed: 659 additions & 491 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@types/he": "^1.2.3",
6565
"@types/node": "^24.0.14",
6666
"@types/npmlog": "^7.0.0",
67+
"@types/qrcode-terminal": "^0.12.2",
6768
"@types/semver": "^7.7.1",
6869
"@types/speedtest-net": "^2.1.5",
6970
"@types/unbzip2-stream": "^1.4.3",

src/commands/..ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message";
1+
import { Message } from "../types/message";
22
import log from "../components/utils/log";
33
import EventMessage from "../components/events/message";
44

@@ -11,7 +11,7 @@ export const info = {
1111
cooldown: 5000,
1212
};
1313

14-
export default async function (msg: Message) {
14+
export default async function (msg: Message): Promise<void> {
1515
if (!/^.$/.test(msg.body)) return;
1616

1717
if (!msg.hasQuotedMsg) {

src/commands/8ball.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message"
1+
import { Message } from "../types/message"
22
import { ball } from "../components/utils/data";
33

44
export const info = {
@@ -10,7 +10,7 @@ export const info = {
1010
cooldown: 5000,
1111
};
1212

13-
export default async function (msg: Message) {
13+
export default async function (msg: Message): Promise<void> {
1414
if (!/^8ball\b/i.test(msg.body)) return;
1515

1616
const response = ball[Math.floor(Math.random() * ball.length)];

src/commands/ai.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { Message } from "../../types/message";
1+
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-
import { UnexpectedResponseError } from "genius-lyrics";
65

7-
const PROJECT_CANIS_ALIS = process.env.PROJECT_CANIS_ALIAS || "Canis";
6+
const PROJECT_CANIS_ALIS: string = process.env.PROJECT_CANIS_ALIAS || "Canis";
87

98
export const info = {
109
command: "ai",
@@ -15,7 +14,7 @@ export const info = {
1514
cooldown: 5000,
1615
};
1716

18-
export default async function (msg: Message) {
17+
export default async function (msg: Message): Promise<void> {
1918
const query = msg.body.replace(/^ai\b\s*/i, "").trim();
2019
if (query.length === 0 && !msg.hasQuotedMsg) {
2120
await msg.reply(greetings[Math.floor(Math.random() * greetings.length)]);

src/commands/alert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message";
1+
import { Message } from "../types/message"
22
import { download } from "../components/utils/download";
33

44
export const info = {
@@ -10,7 +10,7 @@ export const info = {
1010
cooldown: 5000,
1111
};
1212

13-
export default async function (msg: Message) {
13+
export default async function (msg: Message): Promise<void> {
1414
const query = msg.body.replace(/^alert\b\s*/i, "").trim();
1515
if (query.length === 0) {
1616
await msg.reply("Please provide a text.");

src/commands/autoreact.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message";
1+
import { Message } from "../types/message"
22
import { saveSetting } from "../components/services/settings";
33
import log from "../components/utils/log";
44

@@ -11,7 +11,7 @@ export const info = {
1111
cooldown: 5000,
1212
};
1313

14-
export default async function (msg: Message) {
14+
export default async function (msg: Message): Promise<void> {
1515
const query = msg.body.replace(/^autoreact\b\s*/i, "").trim();
1616
if (query.length === 0 && !/(on|off)/.test(query)) {
1717
await msg.reply("Please provide a value its either on or off.");

src/commands/bible.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message"
1+
import { Message } from "../types/message"
22
import axios from "../components/axios";
33
import log from "../components/utils/log";
44

@@ -11,7 +11,7 @@ export const info = {
1111
cooldown: 5000,
1212
};
1313

14-
export default async function (msg: Message) {
14+
export default async function (msg: Message): Promise<void> {
1515
const query = msg.body.replace(/^bible\b\s*/i, "").trim();
1616

1717
if (!/^--(random|today|verse(\s+\w+\s*\d+:\d+)?)$/i.test(query)) {

src/commands/block.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message";
1+
import { Message } from "../types/message"
22
import log from "../components/utils/log";
33
import { exec } from "child_process";
44
import util from "util";
@@ -15,7 +15,7 @@ export const info = {
1515
cooldown: 5000,
1616
};
1717

18-
export default async function (msg: Message) {
18+
export default async function (msg: Message): Promise<void> {
1919
if (msg.mentionedIds.length === 0) {
2020
await msg.reply("Please mention a user to block.");
2121
return;

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message } from "../../types/message";
1+
import { Message } from "../types/message"
22
import log from "../components/utils/log";
33
import { exec } from "child_process";
44
import util from "util";
@@ -15,7 +15,7 @@ export const info = {
1515

1616
const execPromise = util.promisify(exec);
1717

18-
export default async function (msg: Message) {
18+
export default async function (msg: Message): Promise<void> {
1919
const match = /^build(?:\s+--clean)?$/i.exec(msg.body.trim());
2020
if (!match) return;
2121

0 commit comments

Comments
 (0)