Giter VIP home page Giter VIP logo

prajjwaldatir / kaoi Goto Github PK

View Code? Open in Web Editor NEW
142.0 4.0 174.0 1.66 MB

Easy to Deploy, Fork, and Edit WhatsApp Botto. Not Maintained Anymore. Feel Free To Use As Per The License.

License: GNU Affero General Public License v3.0

Shell 0.06% JavaScript 0.13% HTML 0.29% CSS 1.99% TypeScript 97.52% Procfile 0.01%
whatsapp-bot baileys typescript good-first-issue hacktoberfest hacktoberfest2021 automation

kaoi's Introduction

whatsapp-botto-void-init

Kaoi : Next Level Void WhatsApp BOTTO

CodeFactor

WhatsApp Group TypeScript NodeJs

A Fully Modular and Efficient Bot

Button : If you are deploying normally

Deploy

Button : If you are deploying from a fork

Deploy

Button : If you are deploying and using Railway

Deploy on Railway

Use any one of the above to deploy



✨ Highlights

  • Fully Modular Design
  • Object Oriented
  • Written in TypeScript
  • Self-Restoring Auth
  • Built with Baileys (The Best WhatsApp Library Out There)

πŸ’» Deploy/Hosting Guide

πŸ₯ Features of the Repo

πŸ’ͺ Contribution

  • Feel free to open issues regarding any problems or if you have any feature requests
  • Make sure to follow the ESLint Rules while editing the code and run yarn run prettier-format before opening PRs

🀝 Contributors

🟒 WhatsApp Group

WhatsApp Group

πŸ“„ License

Distributed under the GNU AFFERO GENERAL PUBLIC License. See LICENSE for more information.

kaoi's People

Contributors

alceil avatar bilal-08 avatar dependabot[bot] avatar dhi13man avatar fossabot avatar karatakis avatar liton124 avatar luckyyam avatar nakshatra-14 avatar ni5arga avatar nitinkumarsahu avatar oreki-san avatar pablochocobar69 avatar pradumnasaraf avatar prajjwaldatir avatar restyled-commits avatar selk21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kaoi's Issues

Custom `add` event message.

Soo when someone joins the chat
You can enable a future when someone joins it sends the description

But sometimes it's useless

So my command request is to add a command that you can make kaoi send the message you wrote in command

example:
/{command name} welcome to chat

So when someone join kaoi sends welcome to chat

Bug in `Sticker`

Sticker for too long Video/Gifs ends up in an infinite loop of ffmpeg.
which a) hangs the localhost system
b) makes the pm2 restart the process. Resulting in Bot down for few seconds everytime someone uses the Sticker for Too long video/gifs

Logs :

