How to make a Discord Bot Without Downloading Anything + Host it Online FOREVER
Vložit
- čas přidán 20. 12. 2021
- 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.com/ImagineGaming...
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/imaginegamingplay (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 💖 - Jak na to + styl
*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
czcams.com/video/wPtkvL9rUXg/video.html
Command Handling - Separate all your commands into different files
czcams.com/video/1KVGyUemRy0/video.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
Imagine finally found his channel
he lost it again
@@mousomi8306 ofc
@@mousomi8306 no need to worry
Good morning wakey wakey..
Oh wassup naruto fan
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
I love the pfp! Also, very helpful!
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
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
I have been searching for a quotation mark tutorial. Thank you! (btw good vid)
lol
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
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...
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.
Underrated CZcamsr
U just earned my sub❤ Ty for instructions
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)
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
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
Hey, I have done every single command but when I run the commands, it loops. Why does it happen? Please help, thanks
Watching this tutorial makes me feel as if I have a future in Computer Science or anything tech related
thanks dude youre the most good guy of tutorials but it almost breaked my fingers lol
I added a dad bot in 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
According to the bacteria in the corner
Robots don’t breathe
tati tutorial
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…
cant believe this still works 2 years after this video was made!
this is amazing! And TYSMM! I now have a bot!
Thank you so much :D it was really easy to follow
I use replit for school, and I had no idea it could be used for discord! Thank you!
me in replit every 5 seconds: THERE'S MORE?
love how u say without downloading anything but we still have to download stuff
This is super helpful, thankyou!
Ohh, first clear tutorial for discord amateurs! Subscribed! ❤️
hey i am trying to build a bot through your tutorial but i am having some problems
1. whenever i try to run the bot it shows an error in discord.js . how do i fix it
2.if i want to '/' commands like /afk
3. how do i add other commands like say , ban, mute etc
I'll save this video to my playlist because its important and i love coding
Nice, now I can have my own bot for my server. Thanks!
It says: "Invalid bitfield flag or number: GUILDS"
What should I do?
Question: there’s some automatically written code in my .remplit file! 😚😨do I erase that
I despised reality for not having proper bot hosting, thanks man, you saved my bot. You're an Imagination (pun intended)
Thank you so much for this tutorial! It was very helpful.
For people wondering about the bot monitoring:
In new versions of the website, increase the Monitoring Interval to 5 mins, because of the free plan. Also, untick both check boxes because of the free plan. Don't worry about the extra stuff at the bottom, just press create. Hope this is helpful if you get stuck :)
how do you increase the monitoring?
@XCO tf
Can you do this for me I’m like trying everything and I js don’t think I have what to do it and I’mlike so annoyed 😞
Im stuck there’s no link to copy. 😭
Thank You so much
I have created my bot right now and its responding
so, I'm going to upgrade it
This helped me alot thanks man
when i make a file called .replit it says it already exists what do i do?
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!!!!
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 uh i kinda need help so the problem is idk how to code and can you add the script you added for the bot?
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
can u make tutorial for / command please? btw your videos are so good :)
i have a problem. my discord bot has been going on for about 6 months now. and its offline, and never respons to commands, ive kicked it out, made it rejoin, even deleted the code and retyped it. but still nothing. ive typed in on shell npm install discord.js@13.9.0 and still nothing, the only thing different about mine and your code is in the line client.on ("message", message => { is that the second message is in italics and blue and mine isnt any idea how to fix this?
same
Ty bro, appreciate dis❤🎉
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?
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
so i have a problem because the bot is online but he's not replying what should i do?
very good tutorial!
this tutorial was very clear! I loved it it was so helpful thank you!
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
@@kirbyiskool thank you sooooo much!!!
@@kirbyiskool 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 changed the bots name on the developer portal after doing all the coding and he stopped being offline how do i fix that
When i attempt to run the replit, it shows in red text: “SyntaxError: Error parsing /home/runner/hello/package.json: Unexpected token } in JSON at postion 142”
how do i fix this?
not fixable except version 13.9.0 i think
Can’t wait for part two. This was a very informative video, thank you.
Coming soon!
@@ImagineGamingPlay you are awesome bro just love you
@@ImagineGamingPlay do you have a link to the bg music used when you are coding the bot?
@@ImagineGamingPlay Hey you, this video didn't tell me their issues with a bot being fucking online, you need fixing not fake advertising
@@ghj743tf what?
Thanks, you helped my realm! Here’s a subscriber
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"
SyntaxError: Error parsing /home/runner/Bott/package.json: Unexpected string in JSON at position 143
Hint: hit control+c anytime to enter REPL.
ummmm heelp it not working
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??
Hey ik this is late but what does it mean if i have to make sure the port is opened and it's ready to receive HTTP traffic?
The best tutorial, it works.
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
you must add commands yourself to the bot,
When i go in the secret tab it just say "How can replit protect..." and blah blah blah but i cant see the token stuffs
it does not work for me, it shows:
ReferenceError: reqire is not defined
at Object. (/home/runner/mybot/index.js:12:17)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
Hint: hit control+c anytime to enter REPL.
Project is running!
Someone help bc I made my bot and when I use the commands it says only I can see it I wanna make it so others can see it to like how normal bots do!!!!!
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
Thanks bro, you truly helped me. I recommend this for anyone who needs help functioning a bot
it says SyntaxError: Error parsing /home/runner/Neco-bot/package.json: Unexpected string in JSON at position 145
im typing in exactly what you have here but it says "sh: npm: command not found" literally no matter what i do
It's easier to create bots on guilded. If discord added that function it would be good
Awesome Video!
My dad also made a discord bot for himself B)
Ur dad is a frickin legend
hello, watching this from 2 years ago from now, the new file named ".replit" is when you make the new file it shows "file name already exists" is there a solution for that?
the bot is online and the code seems to be running fine, the problem is it doesnt return the messages in the channel
For some reason, when I made a new file and typed it as ".replit" it said I already had a file named like that
Yeah, I have the same problem too. And it doesn't run, which is odd. Not sure what I'm doing wrong here :')
I dont understand but when you said your bot should be online, mine isnt :/ likes when you press run, mine say " Replit: Package operation failed." so should i give up my bot or ?
update : I'm giving up. im so tired its been hours since i tried to figure out what i did wrong. i'm just giving up.
The error is coming from package.json. please show me your package.json
*"test": "echo \"Error: no test specified\" && exit 1,*
"start": "node ."
you have to add the comma
mine still says replit: package operation fail ToT
Hey uh, so for the add new file “.replit” it says that a file or folder with that name already exists. I can’t carry on with my project
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
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
When I want to create a file with .replit it refuses it and close it
help please when you say to copy the token into the secret, for me it doesnt have a copy button it just has "reset 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
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
This really worked TYSM
if my friends ask me who is this person i subscribed too im gonna say "he helped me make my own bot!!"
Hi, i need help ;-;
when i try to run the program it just says:
nmp start
sh: nmp: command not found
exit status 127
I didn't delete replit.nix and i have the code (run = "nmp start") on .replit so i am confused- please help!
its npm not nmp
same problem...
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
Thank you ! and thanks to your staff to
what permission is the welcome? Like, a welcome channel for a bot permission?
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! :(
Please make a more up-to-date version of this video
The combination of me looking for stuff only to realize it's not even there and the speed of the video makes it hard to complete anything
Everything up until the shell part was fine
Aside from that, this tutorial was pretty easy to follow and well-explained
Me too 😡
And I’m using mobile
@@tomatoesims No, all on computer but some of the features in the video aren't up-to-date with the current ones
its called changing the speed duration
cant paste the shell, is that the same issue u were having?
This is an actual best tutorial in the world
bro u can help me i wanna press a run but he say npm start sh: 1: npm: not found exit status 127
@@rawezhgaiming2715 I used to be an IT expert back then but I'm not anymore so stop asking me like I'm tech support
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
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
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 :))
Same :(
I can't provide full code
@@ImagineGamingPlay ?
mjbu
@@ImagineGamingPlay why
It wont let me make a file named .replit it says that the file already exists
can anyone help me with that?
i got this error help please "unable to decode .replit: toml: line 1: expected '.' or '=', but got 'e' instead"
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
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
hey Mines stuck on "Please Enter A Reirect uri" What do I do its where the Generated url is supposed to be