UNPKG

twitch-commando

Version:

Twitch Bot Commando Client

32 lines (31 loc) 1.44 kB
/** * @typedef {Object} CommandoConstants * @property {String} [GLOBAL_SETTINGS_KEY] Global settings key to save global bot preferences * @property {String} [GLOBAL_EMOTES_URL] Service url for Emotes service * @property {String} [BOT_TYPE_NORMAL] Normal bot type (user, not mod) * @property {String} [BOT_TYPE_NORMAL_MODDED] Normal bot type with mod (user, channel mod) * @property {String} [BOT_TYPE_KNOWN] Known bot * @property {String} [BOT_TYPE_VERIFIED] Verified bot * @property {String} [MESSAGE_LIMITS] Enumeration for message limits configuration */ const GLOBAL_SETTINGS_KEY = 'global'; const GLOBAL_EMOTES_URL = 'https://api.twitchemotes.com/api/v4/emotes?id=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30'; const BOT_TYPE_NORMAL = "bot_type_normal"; const BOT_TYPE_NORMAL_MODDED = "bot_type_normal_modded"; const BOT_TYPE_KNOWN = "bot_type_known"; const BOT_TYPE_VERIFIED = "bot_type_verified"; const MESSAGE_LIMITS = { "bot_type_normal": { messages: 20, timespan: 30 }, "bot_type_normal_modded": { messages: 100, timespan: 30 }, "bot_type_known": { messages: 50, timespan: 30 }, "bot_type_verified": { messages: 7500, timespan: 30 } } module.exports = Object.freeze({ GLOBAL_SETTINGS_KEY, GLOBAL_EMOTES_URL, BOT_TYPE_KNOWN, BOT_TYPE_NORMAL, BOT_TYPE_VERIFIED, BOT_TYPE_NORMAL_MODDED, MESSAGE_LIMITS });