GithubHelp home page GithubHelp logo

aguynamedjens / factoriochatbot Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 9.0 180 KB

Two-Directional chat bot connecting Discord and Factorio chats together, written in nodejs.

License: MIT License

JavaScript 93.37% Dockerfile 6.63%
chat-bot factorio factorio-server factorio-tool game-chat

factoriochatbot's People

Contributors

aguynamedjens avatar yuorfaec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

factoriochatbot's Issues

Adding a docker image

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?

Ability to add more events besides join/leave and chat messages.

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.

[BUG] command form discord

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

No 'fancy' discord messages setting

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.

Leave messages are not always parsed / posted

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).

image

[BUG] Messages sent in Discord doesn't appear ingame

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.