Ask coding questions

← Back to all posts
How to create an always on bot for discord
EpicGamer007 (1765)

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 (1404) [earned 5 cycles]
View Answer
Comments
hotnewtop
PattanAhmed (1404)

@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

EpicGamer007 (1765)

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

PattanAhmed (1404)

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

EpicGamer007 (1765)

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

PattanAhmed (1404)

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

PattanAhmed (1404)

@AbhayBhat Maybe try this:-
Click here
Thanks!

Hope this helps

ZainLokhandwall (0)

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?

EpicGamer007 (1765)

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

JosephSanthosh (1181)

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

EpicGamer007 (1765)

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

JosephSanthosh (1181)

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

SixBeeps (5225)

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

JosephSanthosh (1181)

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

DynamicSquid (4891)

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

JosephSanthosh (1181)

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

DynamicSquid (4891)

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

JosephSanthosh (1181)

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

Pro-coder = Pro-squid

EpicGamer007 (1765)

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

DynamicSquid (4891)

@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

[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

EpicGamer007 (1765)

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

Coder100 (18057)

add an HTTP server and then

EpicGamer007 (1765)

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

EpicGamer007 (1765)

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

EpicGamer007 (1765)

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