VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Code a Discord Bot with JavaScript - Host for Free in the Cloud

Code a Discord Bot with JavaScript - Host for Free in the Cloud

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn how to code a Discord bot using JavaScript / Node.js and host it for free in the cloud using Repl.it. You will also learn to use Repl.it's built-in database. - At 13:44, Replit now has a new method for environment variables. Read what to do here: https://docs.replit.com/programming-ide/storing-sensitive-information-environment-variables - Get 3 months FREE of the Hacker Plan on Repl.it (first 1000 people): https://repl.it/claim?code=tryalwayson2103 This course was developed by Beau Carnes. - Code a Discord Bot with Python Video: https://youtu.be/SPTfmiYiuok - Full code on repl.it: https://repl.it/-BeauCarnes/Encourage-Bot-JS - Online code editor: https://repl.it - Discord Home Page: https://discord.com/ - Discord Developer Portal: https://discord.com/developers/applications - Discord.js library: https://discord.js.org/ Need help with this tutorial? You can ask questions here: https://forum.freecodecamp.org/
Date: 2022-03-14

Comments and reviews: 10


i want to create 9 different folders with a ton of pictures in each on the replit site. then i want to set 9 commands, each command points to a folder. and the command will do a random picture from within that folder. originally i had all my folders on imgur, but couldn't figure out how to do a random picture from within a gallery. either way though, does anyone know how i can fully code a bot to do this?
reply

I have a small question, each time i put the token into the index.js file it brings up an error, says that it cant read the token properly and in the error it quotes a part of the token in between two periods, if i remove the periods it says invalid token, what do i do?
reply

this is outdated
i know i have a python pfp
but i know some js and this method is outdated
at the new Discord.Client
add intents like:
client = new Discord.Client(-intents: [-GUILDS-, -GUILD_MESSAGES-]-)
and install node js v16 on replit

reply

I've done the same bot as Zizyo and it works but now i'm trying to add a message command just like in 11:30 but it doesn't work can someone help ? (i've added all the permissions to read and send messages but still nothing goes out :/ )
reply

The bot gets online but the commands don't work I did everything the way it asked me too and I did the new method amd setted it up for Discord.js v13 but it gets online but it the commands don't work
reply

In your package.json, update
-dependencies-: -
-discord.js-: --12.5.3-
-
and the tutorial will go smooth for you, without worrying about the updated versions of discord.

reply

if code don't work, in shell do -npm install node-fetch-2.6.1- in shell and hit enter! then type -npm i discord.js-12.5.3- thats should make it work!
reply

The style of explanation is incredible! Its like he speaks the Code... never seen this before. Everything makes sense perfectly. Thanks a lot
reply

is there a way to make my bot look at certain sites and send me notifications if for example a price dropped to a certain number?
reply

Hey! When I make a file and do -.env- it says you cannot do that and does not let me create the file, can you please help?
reply
Add a review, comment






Other channel videos