Skip to content

Commit 1c3da18

Browse files
authored
Rename custom-variable.mdx to page.mdx
Rename file to page.mdx
1 parent 9eee696 commit 1c3da18

File tree

1 file changed

+1
-1
lines changed
  • src/app/v5/guides/custom-variables

1 file changed

+1
-1
lines changed

Diff for: src/app/v5/guides/custom-variables/custom-variable.mdx renamed to src/app/v5/guides/custom-variables/page.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ To access this data we have two methods, the first is to use the built in variab
3737
**Example Usage**
3838
Let's start with the aforementioned contest winner for a simple example. Lets say we start a contest for chat members, the first person to write the correct answer in chat to a riddle wins a prize, and we want to save the persons name for later. We could turn on a chat event (found in the events tab) that looks at each message sent in chat. We could use a conditional effect (more on those here: https://docs.firebot.app/v5/guides/conditional-effects) to see if the chat message matches the correct answer. If it does we could use a "Toggle Event" effect to turn off the chat event so it no longer looks at each chat message and a Custom Variable effect to save the event winners name. We would save the name of the variable as something like "contestWinner" the Custom Variable data would be `$user` because `$user` is a built in variable for Firebot and is the username of the person who triggered the effect it contains. Again, you can access built in Firebot variables using the `$vars` button that you can find in most input boxes.
3939

40-
Later we could then use `$$contestWinner` anywhere that we wanted to use the winner's username. For example we could also trigger a Chat Effect containing something like "Congratulations to `$$contestWinner` for correctly guessing the answer, they win today's prize of a castle in the sky!"
40+
Later we could then use `$$contestWinner` anywhere that we wanted to use the winner's username. For example we could also trigger a Chat Effect containing something like "Congratulations to `$$contestWinner` for correctly guessing the answer, they win today's prize of a castle in the sky!"

0 commit comments

Comments
 (0)