aguynamedjens / factoriochatbot Goto Github PK
View Code? Open in Web Editor NEWTwo-Directional chat bot connecting Discord and Factorio chats together, written in nodejs.
License: MIT License
Two-Directional chat bot connecting Discord and Factorio chats together, written in nodejs.
License: MIT License
Hi,
I'd like to run this in a docker image (to allow easy deployment). Would you accept a PR adding this? Then I can look into it?
And just to understand:
RCON is needed on order to send messages from discord -> factorio?
And you use the log file to go from factorion -> discord? Or where is that used for?
It does require manual save editing. The user would need to add custom events for this in control.lua
which is located in the save file.
They would be adding a line like so:
script.on_event(defines.events.on_rocket_launched, function(event) print("A rocket was launched") end)
I'll test it on my own factorio server soon. Will update this issue accordingly.
hi how do the ?online work cous for me it does not list online players and i enabled the consolechannel to true but it does not execute anny commands
Hi,
I don't like that the bots removes discord messages and re-posts it with a chat-balloon. I much more prefer discord to stay intact. I can easily comment line 98/99 to achieve this. Can we turn this into a setting? Or is there a specific reason why you did this? My Factorio channel is also used just for talking (and having no players in the server) so that's really the reason.
It looks like leave messages are not always handled. Didn't have time to look into this yet. I'm thinking of adding a PR that adds debug mode, just logs all received and send messages to stdout so you can see what the bot is doing. But I thought let's at least document this. Probably won't have time before tomorrow evening to do this :)
29499.783 Info AppManagerStates.cpp:1941: Saving finished
29973.149 Info ServerMultiplayerManager.cpp:1064: Disconnect notification for peer (2)
29973.149 Info ServerMultiplayerManager.cpp:946: updateTick(1252403) received stateChanged peerID(2) oldState(InGame) newState(DisconnectScheduled)
2022-01-26 18:06:44 [LEAVE] kkndvulcanic left the game
29973.150 Info ServerSynchronizer.cpp:627: nextHeartbeatSequenceNumber(1798073) removing peer(2).
[..]
31383.782 Info ServerMultiplayerManager.cpp:946: updateTick(1252453) received stateChanged peerID(5) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
2022-01-26 18:30:15 [JOIN] Mattie joined the game
[..]
33311.899 Info AppManagerStates.cpp:1941: Saving finished
33409.532 Info ServerMultiplayerManager.cpp:1064: Disconnect notification for peer (5)
33409.532 Info ServerMultiplayerManager.cpp:946: updateTick(1373859) received stateChanged peerID(5) oldState(InGame) newState(DisconnectScheduled)
2022-01-26 19:04:01 [LEAVE] Mattie left the game
33409.533 Info ServerSynchronizer.cpp:627: nextHeartbeatSequenceNumber(2004252) removing peer(5).
Describe the bug
Messages sent in the Discord channel does't appear ingame. Messages sent ingame do appear in the Discord channel. Also the startup messages appears in Discord channel and also ingame.
To Reproduce
Installed everything as described. I cannot find any error message.
Expected behavior
Messages sent in the Discord channel should appear ingame.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.