Page 1 of 1

FactoCord - A Discord Factorio bot

Posted: Thu Jul 27, 2017 12:06 am
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

Re: FactorioCord - A Discord Factorio bot

Posted: Thu Jul 27, 2017 3:34 pm
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?

Re: FactorioCord - A Discord Factorio bot

Posted: Thu Jul 27, 2017 3:50 pm
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)

Re: FactorioCord - A Discord Factorio bot

Posted: Thu Jul 27, 2017 7:12 pm
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

Re: FactoCord - A Discord Factorio bot

Posted: Sat Jul 29, 2017 9:01 pm
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

Re: FactoCord - A Discord Factorio bot

Posted: Wed Aug 02, 2017 3:34 am
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?

Re: FactoCord - A Discord Factorio bot

Posted: Wed Dec 20, 2017 12:05 am
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

Re: FactoCord - A Discord Factorio bot

Posted: Thu Feb 07, 2019 12:26 am
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!

Re: FactoCord - A Discord Factorio bot

Posted: Sat May 04, 2019 2:20 am
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

Re: FactoCord - A Discord Factorio bot

Posted: Wed May 08, 2019 3:11 am
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!

Re: FactoCord - A Discord Factorio bot

Posted: Fri Oct 30, 2020 1:02 pm
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