egebilecen / PZServerDiscordBot

A Project Zomboid Discord Bot written in C# using Discord.NET to manage and execute commands on Project Zomboid Server.
GNU General Public License v3.0
70 stars 15 forks source link

question about executable #81

Closed n1L-is-nIL closed 1 year ago

n1L-is-nIL commented 1 year ago

Hi,

Is there any way that it is possible to allow triggering manual command input at the .exe prompt?

Example

I want to type some native PZ command directly into the executable itself.

Is there such a possibility?

egebilecen commented 1 year ago

Hey, if you mean typing commands to console, you can use !server_cmd command. Check the readme for more details.

n1L-is-nIL commented 1 year ago

I know about the existence of !server_cmd but I needed direct access to the prompt because I developed another bot that performs some checks in search of cheaters and when it finds it, it bans it through a command in the PZ, but how does your application run the server inside it I'm kind of unable to execute commands externally and since the discord bots don't communicate with each other, I can't execute my bot. Do you have any suggestions for this case?

egebilecen commented 1 year ago

I will try to update the bot and make it listen the commands from other bots as well. I should be updated the bot tomorrow.