How to make a Discord Bot Without Downloading Anything + Host it Online FOREVER
ฝัง
- เผยแพร่เมื่อ 26 ก.ย. 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
th-cam.com/video/wPtkvL9rUXg/w-d-xo.html
Command Handling - Separate all your commands into different files
th-cam.com/video/1KVGyUemRy0/w-d-xo.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.
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
Imagine finally found his channel
he lost it again
@@mousomi8306 ofc
@@mousomi8306 no need to worry
Good morning wakey wakey..
Oh wassup naruto fan
I just used chatgpt but I subbed and liked
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
Watching this tutorial makes me feel as if I have a future in Computer Science or anything tech related
me in replit every 5 seconds: THERE'S MORE?
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…
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💀💀💀
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)
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
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...
When I run the bot it stays offline :(
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
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
I use replit for school, and I had no idea it could be used for discord! Thank you!
how do i get the packgages tab open?
the packages are called dependencies 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.
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?
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);
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?
Wow I can Make Bot With this Tutorial for It! Very Great tutorial!
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
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
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
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
Bro gave me what I needed without me searching for it
How do you add packages?
@jonah_and_friends2346
@@SteroLazzzbottom left area with tools scroll down until u find dependencies and click it and there it is
Me: just makes the bot
Imagine: Writes a whole essay to make the bot online.
Also ty this was really helpful ^^
I'll save this video to my playlist because its important and i love coding
Ohh, first clear tutorial for discord amateurs! Subscribed! ❤️
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!!!!
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
omg repl is watching me it lierally told me the EXACT same code here as a suggestiion 😧😧
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
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
can u make tutorial for / command please? btw your videos are so good :)
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
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 ?
"Your bot could get hacked and raid your server, so just put your necessary that your bot needs."
**puts Kick and Ban**
SAME
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??
I love the pfp! Also, very helpful!
i cant make the .replit file
can someone help me?
and when i serch it it says ne result found
Awesome Video!
My dad also made a discord bot for himself B)
Ur dad is a frickin legend
Now add /dadjoke command lol
Nvm im doing this when im older im too lazy
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?
why is this error : sh: npm: command not found
when i make a file called .replit it says it already exists what do i do?
Idk:(
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
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
U just earned my sub❤ Ty for instructions
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
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
hi, 2023 here. I cannot for the LILFE OF ME find the "express" package.
in dire need of help
Bro IT DONT JOIN MY SERVER
when i tried making the .replit file it says that name is already taken
same why tho
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
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
can u send me the coding u did I AM TIRED
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
how has literally nobody else noticed that dogsong from undertale is playing and that the icon for his bot is literally toby
People notice, we just don't make a show about it.
yes imagine gaming play know that he have a channel where his poggers subscribers are waiting for his video
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
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
Bro there is no packages section in 2024
is called depencies now
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"
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 :(
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?
4:42 HE... Project is running!
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
JUST LEVE THE CODE IN THE COMMANTS
bro ur a lazy sack of shit
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
the bot is showing online but even if I write ping it does not reply
0:01 ok
Bro After doing everything even the code, it shows
"Package operation failed."
Aslo I just coped your code in the video
SAME ISSUE HERE
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
My brain hurts from watching this but the lack of knowledge I'm getting from this-
doesnt work + outdated
oh maybe because this video was 2 years ago? maybe that could be the reason retard
its been 2y wtf did u think 😂😂
@@ruiiwned fr like bro
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"
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);
says unexpected string at 1060 or somethin
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! :(
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
I did for like 4 hours and it didn’t work pls help me
same dude
[Verse 1]
Welcome to your life
There's no turning back
Even while we sleep
We will find you
[Chorus]
Acting on your best behaviour
Turn your back on Mother Nature
Everybody wants to rule the world
[Verse 2]
It's my own design
It's my own remorse
Help me to decide
Help me make the
[Chorus]
Most of freedom and of pleasure
Nothing ever lasts forever
Everybody wants to rule the world
[Bridge]
There's a room where the light won't find you
Holding hands while the walls come tumbling down
When they do, I'll be right behind you
You might also like
TOPIA TWINS
Travis Scott
making the bed
Olivia Rodrigo
K-POP
Travis Scott
[Chorus]
So glad we've almost made it
So sad they had to fade it
Everybody wants to rule the world
[Instrumental Interlude]
[Chorus]
I can't stand this indecision
Married with a lack of vision
Everybody wants to rule the-
Say that you'll never, never, never, never need it
One headline, why believe it?
Everybody wants to rule the world
All for freedom and for pleasure
Nothing ever lasts forever
Everybody wants to rule the world
What the heck
@@clip4er164yes
It’s fear to tears - everybody wants rule the world.
Bro type this in replit and it will make a song with codes😂
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
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?
6:34 i dont see it 😭
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
I ain’t doin allat
Hello, I've followed the tuturial (which is great btw) but for some reasons the ping pong part doesn't work
the bot is online, but the problem is that when I write "ping" bot doesnt reply
me too
my bot is active but does not reply back ,im not sure what I did wrong
if my friends ask me who is this person i subscribed too im gonna say "he helped me make my own bot!!"
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
For those who are doing these after 2 years of video upload, you will encounter guilds error you just have to change all guilds from only caps to first word cap.
how i do can code. i bad code. you can learn me the code?
when i create a folder .replit it says it already exists
did you find a solution yet? im here with the same problem
i have the same problem@@stas4323
same problem
Oh for God's sake it's a cookie logger
@@stas4323 ye delete .repllit