Skip to content

Commit

Permalink
Merge pull request #8 from theamarverma/main
Browse files Browse the repository at this point in the history
added search.ts
  • Loading branch information
Shubhamrawat5 committed Aug 21, 2024
2 parents edec791 + a484914 commit 7dacb0c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 49 deletions.
47 changes: 0 additions & 47 deletions src/commands/members/gs.ts

This file was deleted.

18 changes: 18 additions & 0 deletions src/commands/public/search.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { WAMessage } from "@whiskeysockets/baileys";
import { MsgInfoObj } from "../../interfaces/msgInfoObj";
import { Bot } from "../../interfaces/Bot";

const handler = async (bot: Bot, msg: WAMessage, msgInfoObj: MsgInfoObj) => {
const { reply } = msgInfoObj;
const text = `https://giybf.com/`;

await reply(text);
};

const search = () => {
const cmd = ["search"];

return { cmd, handler };
};

export default search;
4 changes: 2 additions & 2 deletions src/functions/addCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import checkvote from "../commands/members/checkvote";
import count from "../commands/members/count";
import fb from "../commands/members/fb";
import gender from "../commands/members/gender";
import gs from "../commands/members/gs";
import horo from "../commands/members/horo";
import image from "../commands/members/image";
import imagesearch from "../commands/members/imagesearch";
Expand Down Expand Up @@ -83,6 +82,7 @@ import helpa from "../commands/public/helpa";
import helpo from "../commands/public/helpo";
import link from "../commands/public/link";
import source from "../commands/public/source";
import search from "../commands/public/search";
import steal from "../commands/public/steal";
import votecommand from "../commands/public/votecommand";

Expand All @@ -109,6 +109,7 @@ const addCommands = async () => {
source,
steal,
votecommand,
search
];

publicCommands.forEach((command) => {
Expand Down Expand Up @@ -160,7 +161,6 @@ const addCommands = async () => {
count,
fb,
gender,
gs,
horo,
image,
imagesearch,
Expand Down

0 comments on commit 7dacb0c

Please sign in to comment.