Navist / Mindustry-DiscordBot

Gives Mindustry server owners the ability to run their console commands through a Discord channel.
GNU General Public License v3.0
2 stars 0 forks source link

Can you give me an example? #2

Open TheTrueInfinity opened 1 year ago

TheTrueInfinity commented 1 year ago

Hello, Can you give me an example?

TheTrueInfinity commented 1 year ago

The example how to fill the file

Navist commented 1 year ago

{ "discordToken": "", "host": "localhost", "port": "9999", "modRoles": ["587345008584032258"], "notAllowed": ["exit", "js", "host", "difficulty", "rules", "admin", "admins", "unadmin", "kick", "ban"], "absolutelyNotAllowed": ["stop", "exit", "js", "host", "difficulty", "rules", "admin", "fillitems", "search"], "owner": "4564564567897861" }

TheTrueInfinity commented 1 year ago

Still not working

TheTrueInfinity commented 1 year ago

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 2: invalid start byte

Navist commented 1 year ago

It's been a long time since I've used this bot. I will need to try and reproduce your error to gain a better understanding.

My best guess is that the operating system you are using has a default decoder set to something other than utf-8.

Navist commented 1 year ago

I am currently working to resolve this issue.

Navist commented 1 year ago

It took several hours but I've figured out the issue. The port in the config file needs to be the port for the socketInput. By default this setting is turned off so you have to go into your server console and type config socketInput true

You can find the port you need to put into config with: config socketInputPort