Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Releases: JastinXyz/whatscode.js

v1.6.8

19 Jun 05:13
Compare
Choose a tag to compare
  • Add:

    • line system in errors
    • add new version detected warning
    • add $cooldown
    • add $globalCooldown
    • add $stringStartsWith
    • add $charCount
    • add $indexOf
    • add $ordinal
    • add $multi
    • add $divide
    • add $modulo
    • add $variablesCount
    • add $toLowercase
    • add $toUppercase
    • add $toTitlecase
    • add $capitalizeFirstLetter
    • add $stringEndsWith
    • add $groupEditDesc
    • add $groupEditName
    • add $uri
    • add $parseDuration
    • add $nodeVersion
    • add $includes
    • add $killClient
  • Fix:

    • downloadContentFromUrl: crash handler when url is invalid
  • Delete:

    • removing lolcatjs
  • Changes:

    • quick.db changed to whatscode.db
    • onConnectionUpdate: if printQrInTerminal false you can use the callback for get the qr code
    • $sum: can use more than 2 number
    • $sub: can use more than 2 number
    • if printQRinTerminal false its absolutely false
    • $ram now return in B, KB, MB, GB, etc format and u can use 2 options inside ram functions (usage/total) default: usage
    • $jsEval can using "return code" options.

v0.5.2

05 Jun 09:49
Compare
Choose a tag to compare

Changelog

v0.1.3

27 May 08:15
Compare
Choose a tag to compare

Changelog

v0.0.10 - Improve

20 May 06:49
Compare
Choose a tag to compare

Changelog

v0.0.8 - Variables And Welcomer Update

15 May 00:00
Compare
Choose a tag to compare

Changelog:

  • Make the $button support your bot command (u can fill the command in button id, when someone click it will execute the command in button id!).

  • Auto reconnect on crash when bad session. (This will make it easier for you when you first connect to Whatsapp, BUT IF YOUR HOST DOES NOT SUPPORT AUTO REBOOT FROM THIS CHILD PROCESS THEN YOU NEED A MANUAL REBOOT. This unsupport can be marked by an error from HOSTING when a reboot occurs, not an error from Whatsapp.)

  • New error message.

  • High resolution in $profilePic.

  • Fix: replacing commas to empty strings.

  • Fix: exec not responding.

  • Welcomer System: https://whatscode.jstnlt.my.id/references/callbacks/onuserjoin

  • Goodbye System: https://whatscode.jstnlt.my.id/references/callbacks/onuserleave

  • Variables System:

    • $setVar
    • $getVar
    • $setUserVar
    • $getUserVar
    • $setGroupVar
    • $getGroupVar
    • $setGlobalUserVar
    • $getGlobalUserVar
  • Add $functionsCount

  • Add $groupAcceptInvite

  • Add $templateButtons

  • Add $suppressErrors

  • Add $groupName

  • Add $groupOwner

  • Add $groupDesc

v0.0.5 - More Functions

12 May 08:54
Compare
Choose a tag to compare

Changelog:

  • Add $argsCheck
  • Add $block
  • Add $unBlock
  • Add $commandsCount
  • Add $eval
  • Add $sendButton
  • Add $groupClose
  • Add $groupOpen
  • Add $commandReact
  • Add $button
  • Add $footer
  • Add $image
  • Add $profilePic
  • Add $groupEditLock
  • Add $groupEditUnlock
  • Add $botLeave

v0.0.4 - Fixed crash function

11 May 07:08
Compare
Choose a tag to compare

Changelog:

  • Fixed a function that crashes when running.Fixed a function that crashes when running.
  • Add $onlyIf
  • Add $onlySender

v0.0.2 - Bugs on Starts Fixes

10 May 21:14
Compare
Choose a tag to compare

Changelog:

  • Fix bug when start can't be run.
  • Add $exec

v0.0.1-beta - First Beta Release

10 May 07:22
Compare
Choose a tag to compare
Pre-release

whatscode.js

whatscode.js is a package to create Whatsapp bots easily and quickly, even coding experience is not needed...

You should know that whatscode.js is still in the testing stage and whatscode.js is a new project that was created a few days ago... So maybe there are still many bugs happening, Please report bugs or if you want to give suggestions open an issue in our Github Repository!

We are also very open to those of you who want to contribute...

Instalation

npm install whatscode.js

or install it from Github from more features and mybe theres some bugs too.

npm i github:JastinXyz/whatscode.js

Quick Starts

const { Client } = require("whatscode.js");

const bot = new Client({
  name: "Your bot name",
  prefix: "Your bot prefix",
});

// required callback
bot.onConnectionUpdate(); // connection update
bot.onCredsUpdate(); // credentials update
bot.onMessage(); // message update

// ping command
bot.command({
  name: "ping",
  code: `🏓 | $ping ms`
});

Links