How to make a Balance Command in Discord.js [Economy]
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
The long awaited command is here. Hope you add more economy commands.
YES I HAVE BEEN WAITING FOR THIS FOR SO LONG... TYSM!!
Love your content ❤️❤️
Great work
Finally someone who explains it in a way that my tiny brain can actually understand.
Thanks for the time you spent sir!
This guy is sick wow luv ur tutorials and ofcourse subbed too
Hey, great gob!
Shortcut for repl: press enter and CTL at the same to restart your repl.
This is what I've been waiting for!!!!😲😲
And here it is Imagine's EPIC video.. Thanks :D
You need more subs and likes for your content. Good job!
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.
Thanks a bunch! I'd like to suggest a video on how to use apis next if you're taking suggestions :)
THANK YOU SO MUCH BRO I LITERALLY SPAMMED YOUR DMS FOR THIS ONE :))))
Niceeeee video, I hope that will be more parts :D
I made another part of this series, go check it out!
I'm waiting for the next tutorial, this is helpful, I like ur dc server, it is really active
I love your content bro keep it up
Thanks bro this helped out
YESH MY MAN IS BACK
Thank you so much for the video
I want the next video to come very very very quickly!!!😍😍
Epic video by epic coder... Again...
we all have been waiting for this one...
keep up the good work thank you 👍!!
Thanks, will do!
This video is very helpful ♥♥
lol i was waiting for this but i made it out of what i learned from the other vids
Pls add some more commands like beg,rob,gamble,toss etc.
I made a daily command video go check it out
@@ImagineGamingPlay yes pls make those commands
@@ImagineGamingPlay btw tysm for these codes 😊😊
@@ImagineGamingPlay whats the daily command video link
Finally!!!!!
Yes!
hi kabeer
IMAGINE YOU'RE THE FRICKING BEST!!! LESS GOOO!!!!
nice video it helped me! maybe next video you can show to make a prefix for the bot
hai early. But i needed one that gives currency ;-;
could you do levels/rewards/dailies next? Thanks!
You are legend!
I am soooooooooooooooooooooooooooooooooooo happy
it worked
Thank you sooooooooo much
This is a basic thing. U should have included rob, beg, etc. U can also add something like >addMoney or >removeMoney
Very basic, people upload this on member codes everyday Lmfao, like use --bal
Yes
@@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
@@emanuelp7395 I don't do gacha my sister does
@@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:
nice video !!!
Thanks a lot, Imagine!
Keep it up
really cool vid, maybe next time you could do a warn and clearwarn command?
I have the warn command
Oooh, I'm so excited for inventory commands! You'll make a video on that, right?
Yessie
@@ImagineGamingPlay omg thank u sooo much! Ur the only youtuber which has good discord content lol
@@hamzawali2893 Talk about a certain Custom name
@@IceMakesStuff What do you mean?
Next command handler
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?
Yes, show your code and what is console showing
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.
can you do a deleted & edited message log video using repl.it?
Also a video to record vcs 24/7 :) ty!
we need a music system or role reaction pleaseeeee T.T
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?
yay
Finally
make more economy commands please! that will really help me improving my bot
i made a daily command video go check it out!
why did i think he was gonna write *const dababy* lmao
how to make it possible that a mention shows their balance
pls tell me software you using to edit ur sound
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
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
DUDE LOL UR AWESOME
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
Please do a command handler next!
less goooooooo
but uhhhh.... what packages do we need to install to the project? you cant make a discord bot without discord.js and express.
yo everytime i try to do this i mess something up, cant ijust copy paste the code or somethin?
hi quick question! when i typed the || it said unexpected token
My friends will be Happy
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.
prefix: do const prefix = "" and call your commands with if(message.content = prefix + "command")
@@jbanate Thank you!
@@Dr.Jegesmedve np
Finally
DANG IT I WAS LATE
Nice
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
lov u
Can you make a discord RPG bot series using repl.it? Thank you so much!
Pretty cool idea! i might give it a go
Let’s go
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.
Umm not likely yes repl.it is indeed a npm package but it only works on repl.it project. Each project gets 500 mb
If out of 500mb, will it lose all?
Finnaly 😭
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!
No it doesn't make a difference
The difference between let and const is constant and dynamic variables
FINALLY A ECONOMY sorry caps because of yes when was
question, for glitch, which file is it on?
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
which database thing do you use because it says cannot find module '@replit/database'
do this in console or shell
npm i @replit/database
Can u make a video about like how can I make my bot to send an image from another website please?
for some reason i keep getting this error "Error: Cannot find module '@replit/database'"
how do i even get money and buy stuff and earn stuff, is that in the vid?
Yeah!
i know i'm late but is this still works?, it seems like my bots won't reply or respond to me.
do u know anything of how to do is a /give command?
Pog :)
Yayay new video but I had a problem my bot is going offline every hour
bcs u didnt host ur bot 24/7 online
les go
How do u have it up to like 28 ur thing is diff then the copy and paste
sir can u make level card and lb it's hard for me pls
YEY!
1 problem
how to deal with the bank that show null instead of 0
How can I make a bot that auto-spams on command and stops on command.
more game and economy commands pls!!!
can you make a tutorial on how to do it in "autocode" or can you show how to download "discord.js" ?
Bro listen, if I use featured emoji like 🤑 shall I make it's code?
next up can you do how to earn cash>
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
do db.get(`wallet_${message.author.id}`)
YES!!!
I'm having a lot of issues could you post a link of the full balance code that you could copy and paste?
Do it yourself?
How to make a announce command.. on your discord server I don't find that
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)
op
How do i do that simble at 2:51 on a hp computer?