Streamerbot / docs

Official documentation for Streamer.bot
https://docs.streamer.bot
7 stars 45 forks source link
docs documentation speakerbot streamdeck-plugin streamerbot streaming twitch-bot youtube-bot

Streamer.bot Documentation

Streamer.bot Docs Speaker.bot Docs Discord GitHub contributors GitHub Workflow Status (with event)

Official home of all documentation content for Streamer.bot and Speaker.bot

Contributing

Contributions are welcome and encouraged!

Feel free to open an issue to discuss missing information, or just fork and PR πŸ’œ

Guidelines: TBA

MDC Components

The following are preconfigured ::callout components:

::tip
This is a cool tip!
::

::warning
Some important info goes here
::

:read-more{to="/path/to/some/other/page"}

::wip
This content is a work in progress
::

Frontmatter

Some docs will be automatically built out from YAML frontmatter

All

All pages should have a title and description.

Optionally, if the release version of a feature is known, the version key should contain the Streamer.bot version it was added in.

title: Page Title
description: Some description of this page
version: 0.2.3

Sub-Actions & Triggers

Variables, Parameters (e.g. Sub-Action dialog options), and C# Method sections can automatically be built from front matter keys:

twitchService: Chat Client
parameters:
  - name: Game Title
    type: Text
    required: true
    description: |
      Enter the description for this parameter with full markdown support.

      ::tip
        It even supports mdc!
      ::
  - name: Some other parameter
    type: Select
    required: false
    description: This is the description for some other parameter
variables:
  - name: viewers
    type: number
    description: The amount of viewers this raid received
    value: 183
commonVariables:
  - TwitchUser
csharpMethods:
  - UnbanUser
  - BanUser

C# Methods

Supplemental information can be added to C# methods by adding a markdown file into the api/csharp/_methods directory with the exact same name as the C# Method:

---
description: The primary short description for SomeCsharpMethod
version: 0.2.3
parameters:
  - name: data
    description: |
      Data to be sent to connected clients

      JSON must be stringified.
    value: '"Hello, world!"'
---

Some extended description information

C# Parameters

Additionally, parameters information can be shared by referencing the name of any markdown or yaml file in the api/csharp/_parameters directory:

---
parameters:
  - import: SomeSharedParameter
---
---
name: my_parameter
description: |
  Some long description

  With extra info

  That would be annoying to include in every file that uses this parameter πŸ˜‰
value: 0
---