Skip to content

AutoMod

Represents the automod of a chatroom.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new AutoMod()

1
new AutoMod<T>(chatbot: ChatBot<T>, chatroom: ChatRoom<T>): AutoMod<T>

Creates a new instance of the automod.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
chatroomChatRoom<T>The chatroom where the automod is.

Returns

AutoMod<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:27

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
chatroomreadonlyChatRoom<T>The chatroom where the automod is.-
settingsreadonlyAutoModSettingsManager<T>The settings manager of the automod.-

Methods

setAggression()

1
setAggression(level: null | number): Promise<AutoModSettings<T>>

Sets the aggression level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe aggression level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:58


setBullying()

1
setBullying(level: null | number): Promise<AutoModSettings<T>>

Sets the bullying level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe bullying level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:91


setDisability()

1
setDisability(level: null | number): Promise<AutoModSettings<T>>

Sets the disability level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe disability level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:47


setMisogyny()

1
setMisogyny(level: null | number): Promise<AutoModSettings<T>>

Sets the misogyny level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe misogyny level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:80


setOverall()

1
setOverall(level: null | number): Promise<AutoModSettings<T>>

Sets the overall level of the automod. This setting will overwrite all the others.

Parameters

ParameterTypeDescription
levelnull | numberThe overall level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:38


setRacism()

1
setRacism(level: null | number): Promise<AutoModSettings<T>>

Sets the racism level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe racism level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:113


setSexBasedTerms()

1
setSexBasedTerms(level: null | number): Promise<AutoModSettings<T>>

Sets the level of sex based terms of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe level of sex based terms of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:124


setSexuality()

1
setSexuality(level: null | number): Promise<AutoModSettings<T>>

Sets the sexuality level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe sexuality level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:69


setSwearing()

1
setSwearing(level: null | number): Promise<AutoModSettings<T>>

Sets the harassment level of the automod. This settings will disable the overall level.

Parameters

ParameterTypeDescription
levelnull | numberThe harassment level of the automod. If null, it will be set to 0.

Returns

Promise<AutoModSettings<T>>

The new settings of the automod.

Source

twitchfy/packages/chatbot/src/structures/AutoMod.ts:102