FactoCord - A Discord Factorio bot

Find multiplayer games.
Tools/scripts to run a dedicated server.
FMCore
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jul 27, 2017 12:03 am
Contact:

FactoCord - A Discord Factorio bot

Post by FMCore »

FactoCord
What is it?

FactoCord is a Discord bot built in golang that acts as a bridge bot between your Factorio in-game chat on your server and your Discord channel.

https://github.com/FactoKit/FactoCord

Lemme know what you think of it and if you have any issues please let me know either here or on the repo's issues page.

Thank you!
How does it work?
It basically acts like a wrapper for the Factorio server, the output that you see in the console is written to a log file within the same directory as the program and then tailed to allow the program to send the in-game chat to the channel on Discord.

To allow chat messages from discord to be sent to in-game, the Standard Input uses a pipe that allows the chat to be sent as input to the console, but because of this in the current release it unfortunately doesn't allow direct input from the console window (meaning you can't type commands within the console window directly anymore); however, in a future release I will be aiming to fix this problem.
Screenshots
Screenshots:
Image
Image
Last edited by FMCore on Fri Jul 28, 2017 2:53 am, edited 2 times in total.
User avatar
fechnert
Inserter
Inserter
Posts: 32
Joined: Fri Jun 30, 2017 12:48 pm
Contact:

Re: FactorioCord - A Discord Factorio bot

Post by fechnert »

FMCore wrote:but because of this in the current release it unfortunately doesn't allow direct input from the console window (meaning you can't type commands within the console window directly anymore)
What does this mean? That the functionality to see Discord-messaged ingame won't work?
Image[url=steam://friends/add/'.76561198066150999.']Image[/url]
FMCore
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jul 27, 2017 12:03 am
Contact:

Re: FactorioCord - A Discord Factorio bot

Post by FMCore »

fechnert wrote:
FMCore wrote:but because of this in the current release it unfortunately doesn't allow direct input from the console window (meaning you can't type commands within the console window directly anymore)
What does this mean? That the functionality to see Discord-messaged ingame won't work?
It means that you won't be able to type in a command to execute from the terminal running the headless server, that being said I have it fixed with the latest update (and after a few more bug fixes I'll release version 1.1 of the bot)
FMCore
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jul 27, 2017 12:03 am
Contact:

Re: FactorioCord - A Discord Factorio bot

Post by FMCore »

Version 1.1 released
This new release introduces the following features

  • - Custom parameters for launching servers
    - Supported added for mentioning discord users
As well as various bug fixes.

You can grab the latest version here https://github.com/FactoKit/FactoCord/releases/tag/1.1
FMCore
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jul 27, 2017 12:03 am
Contact:

Re: FactoCord - A Discord Factorio bot

Post by FMCore »

FactoCord 1.2 released!
This release adds some new features including 3 new commands and the ability to run FactoCord as a service and bugfixes.

You can grab a copy of it here https://github.com/FactoKit/FactoCord/releases
vedrit
Filter Inserter
Filter Inserter
Posts: 293
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Re: FactoCord - A Discord Factorio bot

Post by vedrit »

Very cool. Documentation needs a little work, and it'd be nice to see more commands, such as Factorio version. Also, is it possible to display the mod version number?
User avatar
Redstylt
Fast Inserter
Fast Inserter
Posts: 154
Joined: Sun Mar 27, 2016 3:19 pm
Contact:

Re: FactoCord - A Discord Factorio bot

Post by Redstylt »

vedrit wrote:Very cool. Documentation needs a little work, and it'd be nice to see more commands, such as Factorio version. Also, is it possible to display the mod version number?
I'm agree with him :) Good job but need more docs
I'm an amateur in linux so a step by step guide of install could be really good :)
Thx
Just a big fan of Factorio and all its mods
Early Wynn
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Oct 08, 2017 5:30 pm
Contact:

Re: FactoCord - A Discord Factorio bot

Post by Early Wynn »

I am running a Headless server on a Win Server... Would be great if there is the same solution for windows. I think i've seen your bot running on the Redmew servers and would be happy to implement a bot to my servers too... Great job here a must have!
cmdr.adama
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat May 04, 2019 2:13 am
Contact:

Re: FactoCord - A Discord Factorio bot

Post by cmdr.adama »

Hey all,

It seems as though FactoCord hasn't been worked on for a while and I decided it was time to do a bit of improvement...

FMCore, please roll this into the main project :)

Here's what is new:
Rewrote the Commands.go and main.go files to allow for arguments
Added Kick, Ban and Unban commands
Added a command to list the current commands.
Image

you can find my fork here.
https://github.com/thecmdradama/FactoCord-2.0
vedrit
Filter Inserter
Filter Inserter
Posts: 293
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Re: FactoCord - A Discord Factorio bot

Post by vedrit »

cmdr.adama wrote: Sat May 04, 2019 2:20 am Hey all,

It seems as though FactoCord hasn't been worked on for a while and I decided it was time to do a bit of improvement...

FMCore, please roll this into the main project :)

Here's what is new:
Rewrote the Commands.go and main.go files to allow for arguments
Added Kick, Ban and Unban commands
Added a command to list the current commands.
Image

you can find my fork here.
https://github.com/thecmdradama/FactoCord-2.0
Woo! Thank you!
ChrislyBear
Burner Inserter
Burner Inserter
Posts: 14
Joined: Thu Jul 05, 2018 7:46 am
Contact:

Re: FactoCord - A Discord Factorio bot

Post by ChrislyBear »

Is this still just a wrapper for the headless server? Wouldn't it be possible to communicate via a mod, that reads and writes to a file, for example?

Chris
Post Reply

Return to “Multiplayer / Dedicated Server”