summaryrefslogtreecommitdiff
path: root/Data/BuiltIn/Libraries/lua-addons/addons/InfoReplacer/ReadMe.md
blob: 677262588c54d283c82a32b318defa70698397ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# InfoReplacer #

Replaces outgoing text prefixed by % with respective information. For a complete list of replacements, view [`reps.lua`](https://github.com/Windower/Lua/blob/4.1/addons/InfoReplacer/reps.lua).

----

### Commands: ###

#### Show replacements ####

```
//inforeplacer list
```

Shows all (custom) replacement names.

#### Set custom replacement ####

```
//inforeplacer set <name> <value>
```

Defines a custom replacement variable as the provided value.

#### Set custom code replacement ####

```
//inforeplacer seteval <name> <code>
```

Defines a custom replacement variable as the provided Lua expression. This expression will be evaluated whenever it appears in the chat, so this can be used to print dynamic values.

#### Remove custom replacement ####

```
//inforeplacer unset <name>
```

Deletes a previously defined custom replacement variable.