kameloso.plugins.twitch.stub

Twitch plugin stub, to provide lines to the configuration file even when the bot isn't compiled in.

Examples

import kameloso.pods : CoreSettings;

IRCPluginState state;
IRCPlugin plugin = new TwitchPlugin(state);
CoreSettings coreSettings;

assert(plugin.isEnabled);

cast(void)applyCustomSettings(
    [ plugin ],
    coreSettings: coreSettings,
    customSettings: [ "twitch.enabled=false" ],
    toPluginsOnly: true);

assert(!plugin.isEnabled);

cast(void)applyCustomSettings(
    [ plugin ],
    coreSettings: coreSettings,
    customSettings: [ "twitch.enabled" ],
    toPluginsOnly: true);

assert(plugin.isEnabled);

See Also

Meta