Code Monkey home page Code Monkey logo

whatsapp-botto-void's People

Contributors

ab1rz9 avatar alenvelocity avatar bilal-08 avatar dependabot[bot] avatar ni5arga avatar nitinkumarsahu avatar prajjwaldatir avatar somnathdas 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

Watchers

 avatar  avatar  avatar  avatar  avatar

whatsapp-botto-void's Issues

problem on sticker formatter

src/commands/Fun/Trigger.ts:7:25 - error TS2307: Cannot find module 'wa-sticker-formatter/lib' or its corresponding type declarations.

7 import { Sticker } from 'wa-sticker-formatter/lib'
~~~~~~~~~~~~~~~~~~~~~~~~~~

src/commands/Utils/Sticker.ts:32:13 - error TS2345: Argument of type '{ pack: string; author: string; crop: boolean; }' is not assignable to parameter of type 'Partial'.
Object literal may only specify known properties, and 'crop' does not exist in type 'Partial'.

32 crop: parsedArgs.flags.includes('--stretch')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Improvements in `disable` : disable section

Currently disable can only disable the commands.
It should have an option to disable sections for ease of use for MODS

This feature along with #27 is very crucial feature as it allows MODS to customize the Bot for specific groups.
Also DEVS can add any number of features in BOT without making it crowded.

Command Feature `lyrics` Request

lyrics [query] will fetch the lyrics of the song

Recommendation : Do push everything except query text to read more of the WA Message

Sticker command error

Sticker command no response or says "you didn't provide any image/video to convert"

Card game & meme cmd request!

So game is based on card like structure! The bot will send randomly a pic of characters eye in a card alike structure just like Pokémon game
dbkuocs-e75a1f76-a1ea-41da-b560-7bdbd1981484
Take this above pic as an example. So if u wanna claim "prefix" claim chara name
Thats all the concept!

2nd one meme cmd.
Actually am not sure about this i found one api for this cmd "meme" which seems pretty intresting
Link: https://github.com/AnimuAPI/Animu
Add if its good thats all!

Cmd request!

1.bgsticker
=>Removes bg ( transparent) of gifs and convert to sticker without bg!

2.go-i
=> Usage> go-i kirito | 12
_will give you 12 images of kirito from google /pinterest/any other etc:
(Only reccomendation)

3.rename well | well
=> Will give you sticker with name well • well
(This is a selfish request tbh👀, so developers do only if interested)

Thanks,

QR code error

I could deploy the app in heroku but the QR code isn't showing up.

Command Request `yts`

command yts [query] which will give the list of youtube search results with link and metadata.

Cant deploy to heroku

heroku always loading and in console log its say

Error: Property set failed: object in path "github" could not be found. at vendor-00550ac8c2574d830af4510acc3bbcf4.js:2650 at Re (vendor-00550ac8c2574d830af4510acc3bbcf4.js:2650) at n.set (vendor-00550ac8c2574d830af4510acc3bbcf4.js:3297) at dashboard-c2924ddbbba6c769596c67ff5cf97be8.js:6303 at E (vendor-00550ac8c2574d830af4510acc3bbcf4.js:5457) at _ (vendor-00550ac8c2574d830af4510acc3bbcf4.js:5455) at t.invokeWithOnError (vendor-00550ac8c2574d830af4510acc3bbcf4.js:4978) at e.t.flush (vendor-00550ac8c2574d830af4510acc3bbcf4.js:4970) at e.t.flush (vendor-00550ac8c2574d830af4510acc3bbcf4.js:4984)

Command Toggle On/Off for MODs

Requesting a feature to Toggle on/off a command of the bot.
This command can only be used by MODS of the respective BOT

Way to achieve this : My approach
Add one more parameter to the constructor

super(client, handler, {
            command: 'command_goes_here',
            description: 'command description',
            category: 'category',
            usage: `${client.config.prefix}command`,
            isAvailable : true
        }
  • will this approach work?

  • And where all do I need to make changes?
    src/lib/BaseCommand.ts
    all commands constructor
    anywhere else?

Command section request "Weebs"

What about adding a dedicated section for weebs in void, like in xre or re?
In short, if you don't mind add the anime, manga, character, ani-wallpapers etc command
Additional requests:- Sauce finder and haigusha command :v

Command Request `search`

command search [query]
which will fetch the search results using any one of the search engine like google, bing, yahoo, duckduckgo and show page 1 results

Also recommendation to force push everything except first result into read more of the WAmessage

Command feature `birthday` request

user can birthday DDMM to give his birth-day
and will receive a personal message Happy Birthday on his birthday.

Easy to implement with Good benefits :

  • We should skip year so there won't be any problems related to asking age to a minor.
  • Personal Message on birthdays will help keep user/client(for businesses) engagement even more.

Approach :
One more field in Users collection.
Everyday at 00:00 loop over Users table (repeat example) and send message if birthday matches.

Command Game Request `chess`

Chess Game Using WA Messages.
Players will send Chess Notations like e4, e5, Nf3, Qxf5, ...
And Bot will reply with Current board image with relevant caption if necessary.

My Approach :

  • chess @player1 @player2 (self if no second parameter given) will start the game.
  • Use Chess API : example to get board details and to run logic under the hood.
  • Use board matrix received from Chess API to build an Image of the current board and deliver it as a WA Message
    with caption as @player1 played %move. Now it's @player2's turn.
  • chess QUIT will quit the game and the person sending the message will be considered as lost.
  • x amount of inactivity will result in player losing i.e. match end

For example,
Consider 3 characters

  • player1
  • player2
  • Bot
    And Prefix as &

Refer this for Chess notations

Example Chat =>

player1 : &chess @player2

bot :

image
Game has began between @Player1(white) & @player2(black)

player1 : &chess e4

bot :

image
@Player1 played e4. Now it's @player2's turn.

player2 : &chess e5

bot:

image
@player2 played e5. Now it's @Player1's turn.

player1 : &chess Bc4

bot :

image
@Player1 played Bc4. Now it's @player2's turn.

player2 : &chess Nc6

bot :

image
@player2 played Nc6 Now it's @Player1's turn.

player1 : &chess Qf3

bot :

image
@Player1 played Qf3. Now it's @player2's turn.

player2 : &chess Nd4

bot :

image
@player2 played Nd4. Now it's @Player1's turn.

player1 : &chess Qxf7+

bot :

image
@Player1 played replaced f7 pawn with Queen and has threatened the opponent king.
It's a checkmate!!! @Player1 has won 🥳 🔥


Drop a comment if you have any doubts or need any clarification on my idea.

Further ideas :

  • giving people in-game currency based on Bets of the players which can be passed as an extra optional parameter while starting the game.

Improvement in `chess` command

Adding rating system as per Elo_rating_system
Resources :
https://www.chess.com/terms/elo-rating-chess
https://www.omnicalculator.com/sports/elo

It basically is a rating system dependent on your opponent rating.

For example :

  • If a person with 1000 rated plays with 1500 rated player and wins then the rating increased will be higher than 1500 rated player winning against 1000 rated player.
  • Also if a very high rated player wins against very low rated player i.e. 2000 winning against 500 rated. It won't affect his rating much. This removes the possibility of rating mining using different accounts.

@possible exploits :

  • Player can chess ff on repeat to gain rating : Limiting Maximum number of chess ff or chess ratedChallenge might solve this problem.
  • Player can use Chess AI to win against human players : No solution exist. ( But this is also possible in many chess apps/games so we don't need to worry about it. IMO )

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.