Skip to content
← Back to Community
How to create an always on bot for discord
Profile icon
EpicGamer007

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..
Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
Profile icon
EpicGamer007
Comments
hotnewtop
Profile icon
PattanAhmed

@AbhayBhat Hi,
There are two ways:-

The First way is:-

  1. Open this URL
    Click here
  2. Enter your Repl URL
  3. Done!

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

Profile icon
EpicGamer007

@PattanAhmed, uh, this is in python and I can't use that, Thanks for the pinger though!

Profile icon
PattanAhmed

@AbhayBhat Welcome!

Profile icon
PattanAhmed

@AbhayBhat What about the second website?
It's in Python
Thanks!

Profile icon
EpicGamer007

@PattanAhmed, no, i meant the second website is in python, so I cannnot use that cuz i dont know python

Profile icon
PattanAhmed

@AbhayBhat So, Which language do you want then?
Thanks!

Profile icon
EpicGamer007
Profile icon
PattanAhmed

@AbhayBhat Oh Ok!
Got it.
Thanks

Profile icon
PattanAhmed

@AbhayBhat Maybe try this:-
Click here
Thanks!

Hope this helps

Profile icon
ZainLokhandwall

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?

Profile icon
EpicGamer007

@ZainLokhandwall for what??? On repl, you need to have a http server, you cannot have a normal server

Profile icon
avibeskrowni

@JSer discord bot starter

Profile icon
gibbsfreenergy

You shud ask @mat1 he made someting like this but for repl.it.

Profile icon
EpicGamer007

@JosephSanthosh ok, you @'d him so I guess he would come and see this post soon.

Profile icon
gibbsfreenergy

@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!

Profile icon
SixBeeps

@JosephSanthosh This may be just a text post, but ow that hurt my ears.

Profile icon
gibbsfreenergy

@SixBeeps OMG! I'm so sorry. Are your ears ok? What happened to them?

Profile icon
DynamicSquid

@JosephSanthosh mat1 is active, he's a mod. he just doesn't post stuff, but he's watching us

Profile icon
gibbsfreenergy

@DynamicSquid i'm scared ... *walks away slowly and eventually starts running.

Profile icon
DynamicSquid

@JosephSanthosh also I don't do java, html, or css lol. I'm only good with c++

Profile icon
gibbsfreenergy

@DynamicSquid Oh ok. Well you are still a pro coder.

Pro-coder = Pro-squid

Profile icon
DynamicSquid
Profile icon
EpicGamer007

@DynamicSquid, proccessing isn't java, is it?

Profile icon
DynamicSquid

@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

Profile icon
[deleted]

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

Profile icon
EpicGamer007

@ImmaEatYouMan, yeah I just deleted my program on repl so people cant steal me token

Profile icon
Coder100

add an HTTP server and then
image

Profile icon
EpicGamer007

@Coder100, how do u do that?
IDK how to create an http server in java and don't you need hacker for always on repls?

And when I tried downloading JDA in repl, it says that it failed so I do not think it would work on repl..

Profile icon
Coder100

try maven @AbhayBhat

Profile icon
EpicGamer007

@Coder100, ok... how do u do that? im really noob at maven. isnt maven like java's npm but harder to use lol.

Profile icon
Coder100

lmao yeah @AbhayBhat

Profile icon
Coder100
Profile icon
EpicGamer007

@Coder100, uhh, if you have time, can I invite u to the repl then can u show me how to use maven?