How to make a Discord Bot Without Downloading Anything + Host it Online FOREVER
HTML-код
- Опубликовано: 1 окт 2024
- Want to make a Discord Bot without downloading anything but also host it online forever? Awesome! This video is for you!
Is it still working in 2024? Yes it is, but do check the pinned comment.
In this video we're going to make a Discord Bot with downloading whatsoever + Make it stay online forever
Last year, I made a video about how to make a discord bot without downloading anything and that went very well but unfortunately some viewers were not ok with it because of the quality/how to add bot/how do you type that and more
also the video got a little outdated (thanks to DiscordJS v13)
so this time, I decided to make a updated video with better quality and more precision
Question: Why I can't paste in the shell?
If you're having trouble pasting the code in the shell, right click and paste.
Question: My repl.it is constantly getting deleted.
skip the replit file step.
-- Links --
Discord Developers Portal:
/ discord
Repl.it:
repl.it
Shell Code:
gist.github.co...
Uptime Robot:
uptimerobot.com/
If you want to learn the programming language that is used in this video, I've made a series specifically about it.
• Master JavaScript for ...
Need help with something?
Join my Discord Server:
▶ / discord
My Socials:
Discord: / discord
Github: github.com/ima... (I don't put source code there)
Instagram: / imaginegamingplayofficial
Website: imagine.cf
--------------------
Closed Captions/Subtitles Team:
▶ Heather7 muktayib (Spanish)
/ @heather7h
▶ CanadianQwerty (French)
/ @canadianqwerty699
▶
--
Tags-:
discord bot
discord js
how to make a discord bot
thiscord bot
discordjs bot
how to make discord bot without downloading anything
how to make a discord js bot
discord.js
discord bot no download
discord bot tutorial
how to make discord bot 24/7
how to make discord bot online forever
how to make a discord bot with 24/7 hosting
how to make a discord and host it online forever
----
Thank you so much for watching, be sure to subscribe so you don't miss the next part.
Peace 💖
*Update 18 July, 2022*
If your bot is not online and if you have followed the steps correctly, do the following:
Open Shell and enter this command:
npm install discord.js@13.9.0
This should fix your problem
also, if you're not able to create the .replit file, skip that part!
---------
Continue watching this series:-
Embeds - A special way to send message through your discord bot
ruclips.net/video/wPtkvL9rUXg/видео.html
Command Handling - Separate all your commands into different files
ruclips.net/video/1KVGyUemRy0/видео.html
OMG finnaly!
can we edit the message?
hey can you put the code here so we dont need to code
CAN U SEND THE BOT CODE HERE PLS IT WENT OFFLINE
@@stunning-swap7gaming oh, if offline you need to active it, go to like end of video, he teach how to fix.
Imagine finally found his channel
he lost it again
@@mousomi8306 ofc
@@mousomi8306 no need to worry
Good morning wakey wakey..
Oh wassup naruto fan
here's the code he did to get the bot online and responding to ping for whoever had problems following along like I did :
const express = require("express");
const app = express();
app.listen(3000, () => {
console.log("project is running!");
})
app.get("/", (req, res) => {
res.send("Hello world!");
})
const Discord = require("discord.js");
const client = new Discord.client({intents: ["GUILDS", "GUILD_MESSAGES"]});
client.on("message", message => {
if(message.content === "ping"){
message.channel.send("pong")
}
})
client.login(process.env.token);
the req, res part isn’t working for me and idk what to do
I can’t wait for part 2! I’ve always wanted to make a bot of my own but am unable to code because damn it’s complicated. Very very helpful!
Fr i dont know where to start like how do people remember all that
@@AliBounds even the programmers says that the language of coding can be English and only English
@@notnow7302 that’s tuff for the non English folks do you know at least a bit of it?
yeah the code is so hard
cant code either like wtf is the concept why did they make it so hard
I added a dad bot in my server💀💀💀
How is this possibly SO PERFECT..
No long intro, direct on the point simple explanations, nice tutorial...
You just gained a new subscriber......
Thank you
I have the same thing to say
@@ImagineGamingPlay why does it keep saying oauth2 doesnt have a bot
@@ImagineGamingPlay hey im having trouble with the part where u copy and paste the link to the url it keeps saying "OAuth2 application does not have a bot"
I first heard the tts and thought "oh another tts channel this probably wont be good" but its actually really well for a tts channel
OMG, Thanks so much for helping me in a long run I finally made my own 1st bot. I told my friends they didn't know much because they have many bots I was pretty happy
BUT NOW EVERYTHING CHANGED
how do i get the packgages tab open?
the packages are called dependencies now
I just used chatgpt but I subbed and liked
me in replit every 5 seconds: THERE'S MORE?
When I run the bot it stays offline :(
omg repl is watching me it lierally told me the EXACT same code here as a suggestiion 😧😧
This is absolute perfection, and is the most simple tutorial ever, I recommend this to EVERYONE
@@ninjago.clips_ shut up
@@ninjago.clips_ pressed mf 💀 "cry abt it"
YES.
It was TOOO FAST HOW COULD IT BE THAT SIMPLE
This retarded tutorial uses repl it for hosting your bot will go down constantly and you can get banned. 0/10
hello, the tutorial is great and everything but there is a problem with the programming. At the part where you said to create a new file and to name it .replit, I tried it too but after entering it said "a file or folder with that name already exists". Did I do something wrong? Please help me.
I have it too
click on the three dots option (next to add file and add folder), then click on "Show hidden files"
v
@@ImagineGamingPlay thank you
@@ImagineGamingPlay what do I do after?
Can you put the code that you use on 4:13 in the description so that people can copy paste it?
Here’s the code that was used in that vid:
const express = require("express");
const app = express();
app.listen(3000, () => {
console.log("project is running!");
})
app.get("/", (req, res) => {
res.send("Hello world!");
})
const Discord = require("discord.js");
const client = new Discord.client({intents: ["GUILDS", "GUILD_MESSAGES"]});
client.on("message", message => {
if(message.content === "ping"){
message.channel.send("pong")
}
})
client.login(process.env.token);
const express = require("express");
const app = express ();
app.listen(3000, () => {
console.log("Project is running!")
})
app.get("/", (req, res) => {})
res.send("Hello world!");
const Discord = required("discord.js")
const client = new Discord.Client({intents: ["GUILDS","GUILD MESSAGES"]});
client.on("messages", message => {
if(message.content === "hello")
message.channel.send("Hello")
client.login(process.env.token);
@@trxppinn i was having so much trouble until i found this! ty!!!!!!!!
@@m4shermantank475 anytime
didnt work
aaaaaaaaa
I am facing an error. When i click on start it showing me npm command not found. How to fix it?
Help is available in the discord server
Can someone help me? When I click run this shows: "Make sure your repl has a port open and is ready to receive HTTP traffic." But I entered everything correctly. PLS HELPP
Im having that too
Me too
check the repl file to see if you have entered the run = "npm run start" command
Watching this tutorial makes me feel as if I have a future in Computer Science or anything tech related
Nvm im doing this when im older im too lazy
Wow I can Make Bot With this Tutorial for It! Very Great tutorial!
Do you have updated coding for this? I followed your video but the bot doesn't come online.
Someone commented with the fix for it. Not sure if you found an answer a month ago but it is here now.
@@biancarosado5319 where??
Thank you, kind man!Your guide is the best and easiest to understand of all that I have watched.
oh it took me 5 hours to understand
(not a joke)
@@TheWeeklyRobloxReporter And it did not work for me (not a joke too)
I DONT KNWO HWO TO COPY THE LINK AND PASE IT IN SHELL ITS NTO WORKIGN (ITS NTO A JOKE)
IT TOOK ME " HORUS ONLY FOR THAT AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
A
@@guimguinleo i didnt even try because it looks way to complicated (not a joke either)
@@xxanomynousx7526 it was very easy because i mod and hack (not a joke either)
can u send me the coding u did I AM TIRED
It says me to enter redirect uri what to do?
ok so ı did the steps but in the replit part there is no packages part and there is no discord.js and express please help me
i have the same problem
I think it doesn’t work on mobile
the packages are called dependencies now
@@dalnori_steam the packages are called dependencies now
@@Nism0_pepr the packages are called dependencies now
6:30 code
const express = require("express");
const app = express
app.listen(3000, () => {}
console.log("project is running!")
})
app.get("/", (req, res) => {})
res.send("Hello world!");
})
const Discord = require("discord.js")
const clint = new Discord.Client(intents: ["GUILDS", "GUILD_MESSAGES"])
client.on("message", message => {
if(message.content === "ping") {
message.channel.send("pong")
}
})
client.login(process.env.token);
Getting error when hitting "Run"::
npm start
sh: 1: npm: not found
exit status 127
I got that same message I know im a year late but you have to go back to shell and run that github command
@@randomGuyOnTheInternet242it will fix it ?
great Video btw! just 1 question. how do I get it to talk? i redid the actual code about ten times now and when I type out ping the bot never responds?? what can I do???
Same
Half of the discord base is underaged how the fuck are they gonna do coding?????
when i make a file called .replit it says it already exists what do i do?
Idk:(
dude its not working in 2024 my screen 100% differnt i cant create a bot its already their i cant create or generate a URL i made a new appliction and their was already a robot built and when i select bot permisions it doesnt save and it wont generate a url for me discord broke their bot creation please help my pages look 100% differnt wont let me make a bot or Oauth2url or anything it wont save when i select perisons?
Maybe u have a different link/page
Yeah like my bot isnt working because of that or idk 😭😭😭 its changed i cant understand a single thinggg
FYI: this video is really old, currently discord.js v14 changed a lot of stuff and replit sucks aswell
@@Kiara-og3ww Bro are u dumb?
Hello! Wonderful tutorial by the way, but i have one single problem. When i was adding the replit file it said “a file or folder with that name already exists” when it doesn’t.. i followed every step, i watched the video again till that part but i didn't do anything different from you. Is there an explanation to my problem?
having the same problem
i figure it out! click on the three dots besdies the add file button and click show hidden files
@@kirbyoui thank you sooooo much!!!
@@kirbyoui wait, where do we put the npm thing in the file?? Do we delete the file and then put the npm thing????
@@zba1010 basically once you .replit from hidden files you delete everything from it
I ain’t jointing your discord server because you scammed me
Great tutorial but giving the code ( the big one ) would be appreciated
He does go in the discord and go bit commands and type -free
@@rohamaali8695 wait huh?
There's an issue with the syntax of your webserver code
. It's causing a lot of concerns. Plus, you can't make a ".replit" file when there's already one in "hidden files". It will not allow you. Please update this. Thanks!
same for me
Click on the three dots option (next to add file and add folder), then click on "Show hidden files".
You may delete the previous .replit and create a new one
do not delete replit.nix.
@@ImagineGamingPlay ill try it. thanks
@@ImagineGamingPlay thanks this helped
@@ImagineGamingPlay ty
Bro you serious? I tried like 2 times and my never came online
Same
Shell Code
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
Welcome
Same
My brain hurts from watching this but the lack of knowledge I'm getting from this-
It doesn't work! I wrote the code exactly like you did and still it doesn't work. Also i can't make a new file called .replit for some reason. Could you help me figure out what's going on here?
you have to have show hidden files enabled because . replit exists
Bro IT DONT JOIN MY SERVER
great tutorial this needs more views this is better than the one that has millions of views the guy would just be out of breath every second like bru. This one is gg easy and straight to the point
tati tutorial
There was already a file named .replit what should I do so I can't make a new file what should I do?
same for me
Bro After doing everything even the code, it shows
"Package operation failed."
Aslo I just coped your code in the video
SAME ISSUE HERE
can u make tutorial for / command please? btw your videos are so good :)
when i try to make the ".replit" file, its showing me a warning sign, what does that mean?
these days it wont work it happend to me , and when i pressed start the engine is broken or smth i think this tutorial is old ?! we need new update
You skip it the file is already premade
Hello, I've followed the tuturial (which is great btw) but for some reasons the ping pong part doesn't work
Update:
for those who had an error.
try again and make a new one
simply follow the steps and...
skip the .replit and yeah dont delete the .replit
and thats it...
and i had a mistake too
i type experience instead express (on the package)
thats why my code is not working
.replit doesnt work so where do I put the code
omgg tysm i was so confused
I've tried for 18 times I still can't figure out how to do it properly.
Yea still doesn’t work for me.
how
You explain it better than 90% of videos out there
But there's no explaining, just code for you to copy?
True he is better then those other youtubers
@@chantivegaming9703 Better how?
@@Chris-nc5xs This video is about how to make a discord bot that can host forever. wdym? or u want to make a bot without coding lol
@@OriginoSky more like a tutorial for people don’t know how to code. For the person learning code like me this video doesn’t explain anything so we cant learn anything from this vids. Maybe we can read the code ourselves though…
Got error SyntaxError: Error parsing /home/runner/Bot/package.json: Unexpected token
SON at position 154
Pls help
Add a comma on the end of the line before "start"
says unexpected string at 1060 or somethin
you can skip create .replit step or dont putting run = "npm start" if you have error with that step maybe can help you
yea i need help with that
hi! this didnt work for me but im sure its my fault and i probably made a typo somewhere while copying the code but i cant seem to find the problem, by any chance could you provide the full code for me to copy incase it was my typo error that made it not work? thanks a lot :))
I can't provide full code
@@ImagineGamingPlay ?
mjbu
@@ImagineGamingPlay why
const express = require("express");
const app = express();
app.listen(3000, () => {
console.log("project is running!");
})
app.get("/", (req, res) => {
res.send("Hello world!");
})
const Discord = require("discord.js");
const client = new Discord.client({intents: ["GUILDS", "GUILD_MESSAGES"]});
client.on("message", message => {
if(message.content === "ping"){
message.channel.send("pong")
}
})
client.login(process.env.token);
i cant make the .replit file
can someone help me?
and when i serch it it says ne result found
how i do can code. i bad code. you can learn me the code?
JUST LEVE THE CODE IN THE COMMANTS
bro ur a lazy sack of shit
It says: "Invalid bitfield flag or number: GUILDS"
What should I do?
Change the code up a bit like this:
const { Client, GatewayIntentBits } = require("discord.js");
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
});
replace with "Guilds" i had the same problem i guess they changed the syntax
I'll save this video to my playlist because its important and i love coding
my bot is active but does not reply back ,im not sure what I did wrong
can you put the code link in the description so i can copy it
nice tutorial btw!
yeah my code isnt working for some reason, it says theres a crash loop but it would be a lot easier if i could copy and paste the code.
@@whonus3906 Yeah I have the same thing
"Your bot could get hacked and raid your server, so just put your necessary that your bot needs."
**puts Kick and Ban**
SAME
when i tried making the .replit file it says that name is already taken
same why tho
Bro there is no packages section in 2024
is called depencies now
Another way to keep is always on is with a replit bug: Run the repl and then close the tab. It'll stay running on their servers until you go in and stop it.
it didn't work to me because the repl said that my code are error, especially at the npm
yeah same
same it was a waste of time for me
ugh
same
same
mine didnt work because "node ." didnt work
yes imagine gaming play know that he have a channel where his poggers subscribers are waiting for his video
Worst tutorial ever
It took me 1 hour to do the code and I accidentally closed the tab
NOW I LOST ALL MY WORK
what an idiot, thats your fault for deleting the tab and what did you expect? ofc it would take an hour
@@lantempo nigga
Awesome Video!
My dad also made a discord bot for himself B)
Ur dad is a frickin legend
Now add /dadjoke command lol
4:00 I'm stuck on that part because when I click create new file and write .replit it tells me that there is already a file with that name, can someone help me?
click the three doted buttons and click "show hidden files"
@@dinomasterbanana1648 thx
@@dinomasterbanana1648 you just saved my life
What do I delete
In hidden flies
when i make the .replit folder it says that the folder already exist but i look for it theres none
you dont need the .replit
show hidden files
The music tho ! What is this remix ?
3:32 - 3:35 confused me the most. Where did you get that code?
its the shell, its built in
I’m fucking losing my mind
I need help and I can’t get to there discord
TWO HOURS WASTED
Ig im the only one this doesn’t work for
It don’t work for me either. It’s says npm not found for me
0:01 ok
It doesn't work... thanks for nothing. When I run the code it gives errors and the website doesn't open
Great Video! I have been trying to find many different ways to creat discord bots for my server. This is super ez and straight to the point. I don't know why this doesn't have at least 1 million views this is legendary. Love It! U just earned a new sub. Keep up the good work and I will be here for when u blow up
lol :p
tati video
well about 1 million views...
amazing ! so glad i found you, you're the only one that helps me ! can't wait for part 2 & more information :)
lora amazing
where is part 2
At 4:02 , i can't add .replit because it says that the file is already made, and my shell looks different. What should I do?
yes same for me
click on the three dots option (next to add file and add folder), then click on "Show hidden files"
Excuse me, @Imagine Gaming Play I did just that and it already had a ton of code do I delete them? It says things like entry point, interpreter, and more but is their anyway I could give you a picture of it? If you do see this thank you for your time.
@@aroshootingarrows yes you may delete it and create a fresh .replit file
Thanks for answering. Sorry for the late reply.
Have a good day/night/morning
999k views damn, 1k more views needed
I did for like 4 hours and it didn’t work pls help me
same dude
It's easier to create bots on guilded. If discord added that function it would be good
This tutorial seamed really easy and easy to follow until i got to the part where you needed to edit the code on line 6 (3:42) I couldn't find the line of code anywhere in mine did i do something wrong before?
same! :(
I thought it was easyyyy😭😭😭
There's so much to do for just a bot?!
you are literally coding something so
🤷♂
Me: just makes the bot
Imagine: Writes a whole essay to make the bot online.
Also ty this was really helpful ^^
Thanks! had some trouble since this tutorial is a bit old and they added new features, but i was able to do it.
I cant paste the code to replit can I get some help please.. his github says its private now and I cant copy it. I tried writing it there but it didnt work..
@@palaceyt4068 npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
@@palaceyt4068 npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
Hey! Do you know where to locate packages in replit? 2024's got a new look!
@@manuespiritu no idea thats a problem for me too
I use replit for school, and I had no idea it could be used for discord! Thank you!
I ain’t doin allat
Hey bro.
Thanks to ur tutorial.
Its easy to understand.
Im now having a private discord bot :D
Btw how do i make so the bot have a prefix?
change the messages your bot replies to to only have a certain character before the message. So It will say If the message Is equal to ".ping" It will reply with "pong"
Hi there! Thank you for the GREAT video tutorial, i could make my first bot without huge knowledge in coding! The bot is running, works perfectly on my DC channel, but if i close the web browser (or the tab with replit on it), the bot goes offline. I cannot make it run "for ever". Maybe i made a mistake somewhere... :( Sorry for asking, but do you have any idea what's wrong with it? Thank you, and sorry again!
Use betteruptime.com/
oof
@@ImagineGamingPlay . replit file already exists showing
ye me too
@@sabanamalitya249
It doesn’t work
Because this is discord js13 or even 12 or maybe 11
You’re using v14 find different videos
It’s because it was made two years ago
It does with a bit of changes
can u put the freaking code i was asking this for years
For those on mobile i have a solution to your problem
Create a .replit fole
Type run = "npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH"
And run the file and then you can delete the .replit file or put what you want in there
Your welcome
How do I create a .replit file
@@Meropespica click on add file
@@Meropespica see video properly
Does not work in “Nmp why?
@@MxzyyFn what u want?
A member in my server asked for a bot and usually my co-host handles those but she is offline so i had to handle it so thanks for this video!
Just curious did you get the paste for the shell to actually paste? I can’t get it
Nvm
When I try to make the .replit file, it says "a file or folder with that name already exists". Do you know the problem?
same to me
if u click the three more buttons then select show hidden files one is called .replit
@@jennicaldwell3945 OMG DUDE TYSM
read the description dumbass
node:internal/modules/package_json_reader:93
throw error;
^
SyntaxError: Error parsing /home/runner/AcclaimedOffshoreInverse/package.json: Expected ',' or '}' after property value in JSON at position 163
at parse ()
at read (node:internal/modules/package_json_reader:80:16)
at readPackage (node:internal/modules/package_json_reader:141:10)
at readPackageScope (node:internal/modules/package_json_reader:164:19)
at shouldUseESMLoader (node:internal/modules/run_main:72:15)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:129:24)
at node:internal/main/run_main_module:28:49 {
path: '/home/runner/AcclaimedOffshoreInverse/package.json'
}
Thank you so much :D it was really easy to follow
I really wanted to have to the console code pasted in the description, it also did not work for me and that is probably my fault. But this video is actually really helpful.
You have to right click and paste on the shell
@@ImagineGamingPlay plz do i need type link?
@@Trunks_thealt no you copy link and paste in shell by rightclicking
same :(
I despised reality for not having proper bot hosting, thanks man, you saved my bot. You're an Imagination (pun intended)
My bot is going offline. Can you share your bot hosting experience?
the bot is showing online but even if I write ping it does not reply
THANK YOU SO MUCH!!!!! I could never find a tutorial that worked, so I gave up after a bit. Then I stumbled acrost your video, and it worked!!!!
Ohh, first clear tutorial for discord amateurs! Subscribed! ❤️
I have been searching for a quotation mark tutorial. Thank you! (btw good vid)
lol