Releases: JastinXyz/whatscode.js
v1.6.8
-
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
Changelog
-
🛠️ Fix:
$setStatus
now returns the status name not returns empty.- Improvements to the interpreter: Now will not execute text with matching function names when there is no dollar sign.
$sendDm
renamed to$send
.- only .mp4 allowed in
$video
.
-
➖️ Remove:
- Remove default our user agent in
$httpRequest
.
- Remove default our user agent in
-
➕️ Added:
- add
jsEvalFuncExec
option inbot.command
$jsEval
can run whatscode.js functions ifjsEvalFuncExec
options istrue
.- custom database support.
- crash handler when axios error.
- can use functions in prefix options (like
$getVar
etc (bot.status
too).) - add
bot.intervalCommand
- add
bot.readyCommand
- add
bot.status
- add $dbPing
- add $messageSlice
- add $receivedImage
- add $audio
- add $quotedText
- add $downloadContentFromUrl
- add $sendDocument
- add $wait
- add $parseDate
- add $createVar
- add $deleteVar
- add $sendSticker
- add $clearTempDir
- add $reboot
- add $participantList
- add $hasVar
- add $quotedJid
- add $add
- add $receivedQuotedSticker
- add $receivedQuotedImage
- add $quoted
- add $sendLocation
- add $isAttachmentMessage
- add
v0.1.3
Changelog
-
🛠️ Fix:
- Fix empty errors in
$kick
. $onlySender
now supports bot number.- Now you can just put
$reply
to quote the message.
- Fix empty errors in
-
➖️ Remove:
- Remove
$broadcast
for all user.
- Remove
-
➕️ Added:
- Aliases support.
- New Docs design and route.
- Multi prefixes support.
- nonPrefixed support for each
<bot>.command
. - Other configuration (Anything) in
<bot>.command
. You can get the configuration value with$commandInfo
. - Add Sections Functions:
- Add $checkCondition
- Add $commandInfo
- Add $commandList
- Add $createObject
- Add $dateStamp
- Add $day
- Add $getObjectProperty
- Add $get
- Add $groupList
- Add $let
- Add $month
- Add $replaceText
- Add $splitText
- Add $textSplit
- Add $video
- Add $year
v0.0.10 - Improve
Changelog
- Refactor some functions.
- Fix:
\n
doesn't become new line. - Fix:
$log
return undefined in chat. - Fix: Property usage in
$httpRequest
. - Fix:
$isAdmin
blank when returnfalse
. - Error message if error in
$groupOpen
,$groupClose
,$groupLock
,$groupUnlock
. - Can mentions with
@number
(e.g:@123456
). - Add
$dm
- Add
$sendDm
- Add
$senderNumber
- Add
$decodeNumber
- Add
$mentioned
- Add
$broadcast
- Add
$setStatus
- Add
$kick
- Add
$promote
- Add
$demote
- Add
$isURL
- Add
$isNumber
v0.0.8 - Variables And Welcomer Update
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
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
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
Changelog:
- Fix bug when start can't be run.
- Add
$exec
v0.0.1-beta - First Beta 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
- Documentation: https://whatscode.jstnlt.my.id
- Discord Server: https://discord.gg/CzqHbx7rdU