@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
85 lines (84 loc) • 2.02 kB
JavaScript
"use strict";
/* eslint-disable @typescript-eslint/no-unused-vars */
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutoModSettings = void 0;
const Base_1 = require("./Base");
/**
* Represents the settings of an automod.
*/
class AutoModSettings extends Base_1.Base {
/**
* The autmod whose settings are.
*/
automod;
/**
* The data of the settings returned from the API.
*/
data;
/**
* Creates a new instance of the automod settings.
* @param chatbot The current instance of the chatbot.
* @param automod The automod whose settings are.
* @param data The data of the settings returned from the API.
*/
constructor(chatbot, automod, data) {
super(chatbot);
this.data = data;
this.automod = automod;
}
/**
* The overall level of the automod.
*/
get overall() {
return this.data.overall_level;
}
/**
* The disability level of the automod.
*/
get disability() {
return this.data.disability;
}
/**
* The aggression level of the automod.
*/
get aggression() {
return this.data.aggression;
}
/**
* The sexuality level of the automod.
*/
get sexuality() {
return this.data.sexuality_sex_or_gender;
}
/**
* The misogyny level of the automod.
*/
get misogyny() {
return this.data.misogyny;
}
/**
* The bullying level of the automod.
*/
get bullying() {
return this.data.bullying;
}
/**
* The harassment level of the automod.
*/
get swearing() {
return this.data.swearing;
}
/**
* The racism level of the automod.
*/
get racism() {
return this.data.race_ethnicity_or_religion;
}
/**
* The level of sex based terms of the automod.
*/
get sexBasedTerms() {
return this.data.sex_based_terms;
}
}
exports.AutoModSettings = AutoModSettings;