How to create an always on bot for discord
Hi
I recently got discord, I tried creating bots with java. It worked, except for one problem, if I terminate the program from eclipse, after some time, the bot goes offline and then it you cannot use it anymore. How do I make this not happen?
Thanks to all answers :)
Oh yea, I am new so I am new to discord so please don't judge me for having trash discord skills..
It is giving me the eror message
Hmmmm.... We Couldn't Reach Your Repl
Make sure your repl has a port open and is ready to receive HTTP traffic.
What do I do?
@ZainLokhandwall for what??? On repl, you need to have a http server, you cannot have a normal server
@JSer discord bot starter
You shud ask @mat1 he made someting like this but for repl.it.
@JosephSanthosh ok, you @'d him so I guess he would come and see this post soon.
@AbhayBhat NOPE DEFINITELY NOT! THIS GUY IS NOT ACTIVE AT ALL ON REPL.IT ANYMORE.
Maybe @Coder100 or @DynamicSquid can help you, they are the best when it comes to Java, HTML, CSS!
@JosephSanthosh This may be just a text post, but ow that hurt my ears.
@SixBeeps OMG! I'm so sorry. Are your ears ok? What happened to them?
@JosephSanthosh mat1 is active, he's a mod. he just doesn't post stuff, but he's watching us
@DynamicSquid i'm scared ... *walks away slowly and eventually starts running.
@JosephSanthosh also I don't do java, html, or css lol. I'm only good with c++
@DynamicSquid Oh ok. Well you are still a pro coder.
Pro-coder = Pro-squid
@JosephSanthosh thx lol
@DynamicSquid, proccessing isn't java, is it?
@AbhayBhat it's a java library, but all the java parts are abstracted away. the only true java in processing is the OOP. so the only java I know is java's oop
i honestly don't know, I have been facing the same problem on Visual Studio code. I do it on there because I don't want people stealing my bot
@ImmaEatYouMan, yeah I just deleted my program on repl so people cant steal me token
add an HTTP server and then
try maven @AbhayBhat
@Coder100, ok... how do u do that? im really noob at maven. isnt maven like java's npm but harder to use lol.
lmao yeah @AbhayBhat
@Coder100, uhh, if you have time, can I invite u to the repl then can u show me how to use maven?
@AbhayBhat Hi,
There are two ways:-
The First way is:-
Click here
The second way is amazing
Read this amazing article to get your question solved!
Click here
Hope this helps
Please mark my answer if this helps
@PattanAhmed, uh, this is in python and I can't use that, Thanks for the pinger though!
@AbhayBhat Welcome!
@AbhayBhat What about the second website?
It's in Python
Thanks!
@PattanAhmed, no, i meant the second website is in python, so I cannnot use that cuz i dont know python
@AbhayBhat So, Which language do you want then?
Thanks!
@PattanAhmed, java? It says java in the description, and please do not give me these sites:
https://dzone.com/articles/simple-http-server-in-java
https://www.codeproject.com/tips/1040097/create-a-simple-web-server-in-java-http-server
thanks.
@AbhayBhat Oh Ok!
Got it.
Thanks
@AbhayBhat Maybe try this:-
Click here
Thanks!
Hope this helps