UNPKG

twitch2ma

Version:

Twitch chat bot that runs commands on the MA GrandMA2 using Telnet.

20 lines 618 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class OwnerPermission { check(permissionCollector, runtimeInformation) { if (runtimeInformation.rawMessage.userInfo.userName === runtimeInformation.config.twitch.channel.toLowerCase()) { permissionCollector.enableGodMode("user is channel owner"); } } start() { return Promise.resolve(); } stop() { return Promise.resolve(); } reloadConfig(config) { return Promise.resolve(); } } exports.default = OwnerPermission; //# sourceMappingURL=OwnerPermission.js.map