maxsupermanhd / FactoCord-3.0

Factorio bidirectional Discord bridge bot for Linux servers with control functionality.
Apache License 2.0
14 stars 10 forks source link

Go version #38

Closed szentigrad3 closed 4 years ago

szentigrad3 commented 4 years ago

noidea@exothermic:~/FactoCord-3$ sudo go build

_/home/noidea/FactoCord-3

./main.go:51:80: Factorio.ProcessState.ExitCode undefined (type *os.ProcessState has no field or method ExitCode)

maxsupermanhd commented 4 years ago
  1. You need to learn markdown syntax
  2. You don't need sudo on go build command, it will be fine with regular permissions.
  3. You need to update your go version, readme is wrong. Don't ask how to do it, you have google for that.
szentigrad3 commented 4 years ago

what version do i need?

TechnoStrife commented 4 years ago

1.12+

maxsupermanhd commented 4 years ago

1.14 will do the thing.

szentigrad3 commented 4 years ago

got 1.14 installed now getting this error > # _/home/noidea/FactoCord-3/discord discord/log.go:97:12: message.TTS undefined (type *discordgo.MessageSend has no field or method TTS, but does have Tts)

TechnoStrife commented 4 years ago

install discordgo 0.21+

TechnoStrife commented 4 years ago

you can install prebuilt binary from releases page

szentigrad3 commented 4 years ago

i did run go get github.com/bwmarrin/discordgo

TechnoStrife commented 4 years ago

for some reason it installed previous version

szentigrad3 commented 4 years ago

2020-07-09 20:33:24.558521902 +1000 AEST m=+0.000602856, _/home/TechoStrife/FactoCord-3.0/support.Critical @ /home/TechoStrife/FactoCord-3.0/support/error.go:74 An error occurred when parsing config.json: invalid character ']' looking for beginning of value

TechnoStrife commented 4 years ago

https://github.com/maxsupermanhd/FactoCord-3.0/blob/server/INSTALL.md#step-0 The last sentence.

TechnoStrife commented 4 years ago

There's an explicit message in the console: "Note that json5 may have several bugs, such as comment before ] or }"

szentigrad3 commented 4 years ago

i have done that same error

Welcome to FactoCord-3.0! Note that json5 may have several bugs, such as comment before ] or } An error occurred when parsing config.json You can post your issue on https://github.com/maxsupermanhd/FactoCord-3.0/issues

TechnoStrife commented 4 years ago

??

szentigrad3 commented 4 years ago

config.txt

TechnoStrife commented 4 years ago

Don't you understand that you should remove comments before ] or }? Also admin_ids is an array for a reason. Thx for the token btw