Skip to main content

Template System

Certain features, such as the default AutoRoom name and the introduction message allow for a custom templated text to be set. This document will explain how to create custom templates, and go over all template options.

Liquid
#

This section is still being worked on. The TLDR is that the template system is a subset of Liquid . Not all of the filters and things will work, which is why I’ll fill this out hopefully soon.

Variables
#

Variable Description
{{username}}, {{user.name}}, or {{user.nickname}} The AutoRoom Owners display name, or server nickname if set
{{user.mention}} The AutoRoom Owners mention
{{user.global_name}} The AutoRoom Owners global display name (server nickname is ignored)
{{user.username_raw}} The AutoRoom Owners username
{{user.id}} The AutoRoom Owners ID
{{user.is_bot}} Whether or not the AutoRoom Owner is a bot
{{user.game}} The game the AutoRoom Owner is currently playing, if there is one
{{source.name}} The AutoRoom Sources display name
{{source.mention}} The AutoRoom Sources mention
{{autoroom.name}} The AutoRooms display name (introduction message only)
{{autoroom.mention}} The AutoRooms mention (introduction message only)

Examples
#

AutoRoom Names
#

{{user.name}}'s Room
{% if user.game %}
{{user.game}}
{% else %}
{{user.name}}'s Room
{% endif %}

AutoRoom Introduction Messages
#

Hey {{user.mention}}! Welcome to your AutoRoom!

You created this AutoRoom from the AutoRoom Source {{source.mention}}.

This AutoRoom is named {{autoroom.mention}}.

Enjoy!