Advertisement
Dreamer_1314

How to make a balance command in aoi.js

Jul 22nd, 2023
1,634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Variables Required :
  2. Coins = 25000
  3. Bank = 0
  4.  
  5. For non command handler user :
  6. bot.command({
  7.   name: "balance",
  8.   aliases: [
  9.     "bal",
  10.     "Balance",
  11.     "Bal"
  12.   ],
  13.   code: `
  14.   $title[$username's Balance]
  15.  $description[$getGlobalUserVar[Coins;$authorID] Coins
  16. $getGlobalUserVar[Bank;$authorID] Bank]
  17.  $color[00ff6c]
  18.  $footer[Requested By $userTag[$authorID]]
  19.  $addTimestamp
  20.  `
  21. )}
  22.  
  23. for command handler users :
  24. module.exports = ({
  25.  name: "balance",
  26.  aliases: [
  27.    "bal",
  28.    "Balance",
  29.    "Bal"
  30.  ],
  31.  code: `
  32.  $title[$username's Balance]
  33.   $description[$getGlobalUserVar[Dream Coins;$authorID] Dream Coins
  34. $getGlobalUserVar[Bank;$authorID] Bank]
  35.   $color[00ff6c]
  36.   $footer[Requested By $userTag[$authorID]]
  37.   $addTimestamp
  38.   `
  39. )}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement