Skip to content

Factorio to Discord chat bridge and server manager, written in golang.

License

Notifications You must be signed in to change notification settings

M45-Science/ChatWire

Repository files navigation

M45-ChatWire²

License: MPL 2.0
Go ReportCard CodeQL BinaryBuild

Requirements:

Linux
Golang 1.19+

ChatWire is currently approximately 8500 lines of go code. Launching will create a default auto-config to get you started.
Needs permissions to create files and directories in its own directory, and up one directory.

Some dirs and files that can be auto-created:
cw-local-config.json, ../cw-global-config.json
cw.lock, ../playerdb.json
../map-gen-json/, ./logs/, ../update-cache/, ../public_html/archive/
Discord token, appid, guild-id and channel-id are required, as well as Factorio username and token.

Default path layout:

A 'base' folder the chatwire folder resides in.
~/factServers/

For ChatWire:
./cw-a/ChatWire-binary-here

Factorio:
./cw-a/factorio/

Binary:
./cw-a/factorio/bin/x64/Factorio
This is setup to have many servers running, and so some files and directories are setup to be common.

Launch params:
Usage of ./ChatWire:
-deregCommands
Deregister discord commands
-localTest
Turn off public/auth mode for testing
-noAutoLaunch
Turn off Factorio auto-launch
-regCommands
Register discord commands