Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 70568a2

Browse files
committed
add in actions example to a config
1 parent e571e2e commit 70568a2

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Profiles/Factorio - Advanced Usage Example.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"filteredActions": [
99
{
1010
"condition": "[ALL]",
11-
"manipulator": "",
12-
"action": "[BESTNAME] subscribed themselves"
11+
"manipulator": "'themselves'",
12+
"action": "[ACTION_SubscriptionBy]"
1313
}
1414
]
1515
},
@@ -19,8 +19,8 @@
1919
"filteredActions": [
2020
{
2121
"condition": "[ALL]",
22-
"manipulator": "",
23-
"action": "[BESTNAME] was subscribed by [gifter_display_name]"
22+
"manipulator": "'[gifter_display_name]'",
23+
"action": "[ACTION_SubscriptionBy]"
2424
}
2525
]
2626
},
@@ -71,6 +71,13 @@
7171
]
7272
}
7373
],
74+
"actions": [
75+
{
76+
"name": "SubscriptionBy",
77+
"description": "prints who subscribed and by whom. CALCVALUE must be provided as a string as otherwise it will be run like code",
78+
"effect": "[BESTNAME] subscribed by [CALCVALUE]"
79+
}
80+
],
7481
"options": {
7582
"twitchMysterSubGiftMode": "donator"
7683
}

ToDo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Make a profile manager GUI
1313
Make so that profile startup errors are shown in a GUI and disable running until fixed.
1414
Have seperate Activity and System (status, warning, errors) logs
1515
Have a way to pause logs from updating and then resume to allow scrolling
16-
Support multiple calculated values via exec. Array in exec, to numbered strings in action script.
16+
Support multiple calculated values via exec. Array in to exec, to numbered strings in action script.
1717
Handle paused Factorio server accepting but not reply to RCON command. It will honor the command when the server is unpaused. So different between start test connection and event handling.
1818
Add a more complete test GUI with options to select subscription types, donation currencies, etc.
1919
Look at supporting Twitch PubSub directly so I can get the Channel Points. May also open up othe opportunities: https://github.com/twitchdev/pubsub-samples/tree/1638781c0c096c4be43493a86f2a75401256583b/python

0 commit comments

Comments
 (0)