Pattern matching

Yui allows you to use advanced pattern matching while creating automatic responses
An example of automated pattern matching

Trigger placeholder options

Placeholder

Description

{?}

A wildcard, anything of any length can be put here

{word}

A wildcard word, a single word will be taken from here

{prefix}

The command prefix you set for Yui (y! by default)

Single pattern matching example

Command Example
Trigger Example
Response Example
Command Example

y!ar pattern "I like {word}" "{1}??? nobody likes {1}!"

Trigger Example

I like apples

Response Example

apples??? nobody likes apples!

Multiple pattern matching example

Command Example
Trigger Example
Response Example
Command Example

y!ar pattern "Should I pick {?} or {?}?" "Go with {1}... {2} is ugly."

Trigger Example

Should I pick red or blue?

Response Example

Go with red... blue is ugly.

Response placeholder options

Command Example
Trigger Example
Response Example
Command Example

y!ar pattern "Alexa play {?}" "Now playing {1} in {channel.name} as requested by {member.name}"

Trigger Example

Alexa play Despacito

Response Example

Now playing Despacito in general as requested by Sunshine

Placeholder

Description

{1-9}

Match the position of the given trigger placeholder {?} (this is the default)

{channel.tag}

Tags the channel the trigger being said in

{channel.name}

Replaces with the name of the channel

{server.name}

Replaces with the name of the server

{member.name}

Replaces with the member's nickname (or username if their nickname isn't set)

{member.username}

Replaces with the members username (account name)

{member.tag}

Tags the member that activated the AR