A
Admincraftβ€’2w ago
Ahraz

Turning the Server on and off through Discord

Hi. Does anyone know of a discord bot which can turn on and off a Minecraft server that I'm hosting on my computer. Ideally it should be spam proof. But technically all it has to do is run the bat file. Thanks
11 Replies
qvaras
qvarasβ€’2w ago
discordsrv console channel thats only for turning off though no clue how you'd start a server through discord
Ahraz
AhrazOPβ€’2w ago
thank you i just coded it myself (chat gpted it)
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
You can just use a bot that runs on the server host and have it listen for commands
bedwersXD
bedwersXDβ€’2w ago
sounds like a horrible idea if the permissions arent set up properly lol
SilentBot
SilentBotβ€’2w ago
Assuming the host uses Pterodactyl, the correct way is to just use the Pterodactyl API
Ahraz
AhrazOPβ€’2w ago
Does anyone know how I can know the number of people on the server and optionally who they are idk maybe through an API or specific console command and some weird ping of the IP
SilentBot
SilentBotβ€’2w ago
Minecraft query protocol or a plugin which exposes a way to get this data Though the query protocol only returns 20 random people after 20 players are on the server iirc
Ahraz
AhrazOPβ€’2w ago
hmm thats a pretty big catch
SilentBot
SilentBotβ€’2w ago
Yeah, it's a sample rather than a list
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
okay but its not even that hard to do it there is literally a tag for discordpy to only permit the use of certain commands to users with certain perms/roles not tag, decorator
Torrent
Torrentβ€’2w ago
._.

Did you find this page helpful?