-
Couldn't load subscription status.
- Fork 80
Open
Description
The technology printer has a config ignore_script to ignore researches unlocked by script.
Lines 435 to 439 in f1fa20b
| research_printer = { | |
| enabled = true, | |
| print_to_force = true, -- print a message to force chat when that force finishes a new research. | |
| print_to_discord = true, -- print a message to the discord channel when the player force finishes a new research. | |
| ignore_script = false -- ignore researches unlocked by commands or by code. |
Just for the sake of discord, I think this config field should be either true by default, or re-check if event.by_script was true before printing it to our discord in order to avoid all the spam
RedMew/features/research_printer.lua
Lines 22 to 25 in f1fa20b
| if config.print_to_discord and force.name == 'player' then | |
| to_discord_bold(research_name .. ' has been researched.') | |
| end | |
| end |
Metadata
Metadata
Assignees
Labels
No labels