Oneliner.stripPrefix

Strips the prefix from a trigger word.

struct Oneliner
static
stripPrefix
(
const string trigger
,
const string prefix
)

Parameters

trigger string

Trigger word to strip the prefix from.

prefix string

Prefix to strip.

Return Value

Type: auto

The trigger word with the prefix stripped, or the original trigger word if it didn't start with the prefix.