Help obtaining BP string data when mentioned in chat
Posted: Fri Oct 02, 2020 3:43 am
Hello, I have a discord bot that syncs up the discord chat and factorio chat. One of my goal features is that when a user puts a blueprint in the chat, I wish for my bot to grab the corresponding string from the factorio server and render it into an image. The image can be rendered using the famous factorio BlueprintBot.
I cannot find a way for my bot to obtain the BP string with the factorio API, maybe I overlooked something?
checking the factorio server logs, all that is mentioned is:
This [special-item=internal_1] does not tell me anything other than that it is possibly located in the server files somewhere.
Please help me in finding a way to obtain the BP string in some fashion, either though the factorio API or through disecting the server files.
When you tell me how this can be done. please be sure that what you are talking about is tested as i am a complete novis when it comes to LUA and its API. I do not wish to waste hours debugging something that would never work because of my ignorance. thank your for your understanding.
thank you!
I cannot find a way for my bot to obtain the BP string with the factorio API, maybe I overlooked something?
checking the factorio server logs, all that is mentioned is:
Code: Select all
2020-10-01 11:01:16 [CHAT] SuperstalkerX: [special-item=internal_1]
Please help me in finding a way to obtain the BP string in some fashion, either though the factorio API or through disecting the server files.
When you tell me how this can be done. please be sure that what you are talking about is tested as i am a complete novis when it comes to LUA and its API. I do not wish to waste hours debugging something that would never work because of my ignorance. thank your for your understanding.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
thank you!