1
0
mirror of https://github.com/FactoKit/FactoCord.git synced 2024-11-16 10:08:21 +02:00
A Factorio bot for Discord built in Golang.
Go to file
Allen Lydiard 46478701c6
Merge pull request #6 from Wadimich/master
New features and fixes
2017-11-03 13:13:26 -03:00
commands Cleaned up for golint. 2017-07-28 17:56:07 -03:00
linux Added support for running FactoCord as service. 2017-07-29 17:41:04 -03:00
support Now game name properly displayed as playing: something 2017-11-03 17:12:52 +05:00
.envexample Now game name properly displayed as playing: something 2017-11-03 17:12:52 +05:00
.gitignore fix gitignore 2017-11-03 20:35:17 +05:00
.travis.yml Create .travis.yml 2017-07-29 18:50:07 -03:00
LICENSE Create LICENSE 2017-07-26 20:53:20 -03:00
main.go Now game name properly displayed as playing: something 2017-11-03 17:12:52 +05:00
README.md updated readme 2017-11-03 17:16:16 +05:00

FactoCord -- a Factorio to Discord bridge bot for Linux

Go Report Card

Running

Make sure you have your .env file in the same directory as the executable/binary, you can use .envexample the template

There are two ways of starting FactoCord

  1. Using the start.sh bash script (bash start.sh or ./start.sh) (make sure you chmod +x the script first)
  2. Manually running the binary (./FactoCord)

Installing as a service

To install FactoCord as a service so that it can run on startup, you can use the provided service.sh

Note you must run service.sh as root/sudo to install it as a service

Example of running service.sh: ./service.sh factorio /home/facotrio/factocord/

Compiling

Requires go 1.8 or above

FactoCord uses the following packages:

You will need to add these lib as go get:

  • go get github.com/bwmarrin/discordgo
  • go get github.com/joho/godotenv
  • go get github.com/hpcloud/tail/...

To compile just do go build

Error reporting

When FactoCord encounters an error will log to error.log within the same directory as itself.

If you are having an issue make sure to check the error.log to see what the problem is.

If you are unable to solve the issue yourself, please post an issue containing the error.log and I will review and attempt to solve what the problem is.

Windows Support?

Currently I haven't had any luck getting FactoCord to run correctly on Windows, see this for information

If a way is found to fix this problem, then Windows support will be added.

Screenshots

restart command

mod list command

stop command

save command

in-game chat being sent to discord, notice how you can mention discord members

discord chat being sent to in-game

Special Thanks

  • Brett and MajesticFudgie for making the logo!
  • UclCommander for finding me the tails library which made this a lot easier to build.