Skip to content

Commit ec40e6c

Browse files
committed
tpn: fix some typos and sync docs
1 parent 5026a89 commit ec40e6c

2 files changed

Lines changed: 24 additions & 13 deletions

File tree

‎src/content/tpn-script-reference.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ In any string, if you have a bit that looks like `%name`, it would be replaced
146146
by the contents of that variable - or by nothing if the variable was not set.
147147

148148
```tpn
149-
for example,
150-
let:test:necauqua echo:{ Hello, %name! }~
149+
let:name:necauqua echo:{ Hello, %name! }~
151150
```
152151

153152
Repeats and loops expose a variable named `i` to the script they're evaluating:

‎src/data/tpn_commands.yml‎

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ categories:
276276
Macros can call other macros, but there is a recursion limit!
277277
278278
Also you can run a macro recorded by someone else by appending their login
279-
as the third argument.
279+
as the second argument.
280280
args:
281281
- name: name
282282
doc: string
@@ -572,6 +572,28 @@ categories:
572572
- name: slot
573573
doc: a number in range from 1 to 26
574574
optional: false
575+
- name: Sounds
576+
commands:
577+
- name: tts
578+
doc: |
579+
Say something on stream through the TTS.
580+
581+
Only works for >= subscriber level, or from global macros.
582+
args:
583+
- name: msg
584+
doc: string
585+
optional: false
586+
sender_gate: '1m'
587+
- name: play-sound
588+
doc: |
589+
Play a sound on stream.
590+
Sounds ids are secret.
591+
And also the command can only be run from global macros anyway ¯\_(ツ)_/¯.
592+
args:
593+
- name: sound-id
594+
doc: string
595+
optional: false
596+
sender_gate: '1m'
575597
- name: Stats
576598
commands:
577599
- name: stat
@@ -762,16 +784,6 @@ categories:
762784
doc: |
763785
Undoes the effect of `fix_seed~`, so the game will start with a random seed again.
764786
permission: Vip
765-
- name: tts
766-
doc: |
767-
Say something on stream through the TTS.
768-
769-
Only works for >= subscriber level, or from global macros.
770-
args:
771-
- name: msg
772-
doc: string
773-
optional: false
774-
sender_gate: '1m'
775787
- name: what-is
776788
doc: |
777789
Get information about a macro or command.

0 commit comments

Comments
 (0)