0|void | at ChildProcess. (/home/monarch/Kaoi/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
0|void | at ChildProcess.emit (events.js:400:28)
0|void | at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
0|void | Error: ffmpeg was killed with signal SIGKILL

image

Command Request `grouplink`

Mainly to fetch group link of a group by other group members (Non-Admins) who can't add a fellow as they are not admins and saves time for admins to add them manually. (Bot needs to be admins of the respective group). Description of group might not have grouplink and using the command will let users know who's asking for rhe link.

It should have Disable/Enable option. if Admin don't want anyone to get the link.

Use groupInviteCode from
https://adiwajshing.github.io/Baileys/classes/waconnection.html#groupmetadata

Anti spam feature

How to add anti spam feature like someone same message more than 10 time

Command Request `Github`

Gives you the Github Info of the user or repo.
=> Usage : &github /username/repo
if only /username is given then fetches the user info.
if /username/repo is given then fetches the repo info.

"You are not the owner of this bot"

Hi. I followed the guide to deploy it in Heroku and it works, but when I try to use a Dev command, like for example !status I get the message from the title. Am I missing something? Thanks in advance.

Enhancement request

Your bot is working flawlessly with 0 downtime. Thanks to the easy setup link and video you provided! I would like to request some enhancement features that will help with the productivity of the bot.
Could you please kindly add

/grouplink - To fetch group link where the bot is added.

/add (+91number)~ To add any number to the group by typing this command only by admins.

/warn - To give warning to a user who spams or sends suspicious links. A member can get a total of 3 warnings and gets automatically kicked when he/she is warned for the 3rd time. (executed by admins by typing the /warn command also mentioning the reason for warn)

/toggle ~ To toggle on/off disappearing messages.

/setdec ~ To set group description.

/setname - To change group's name.

/Roast - a short evil roast
Fetch from the list of really evil nasty roast lines saved in the library of the bot

/Images - does a image search

/Memes - lists a meme temaplate or make meme
ex: memes list
ex: memes make two buttons

/Joke - cracks a joke as specified
Ex: /joke random
/joke programming

/Advice - gives a random life advice from adviceslip.com

/tts ~ To convert text to speech (/ttsm for male voice &/ttsf for female voice)

/admins - To tag all admins by group members/admins.

Lastly toggling command for the "welcome" and the "goodbye" message on and off separately. In a group people may join & leaves often, so toggling on only the welcome text and disabling the goodbye message makes more sense. Later if if the admin wishes he may turn the goodbye message on by using a command say "/Act goodbye".

Appreciate the great minds behind these amazing bots.

add

could yoo please add a command where the bot adds people

Command Request `steal`

=> &steal | hippity hoppity your sticker | is now my property
=> It will steal the quoted sticker and give you new sticker with name you specify.

Adding more Features

Request for adding commands

  1. Add Broadcast Command
  2. Needed ADD command
  3. New cool APIs for neko and waifu

Command Request `Broadcast`

  1. Create a new field in Group Model as canBroadcast
  2. check if the group has canBroadcast = true
  3. broadcast the message in the group, if it's true.

Enchantment idea in comment

So kaoi is actually getting every message that shows up and put it in heroku
It's kinda useless for users
And xp in kaoi is also kinda useless

So I recommend that you make xp earined by message's in chat
Even if it wasn't a command

So we can fork kaoi and make a price's for every 5 levels or something like that

Bug in `Purge`

Bot leaves before all group has finished kicking.

asyc error I guess

Enhanced and command request

The Bot has been performing great. I would like to request some useful features and some enhancement to the existing one that would help the bot even further.

  1. /add - To add a given number in a group chat by the Admins.

  2. /grouplink - Mainly to fetch group link of a group by other group members (Non-Admins) who can't add a fellow as they are not admins and saves time for admins to add them manually. (Bot needs to be admins of the respective group). Description of group might not have grouplink as for security reasons and using the command will let users know who's asking for rhe link.

  3. Tweak to /everyone - A slight modification to existing /everyone command to even enable the MODs to use this command if they aren't the group admin of a particular group where the bot is added.

  4. /Broadcast - To enable the MODs to make the bot announce any new updates or commits added to the bot directly to the groups & dms where the bot has been added.

‼️ A LOOPHOLE FIX - The bot kicks the MODs from a group when it's the admin and the MODs number isn't. This might be abused by other members for fun. Kindly also fix this so the bot skips kicking the MODs and a message displays like " Skipped, Can't kick my super-owner!".

‼️ A LOOPHOLE FIX - /purge make the bot exit the group chat in between the process or at the very beginning itself.

Cheers to the developer!

Enhancement request #8

I'll really like to ask you to add the broadcast command in the repo so that mods can atleast broadcast something important like giving a brief downtime or announcing something. Copy pasta is really hard when the bot number is on more than 20 gcs.
Another small request is to make the google command public and not only moderators, ig there's some modules that can help doing it. (I could've tried this on my own but my situation is just worse)

Anti-grouplink and no bad words feature

Please add anti-grouplink and no bad words feature in groups.

ANTI-GROUP LINK
Condition: if any user in the group sends group links, the user will be warned for deleting the link/links. If the user doesn't delete the link/links in a specific time (it can be 1or 2 min), the user will be removed.

NO BAD WORDS
condition: first time the user will be warned for saying the bad or abusive words, next time if the user again use bad or abusive words then he will be removed.

Adding Some features

🟒 join <gc url>
Info: Bot to join the group(command for Bot owner (Mods)only)

broadcast/bc
info: broadcast in groups Bot is in. (Only For Mods)

grouplist
info: get list of groups where Bot is running

active
Info: get list of members online in a group

🟒 delete
info: delete text or media sent by Bot

truth or dare(t or d)
Info: play truth or dare game*

rules
info: get rules of Bot

translate <language> <text>
info: translate text into given language

toimg
info: convert sticker into image

togif
info: convert sticker into gif

calc
info: get answer of a given mathematical expression

🟒 enable/disable <command_name>
info: (no description)

⚠️ add 914556****
info: add the contact to the group chat(group admin only command)

revoke
info: Reset the group link

And lastly Bot should send a message immediately after joining a group so everyone will know there is one useful Bot in the group

link
info: Fetch the group link if BotAdmin = True

Heroku App Sleeping

The bot often have Been disconnected from Google web after sometimes of connecting it. There is no issue with internet or wifi. It continues oftenly

Command Request `Google`

Google search in whatsapp!
But not using official API which only provides 100 searches a day!

[Request] To-Image

Plox see my requests :

  • toimg
  • trigger cmd for Quoted image
  • sticker-tag
    +Find Images from google and then Send out put as Stickers

Command Request `go-i`

=> Usage> go-i robot | 12

=> will give you 12 images of robot from google /pinterest /any other etc:

anime news future

A future that make the bot sends anime news in the chat

And you can make it word in dm too

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.