The technology printer has a config ignore_script to ignore researches unlocked by script.
|
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
|
if config.print_to_discord and force.name == 'player' then |
|
to_discord_bold(research_name .. ' has been researched.') |
|
end |
|
end |
The technology printer has a config
ignore_scriptto ignore researches unlocked by script.RedMew/config.lua
Lines 435 to 439 in f1fa20b
Just for the sake of discord, I think this config field should be either
trueby default, or re-check ifevent.by_scriptwas true before printing it to our discord in order to avoid all the spamRedMew/features/research_printer.lua
Lines 22 to 25 in f1fa20b