FrankerFaceZ / Add-Ons

Add-Ons are additional modules for FrankerFaceZ that provide new behaviors and ways to customize Twitch.
66 stars 58 forks source link

Twir add-on #207

Closed crashmax-dev closed 5 months ago

crashmax-dev commented 5 months ago

This add-on for https://twir.app adds a command suggestion. image

SirStendec commented 5 months ago

Update: I added support for ! commands in https://github.com/FrankerFaceZ/FrankerFaceZ/commit/8807e09ea324db3def925a1e79aa05865879dd6b

This should simplify your logic a lot, since you can just specify that your commands have prefix: '!' and they'll be displayed/inserted/completed that way.

Example:

ffz.on('chat:get-tab-commands', e => e.commands.push({
    prefix: '!',
    name: '8ball',
    description: 'oooooo spoookey',
    permissionLevel: 0,
    ffz_group: 'Quoteconut (Bot)',
    commandArgs: [
        {name: 'question', isRequired: true}
    ]
}));

image