How to make a Balance Command in Discord.js [Economy]

Sdílet
Vložit
  • čas přidán 7. 06. 2021
  • In this video, we're going to make a Balance command in embed using repl.it database. Difficulty: 4/10.
    Need help with something?
    Join the Discord Server:
    / discord
    [ Read This ]
    If you're new on my channel and don't know what to repl.it is, follow these steps-:
    Step 1: Go to repl.it and sign up.
    Step 2: After creating a new account, click on new repl and make a Node.js Repl (you can put anything in the project name).
    Step 3: Click on
    Step 3: Put all of this code sourceb.in/NNNafT1Gno in index.js
    Step 4: Optional, but you should watch it (Only 2 minutes long) • How to Secure your Bot...
    After doing all these steps, you can watch this video.
    This tutorial doesn't use any Command Handler so if you're a beginner, you really don't have to worry!
    bal command discord js
    balance command discord js
    economy commands discord js
    discord.js economy
    Thank you so much for watching my video!
  • Krátké a kreslené filmy

Komentáře • 325

  • @kaihiwatari3050
    @kaihiwatari3050 Před 3 lety +9

    The long awaited command is here. Hope you add more economy commands.

  • @LegitMacro
    @LegitMacro Před 3 lety +1

    YES I HAVE BEEN WAITING FOR THIS FOR SO LONG... TYSM!!

  • @ayushmondal6661
    @ayushmondal6661 Před 3 lety +2

    Love your content ❤️❤️
    Great work

  • @altExile
    @altExile Před 2 lety +4

    Finally someone who explains it in a way that my tiny brain can actually understand.

  • @IceMakesStuff
    @IceMakesStuff Před 3 lety +2

    Thanks for the time you spent sir!

  • @hypwreck
    @hypwreck Před 2 lety +1

    This guy is sick wow luv ur tutorials and ofcourse subbed too

  • @DeveroonieWasTaken
    @DeveroonieWasTaken Před 3 lety +3

    Hey, great gob!
    Shortcut for repl: press enter and CTL at the same to restart your repl.

  • @teachoco
    @teachoco Před 3 lety +2

    This is what I've been waiting for!!!!😲😲

  • @DiscordTricks
    @DiscordTricks Před 3 lety +1

    And here it is Imagine's EPIC video.. Thanks :D

  • @captainbutterscotch661
    @captainbutterscotch661 Před 3 lety +1

    You need more subs and likes for your content. Good job!

  • @lostclanchannel
    @lostclanchannel Před rokem +1

    Thanks so much, you helped me a lot, but I did have to get some help in ur server, bc for v14 there are some new, codes were it's different but it works now. Thank you so much. You helped me make 6 discord bots already thank you for the help. they all work btw.

  • @maxb3317
    @maxb3317 Před 3 lety +1

    Thanks a bunch! I'd like to suggest a video on how to use apis next if you're taking suggestions :)

  • @curseryt1949
    @curseryt1949 Před 3 lety +1

    THANK YOU SO MUCH BRO I LITERALLY SPAMMED YOUR DMS FOR THIS ONE :))))

  • @shiwu5466
    @shiwu5466 Před 3 lety

    Niceeeee video, I hope that will be more parts :D

  • @Nasi...
    @Nasi... Před 3 lety

    I'm waiting for the next tutorial, this is helpful, I like ur dc server, it is really active

  • @basilbravo6361
    @basilbravo6361 Před 2 lety

    I love your content bro keep it up

  • @kaydenthompson8957
    @kaydenthompson8957 Před 2 lety

    Thanks bro this helped out

  • @nuteater7258
    @nuteater7258 Před 3 lety +1

    YESH MY MAN IS BACK

  • @GalacticGaming0
    @GalacticGaming0 Před 3 lety +2

    Thank you so much for the video

  • @teachoco
    @teachoco Před 3 lety +2

    I want the next video to come very very very quickly!!!😍😍

  • @notyamo
    @notyamo Před 3 lety +6

    Epic video by epic coder... Again...

  • @wilception
    @wilception Před 3 lety +3

    we all have been waiting for this one...

  • @astrix6739
    @astrix6739 Před 3 lety

    keep up the good work thank you 👍!!

  • @subisu3825
    @subisu3825 Před 2 lety

    This video is very helpful ♥♥

  • @wiebetheuws9388
    @wiebetheuws9388 Před 3 lety +1

    lol i was waiting for this but i made it out of what i learned from the other vids

  • @msmobilestreamer4214
    @msmobilestreamer4214 Před 3 lety +19

    Pls add some more commands like beg,rob,gamble,toss etc.

    • @ImagineGamingPlay
      @ImagineGamingPlay  Před 2 lety +7

      I made a daily command video go check it out

    • @theassassin9249
      @theassassin9249 Před 2 lety +2

      @@ImagineGamingPlay yes pls make those commands

    • @theassassin9249
      @theassassin9249 Před 2 lety +1

      @@ImagineGamingPlay btw tysm for these codes 😊😊

    • @Kernel-ly
      @Kernel-ly Před rokem

      @@ImagineGamingPlay whats the daily command video link

  • @kabeerparihar
    @kabeerparihar Před 3 lety +12

    Finally!!!!!

  • @legendxayat5541
    @legendxayat5541 Před 3 lety +1

    IMAGINE YOU'RE THE FRICKING BEST!!! LESS GOOO!!!!

  • @DudOfDuds
    @DudOfDuds Před 3 lety

    nice video it helped me! maybe next video you can show to make a prefix for the bot

  • @Luviqc
    @Luviqc Před 3 lety +2

    hai early. But i needed one that gives currency ;-;

  • @babymathea
    @babymathea Před 3 lety +3

    could you do levels/rewards/dailies next? Thanks!

  • @jhaeeivadoranio2720
    @jhaeeivadoranio2720 Před 3 lety +1

    You are legend!

  • @Get_Quality_
    @Get_Quality_ Před 2 lety

    I am soooooooooooooooooooooooooooooooooooo happy
    it worked
    Thank you sooooooooo much

  • @Secrethack_
    @Secrethack_ Před 3 lety +17

    This is a basic thing. U should have included rob, beg, etc. U can also add something like >addMoney or >removeMoney

    • @IceMakesStuff
      @IceMakesStuff Před 3 lety +2

      Very basic, people upload this on member codes everyday Lmfao, like use --bal

    • @jobsinus9
      @jobsinus9 Před 3 lety

      Yes

    • @emanuelp7395
      @emanuelp7395 Před 3 lety

      @@IceMakesStuff whats member codes? also I've been looking for a video like this and gacha-type vids and this is the only one i found

    • @IceMakesStuff
      @IceMakesStuff Před 3 lety

      @@emanuelp7395 I don't do gacha my sister does

    • @emanuelp7395
      @emanuelp7395 Před 3 lety

      @@IceMakesStuff oh i just don't know how u call it easy I'm new to this stuff and i cant even figure out where to start for the gacha functions D:

  • @dragon-slayer27
    @dragon-slayer27 Před 3 lety +1

    nice video !!!

  • @whossnatasha
    @whossnatasha Před 3 lety +1

    Thanks a lot, Imagine!

  • @jhaeeivadoranio2720
    @jhaeeivadoranio2720 Před 3 lety +1

    Keep it up

  • @vxrt123
    @vxrt123 Před 3 lety +1

    really cool vid, maybe next time you could do a warn and clearwarn command?

  • @hamzawali2893
    @hamzawali2893 Před 2 lety +2

    Oooh, I'm so excited for inventory commands! You'll make a video on that, right?

    • @ImagineGamingPlay
      @ImagineGamingPlay  Před 2 lety +1

      Yessie

    • @hamzawali2893
      @hamzawali2893 Před 2 lety +1

      @@ImagineGamingPlay omg thank u sooo much! Ur the only youtuber which has good discord content lol

    • @IceMakesStuff
      @IceMakesStuff Před 2 lety

      @@hamzawali2893 Talk about a certain Custom name

    • @hamzawali2893
      @hamzawali2893 Před 2 lety +1

      @@IceMakesStuff What do you mean?

  • @piotrexxgamesandfilms8655

    Next command handler

  • @RubinYT
    @RubinYT Před 3 lety +2

    The script isn't working for me. When I do the async stuff it shows me a massive line od some stuff in the console log. I checked the script and everything is okay. Can someone help me please?

  • @Om_brawl_star
    @Om_brawl_star Před 3 lety

    I just love all your bot making videos it just help me a lot
    Can u tell how to add autoreact / autoresponder like carl has in bot? It will help me a lot.

  • @disguisedmacaw3660
    @disguisedmacaw3660 Před 3 lety +1

    can you do a deleted & edited message log video using repl.it?
    Also a video to record vcs 24/7 :) ty!

  • @youngskadi8156
    @youngskadi8156 Před 2 lety +2

    we need a music system or role reaction pleaseeeee T.T

  • @Sans987
    @Sans987 Před 2 lety

    hi, this doesn't seem to work when I do it in folders is there something I need to do differently when using folders for this?

  • @kirtiiyer5
    @kirtiiyer5 Před 3 lety +1

    yay
    Finally

  • @starrylily7765
    @starrylily7765 Před 3 lety +1

    make more economy commands please! that will really help me improving my bot

  • @DownrestYTP
    @DownrestYTP Před 3 lety +3

    why did i think he was gonna write *const dababy* lmao

  • @kongate
    @kongate Před 3 lety +3

    how to make it possible that a mention shows their balance

  • @spyd7975
    @spyd7975 Před 3 lety +1

    pls tell me software you using to edit ur sound

  • @shubhamsoni1692
    @shubhamsoni1692 Před 3 lety

    How to divide a long index.js file in small parts of .js files so that i can make a specific file for new command for the same bot

  • @akashray7844
    @akashray7844 Před 3 lety +1

    bro i am your big fan tbh and i have a video idea for you , make a video about best bot on discord tell people to submit the bot codes and test them on their server if you like this comment give me a it will mean alot

  • @sword9935
    @sword9935 Před 3 lety

    DUDE LOL UR AWESOME

  • @someoneonearth5354
    @someoneonearth5354 Před rokem

    can you make an updated version of this or make a video on how to implement this into the newer bot code im having a really hard time trying to figure out why this code isnt working because it wants me to make a new command file for it because i made a command handler

  • @Trentin_Halp
    @Trentin_Halp Před 3 lety

    Please do a command handler next!

  • @ultrasherif2765
    @ultrasherif2765 Před 3 lety +1

    less goooooooo

  • @phasemontony
    @phasemontony Před rokem

    but uhhhh.... what packages do we need to install to the project? you cant make a discord bot without discord.js and express.

  • @goat905
    @goat905 Před 2 lety

    yo everytime i try to do this i mess something up, cant ijust copy paste the code or somethin?

  • @Firefly-oi4mw
    @Firefly-oi4mw Před 2 lety

    hi quick question! when i typed the || it said unexpected token

  • @mineonlydiamonds
    @mineonlydiamonds Před 3 lety +2

    My friends will be Happy

  • @Dr.Jegesmedve
    @Dr.Jegesmedve Před 3 lety +3

    Hello! Some things that would interest me:
    Prefix (Still changeable)
    Questions and answers that can be added without programming. (Example: ' add "Question" answer(s) "ans1" "ans2" "ans3" "..."') I know it's not easy, but I'd be interested.

    • @jbanate
      @jbanate Před 3 lety +1

      prefix: do const prefix = "" and call your commands with if(message.content = prefix + "command")

    • @Dr.Jegesmedve
      @Dr.Jegesmedve Před 3 lety

      @@jbanate Thank you!

    • @jbanate
      @jbanate Před 3 lety +1

      @@Dr.Jegesmedve np

  • @gabilegameur
    @gabilegameur Před 3 lety +1

    Finally

  • @weltonplayz
    @weltonplayz Před 3 lety +1

    DANG IT I WAS LATE

  • @marcos_akira
    @marcos_akira Před 3 lety +1

    Nice

  • @TeaEqualsSwag
    @TeaEqualsSwag Před 2 lety

    everytime i write everything down it never works, can you send me the whole thing so i can copy and paste it? i have many commands in my bot and i don't want the bot to break so i really would like to just copy and paste the whole thing

  • @aliasbbbbb
    @aliasbbbbb Před 3 lety

    lov u

  • @JustDeerLol
    @JustDeerLol Před 3 lety +1

    Can you make a discord RPG bot series using repl.it? Thank you so much!

  • @MemeShore
    @MemeShore Před 3 lety

    Let’s go

  • @dlssucks
    @dlssucks Před 3 lety +1

    You said it's not gonna work on vsc or anything else but @repl.it/database is npm package and can be installed the same way. Its exactly quick.db.

    • @ImagineGamingPlay
      @ImagineGamingPlay  Před 3 lety +2

      Umm not likely yes repl.it is indeed a npm package but it only works on repl.it project. Each project gets 500 mb

    • @yukiithanhnam2983
      @yukiithanhnam2983 Před 2 lety

      If out of 500mb, will it lose all?

  • @ScorpioXD6969
    @ScorpioXD6969 Před 3 lety +2

    Finnaly 😭

  • @daringd4nkl0rd88
    @daringd4nkl0rd88 Před 2 lety

    Ey thanks for this man, Without it, I wouldn't have been able to make my bot to its best. Also I used let variable, instead of const, what's the difference, and why is there an error when i put const for it? Thank you!

    • @shivangimishra9142
      @shivangimishra9142 Před 2 lety

      No it doesn't make a difference

    • @acurrz4367
      @acurrz4367 Před 2 lety

      The difference between let and const is constant and dynamic variables

  • @SergamingPlayz
    @SergamingPlayz Před 3 lety +1

    FINALLY A ECONOMY sorry caps because of yes when was

  • @soyoymilk
    @soyoymilk Před 3 lety

    question, for glitch, which file is it on?

  • @MystreemPlus-unofficial

    I really enjoyed
    replit will offline when we use ?bal or ?balance it's showing an error
    It can't make embeds I gave every permission to the bot and still not working pls fix it

  • @DynamiteGaming1
    @DynamiteGaming1 Před 2 lety

    which database thing do you use because it says cannot find module '@replit/database'

  • @harshit5924
    @harshit5924 Před 3 lety

    Can u make a video about like how can I make my bot to send an image from another website please?

  • @aviiamo
    @aviiamo Před 2 lety

    for some reason i keep getting this error "Error: Cannot find module '@replit/database'"

  • @sushicat1556
    @sushicat1556 Před 3 lety +1

    how do i even get money and buy stuff and earn stuff, is that in the vid?

  • @vidacz6832
    @vidacz6832 Před 3 lety +1

    Yeah!

  • @tears.
    @tears. Před rokem

    i know i'm late but is this still works?, it seems like my bots won't reply or respond to me.

  • @scorbunny_39
    @scorbunny_39 Před rokem

    do u know anything of how to do is a /give command?

  • @georgeortman6461
    @georgeortman6461 Před 3 lety +1

    Pog :)

  • @anjutyagi
    @anjutyagi Před 3 lety +2

    Yayay new video but I had a problem my bot is going offline every hour

  • @RubinYT
    @RubinYT Před 3 lety +1

    les go

  • @slrp2912
    @slrp2912 Před 2 lety

    How do u have it up to like 28 ur thing is diff then the copy and paste

  • @kartikeym1265
    @kartikeym1265 Před 3 lety +1

    sir can u make level card and lb it's hard for me pls

  • @ipsksantuy5532
    @ipsksantuy5532 Před 3 lety +1

    YEY!

  • @kelaydeck6750
    @kelaydeck6750 Před 2 lety

    1 problem
    how to deal with the bank that show null instead of 0

  • @skateplayzhindigaming5177

    How can I make a bot that auto-spams on command and stops on command.

  • @vaijayantipethe9537
    @vaijayantipethe9537 Před 2 lety

    more game and economy commands pls!!!

  • @s1ri04
    @s1ri04 Před 2 lety

    can you make a tutorial on how to do it in "autocode" or can you show how to download "discord.js" ?

  • @shubhammohapatra9911
    @shubhammohapatra9911 Před 2 lety +1

    Bro listen, if I use featured emoji like 🤑 shall I make it's code?

  • @mandarin8456
    @mandarin8456 Před 3 lety +2

    next up can you do how to earn cash>

  • @sirNully
    @sirNully Před 2 lety

    hi! im having an issue, it seems that whenever i try running it it gives me this error
    /home/runner/DefensiveSlipperyPort/index.js:22
    let balance = await db.get("wallet_${`message.author.id`}")
    ^^^
    SyntaxError: Lexical declaration cannot appear in a single-statement context

    • @RedStone576
      @RedStone576 Před 2 lety

      do db.get(`wallet_${message.author.id}`)

  • @shloman_j3582
    @shloman_j3582 Před 3 lety

    YES!!!

  • @clyppzz316
    @clyppzz316 Před 2 lety

    I'm having a lot of issues could you post a link of the full balance code that you could copy and paste?

  • @shubhamsoni1692
    @shubhamsoni1692 Před 3 lety

    How to make a announce command.. on your discord server I don't find that

  • @Prouf1
    @Prouf1 Před 2 lety

    ReferenceError: Cannot access 'Database' before initialization
    at Object. (/home/runner/happy/index.js:3:12)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)

  • @HIPHOPREVIEWS487
    @HIPHOPREVIEWS487 Před 3 lety +1

    op

  • @klorenzis8600
    @klorenzis8600 Před 2 lety

    How do i do that simble at 2:51 on a hp computer?