Jump to content

I want to make something, but I have no idea how.

Hi guys,

I have something i want to run on my Minecraft Server PC - I want to make a Discord Bot that will come online when my server is online, and go offline if it is off. Bonus points if I can get the discord bot to say "Playing 9/23 Players" and have that update automatically. I don't have experience making discord bots or anything - But I'd like to try. Is this possible? I want to do this.

qυoтe мe pleaѕe!

Me at the Apple store: "So how fast is this little macbook?"

Apple employee: "Cheetah Fast. Lightning Fast. It's Really, really, fast."

Link to comment
Share on other sites

Link to post
Share on other sites

Bump

qυoтe мe pleaѕe!

Me at the Apple store: "So how fast is this little macbook?"

Apple employee: "Cheetah Fast. Lightning Fast. It's Really, really, fast."

Link to comment
Share on other sites

Link to post
Share on other sites

Do you know Javascript?  Most bots are made using Javascript, though using other languages is possible.

 

Discord's API is easy enough to integrate into the program, documentation found here. The other part is the Minecraft API, I found this which queries information.

 

I also found a Github repo for a bot that uses that API but it's command based. What you could do instead of commands is implement a loop which repeats after x amount of time that queries the server info. You could then have if statements that only trigger if the player stats or online/offline status changes.

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×