- Видео 17
- Просмотров 94 556
EvenMoreCode
США
Добавлен 5 янв 2023
Happy to answer any questions you have related to coding. I make videos that can hopefully help you build cool applications with code. Coding Economy Discord Bots using Discord JS framework.
If you would like to support the channel, get early access to all videos, and download the source code for all the code please consider becoming a Patreon supporter.
If you would like to support the channel, get early access to all videos, and download the source code for all the code please consider becoming a Patreon supporter.
Code A Discord Bot in Less Than 40 mins - Full Tutorial in 1 Single Video (NO EXPERIENCE REQUIRED)
In this step-by-step tutorial, you'll learn how to create a Discord bot in under 40 minutes using discord.js! This video is perfect for beginners with no coding experience, and I will guide you through the entire process from start to finish. Whether you're new to programming or just looking to add a bot to your server, this video will show you how to build a custom bot with Node.js, JavaScript, and the Discord Developer Portal.
By the end of this tutorial, you'll have a fully functional bot that can go online within your server, respond to slash commands, and more. We also cover common bot features like event handling, message commands, and a general template of how to code future slash c...
By the end of this tutorial, you'll have a fully functional bot that can go online within your server, respond to slash commands, and more. We also cover common bot features like event handling, message commands, and a general template of how to code future slash c...
Просмотров: 104
Видео
How to Create Embeds in Discord.js: A Step-by-Step Guide
Просмотров 1,9 тыс.Год назад
How to Create Embeds in Discord.js: A Step-by-Step Guide Welcome to my step-by-step guide on how to build custom embeds in Discord.js! In this tutorial, I show you how to enhance your Discord bot's messages with stylish and informative embeds that grab your audience's attention. With Discord.js, creating custom embeds is a breeze, and we'll guide you through the entire process. Throughout this ...
How to Code ChatGPT into Your Discord Slash Commands
Просмотров 2 тыс.Год назад
How to Integrate ChatGPT into Your Discord Slash Commands Are you looking to enhance your Discord bot's functionality and provide more engaging conversations for your users? Look no further than ChatGPT, a powerful language model developed by OpenAI. In this tutorial, we'll show you how to integrate ChatGPT into your Discord bot using Discord.js, the popular Node.js module for creating Discord ...
Buy Custom Roles with a Slash Command: Discord Economy Bot Tutorial (Part 2)
Просмотров 1,7 тыс.Год назад
Buy Custom Roles with a Slash Command: Discord Economy Bot Tutorial Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot ...
How to Create a Shop for Your Discord Economy Bot (Part 1)
Просмотров 8 тыс.Год назад
How to Create a Shop for Your Discord Economy Bot Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more professional....
Custom Activity Status for Your Discord Bot
Просмотров 3,2 тыс.Год назад
How to Set a Custom Activity Status for Your Discord Bot Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more profes...
Coding a Gamble Game For Your Economy Discord Bot (2023)
Просмотров 6 тыс.Год назад
Coding a Gamble Game For Your Economy Discord Bot (2023) Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more profes...
Coinflip Slash Command For Your Discord Bot (2023)
Просмотров 3,6 тыс.Год назад
Coinflip Slash Command For Your Discord Bot (2023) Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more professional...
Add & Subtract Admin Commands for Your Discord Currency Bot
Просмотров 1,5 тыс.Год назад
Add & Subtract Admin Commands for Your Discord Currency Bot Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more pro...
How to Code a Leaderboard Slash Command For Your Discord Bot (2023)
Просмотров 7 тыс.Год назад
How to Make a Leaderboard For Your Discord Economy Bot (2023) Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more p...
Coding a Donate Slash Command for Your Discord Currency Bot (2023)
Просмотров 2,4 тыс.Год назад
Coding a Donate Slash Command for Your Discord Currency Bot (2023) Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot m...
Coding a Daily Slash Command for Your Discord Bot (2023)
Просмотров 4,2 тыс.Год назад
Coding a Daily Slash Command for Your Discord Bot (2023) Create a Discord Economy Bot from scratch! Coding a Discord Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more profes...
[2023] How to Setup a Database for Your Discord Bot Using MongoDB (Part 5)
Просмотров 8 тыс.Год назад
Create a Discord Currency Bot from scratch! Coding a Discord Economy Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more professional. { Access Source Code } patreon.com/EvenM...
[2023] How to Make Slash Commands Using Discord.js (Part 4)
Просмотров 5 тыс.Год назад
Create a Discord Currency Bot from scratch! Coding a Discord Economy Bot is actually not as complicated as it sounds. In this discord bot tutorial series we are using slash commands the new way for bots to interact with users on discord. Slash Commands enable a munch better user experience on discord and makes your bot seem a whole lot more professional. { Access Source Code } patreon.com/EvenM...
[2023] How to Code a Event & Command Handler For Your Discord Bot (Part 3)
Просмотров 8 тыс.Год назад
[2023] How to Code a Event & Command Handler For Your Discord Bot (Part 3)
[2023] How to Register Your Bot Using Discord Developer Portal (Part 2)
Просмотров 9 тыс.Год назад
[2023] How to Register Your Bot Using Discord Developer Portal (Part 2)
[2023] How to Code a Discord Bot For Beginners (Part 1)
Просмотров 23 тыс.Год назад
[2023] How to Code a Discord Bot For Beginners (Part 1)
client.commands = new Collection(); ^ ReferenceError: Collection is not defined, i get this error when i try to reload the bot at the very end
Hmm are you importing “Collection” from “discord.js” on line 3?
i think i fixed all my errors but now its giving const commandFiles = fs.readdirSync(commandsPath).filter(file.endswith('.js')); ^ ReferenceError: file is not defined
heeelp. undefined Error [TokenInvalid]: An invalid token was provided. at Client.login (/home/runner/Deadpool/index.js/node_modules/discord.js/src/client/Client.js:216:52) at Object.<anonymous> (/home/runner/Deadpool/index.js/index.js:39:8) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49 { code: 'TokenInvalid' }
Hey! Did you set your token in your .env file?
Hey! I have just made my discord bot but my commands dont show on the server. Any ideas on why?
Hey! Did you deploy your commands? 28:33 is where we deploy the commands in the video
@@EvenMoreCode now having issues with keeping bot up, ping keeps going down
@@j4kloes What do you mean ping keeps going down? Like you lose internet?
He’s backkk😭🙏
The legend is back!
I’m finally back after disappearing for a while! I’m looking forward to making more high quality videos, please comment any suggestions for content that you want to see from me!
Your back!!!
Welcome back! Are you going to be posting more often again?
Yes sir! Let me know if you have any requests for future topics I should cover
no way bro is back
Here one year later and I can tell you, this idea is fun!! I only needed around 80 lines of code by using arrays to do everything at once, but I love this concept! Thanks!
Awesome! Love to hear that!
it says code: BitFieldInvalid Please help!!!
Let me know if you still need help!
So, I have played videos part 1-3 over and over checking and making sure everything is correct. after tying in "node ." to log into discord, it keeps giving me an error code saying 'bitfieldinvalad" if anyone can help me with this issue I would appreciate it, because im getting a little frustrated thanks a lot.
Hey! Not sure if your still having this issue but I just uploaded a new video that is much more concise and goes over step by step what you need for creating a discord bot with updated code for 2024. Let me know if you have any further problems!
guys remember to save !! i had some troubles at first because im so used to things having autosave- this does nto !! ctrl+S !! also i mispelled some things, so if you get an error saying something isnt defined, make sure to check you spelled it right every time !! :]
WOW! JUST WOW!
how would I set an emoji as a item people can buy and an emoji as a coin?
This would depend on how you want to store it but for example in your database you can have a shop item and use the emoji name as the shop item name. Then when someone buys an emoji then you would have to add that to their inventory which you would track in your database
Hello, I am brand new at this... and I trying to build a leaderboard for American Truck Simulator in a Discord to tell me who has the most miles. We use Trucks Book to keep up with the mileage of members in the company. Can you please help me?
I believe you would need to make some kind of api request to retrieve the information from your trucks book. Then you can use that data and display into the leaderboard
TypeError: path is not a function
Make sure to double check your syntax and spelling of the entire code. This sounds like you may have a typo in your code.
ily.
wdym all new
Wdym?
😊
TOWER AND MINES WOULD BE GREAT
help me Error: Cannot find module 'node:fs' Require stack: - C:\Users\Admin\Downloads\discord-bot\index.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15) at Function.Module._load (node:internal/modules/cjs/loader:769:27) at Module.require (node:internal/modules/cjs/loader:996:19) at require (node:internal/modules/cjs/helpers:92:18) at Object.<anonymous> (C:\Users\Admin\Downloads\discord-bot\index.js:2:12) at Module._compile (node:internal/modules/cjs/loader:1092:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10) at Module.load (node:internal/modules/cjs/loader:972:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\Admin\\Downloads\\discord-bot\\index.js' ] }
Hmm sounds like you may not have node installed correctly. When doing “node -version” in your terminal does an error come back?
I'm having issues with the code mostly with only deleting the console.log but the terminal has an error that says module not found 'dotenv'
If it says module not found then you would need to do “npm install dotenv” to install that module so that you can use it
I'm getting this error when I run the npm install discord.js (reason: unable to verify the first certificate)
You could try one of these fixes to see if it helps: stackoverflow.com/questions/40000952/unable-to-verify-the-first-certificate-when-running-npm-install
TypeError: isJSONEncodable is Not a function
Help pls
Check for typos, it looks like you maybe have typos in that file
SUPER!
hey man. I am able to deploy the command with no issues, but when I try to specifically use the /balance command, I recieve a popup stating "The application did not respond". I think I have found the problem within the startup. After typing "node ." to startup the bot it connects to the database and everything but it says... PS C:\Users\myuse\OneDrive\Desktop\Discord Bot> node . (node:11072) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version (Use `node --trace-warnings ...` to show where the warning was created) (node:11072) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version Ready! Logged in as The Villain Bot#1193 Connected to the database!
ah thats the exact error that im getting, this is the one bug that i can't seem to fix for some reason
same brother and you know if we close the site of mongodb it disconnects from the database and also the commands couldn't be run. I want that my bot works even when I'm not there in the server and don't need to open the vs code and then terminal and call for node . however this issue can still be resolved using heroku but still the database connection one sucks as I couldn't find any way to make it's connections permanent with my database without the IP address getting removed.
I found a way to solve this, thank god, and it was accidental. for me, i was missing a "profileData" keyword in the interactionCreate.js file. basically, around line 33 you must have this line somewhere inside a try { await command.execute(interaction, profileData); well.. i did not add the profileData parameter the first time, but once i did and then run the deploy-commands.js file to update my commands, it was working normally. @lancenewton9019 @charliepotts1442 @kaustubhmishra1574 i hope i can help at least one of you, in case this is your problem too. make sure to double check every part of your code and make sure that profileData is every where it needs to be, because otherwise i assume the bot wont respond since it cant grab your data from the database to display it.
thank you so much! i followed so many videos on how to do it, but for some reason yours work!
Glad to hear that! Good luck on your coding journey! :)
Mine says it can't find the module for my discord bot folder
What’s the exact error your getting and when does this occur?
python tutorial?
Hmmm maybe… are there no good quality python tutorials out there? If not I could dabble into that
More gamble commands please
pls make a video about buttons
12:12
how i can do it with canvafy for leaderboard with messages?
What’s that?
Says error cannot find module 'node.fs'
Sounds like node was not installed correctly. Try to reinstall node on your system
how can i know the random flip so i can win every time pls find a way
Yes bro i need to know
What do you mean? You would like a way to manually set what the coin flips to?
Hey man, I just wanna let you know your channel and videos are extremely underrated
Thank you so much bro! Really appreciate that!
i typed node . but nothing happen can someone help?
Hmm is there any errors?
It’s not in my server wtf
Oh no they have done some updates recently. Have you been able to get the link then select which server to add it to?
Errors I made: index, line 11: 16: The C "new Client" should be capital index, line 21: I guess my muscle memory took over because I typed "path.json" instead of "path.join" If you're having issues, try looking there!
Helpful thanks for sharing!
i dont know why, but when i try execute the command on discord it says "Application didn't answare" im kinda new to all this with JavaScript.. :/
Hmmm let me know if you still need any help!
dotenv won't make a new file when i do "npm install dotenv"
Yeah you will have to create the .env file in your directory yourself. But it needs that dotenv package to use it properly.
isn't start for me the bat has not loggin
Wut happened?
How can i fix "undefined coins" , i cant get rid of it
Most likely a typo somewhere in your code
I cannot figure out how to display the Global Name of user, since the username can differ what the user is actually known as in the server. I've tried for example to output ${user.globalName} but it never works, either it gives an error or says undefined. The globalname works like a charm in the footer though
Did you end up figuring this out?
What a great tutorial series, thank you very much!
You’re very welcome! Glad you enjoyed! Good luck on your coding journey
Your code is randomly changing after you type it, mine isn't doing that. Should I be concerned?
You didnt install the extension he showed in the second video
Control Coma doesnt do anything for me...
figured it out, just had to go to settings and manually open it
Amazing tutorial. Easy to follow, everything works, huge thanks man! Now let's setup a daily command :D
Really simple and easy first tutorial, can't wait to pursue my bot creation with your vids! I know how to code but I was kinda scared of setting everything up because I don't usually use node etc. but your video has made it amazingly easy. Thank you so much!
"Control COMA"