Package tv.phantombot.event.irc.message
Class IrcModerationEvent.ModerationAction
java.lang.Object
tv.phantombot.event.irc.message.IrcModerationEvent.ModerationAction
- Enclosing class:
- IrcModerationEvent
Determines the harshest action requested by a moderation script
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()
void
Ban()
Attempts to set the current action toActions.Ban
void
Attempts to set the current action toActions.Ban
void
Attempts to set the current action toActions.ClearChat
void
Delete()
Attempts to set the current action toActions.Delete
void
Attempts to set the current action toActions.Delete
void
Purge()
Attempts to set the current action toActions.Timeout
with a time of 1void
Attempts to set the current action toActions.Timeout
with a time of 1reason()
int
time()
void
Timeout()
Attempts to set the current action toActions.Timeout
with a time of 600 (10 minutes)void
Timeout
(int seconds) Attempts to set the current action toActions.Timeout
void
Attempts to set the current action toActions.Timeout
void
UnBan()
Attempts to set the current action toActions.UnBan
void
Attempts to set the current action toActions.UnTimeout
warning()
-
Constructor Details
-
ModerationAction
public ModerationAction()
-
-
Method Details
-
action
- Returns:
- The current harshest action
-
time
public int time()- Returns:
- If executing
Actions.Timeout
, the amount of time, in seconds
-
reason
- Returns:
- The reason string for
Actions.Timeout
andActions.Ban
-
warning
- Returns:
- The warning message to send to chat
-
UnBan
public void UnBan()Attempts to set the current action toActions.UnBan
-
UnTimeout
public void UnTimeout()Attempts to set the current action toActions.UnTimeout
-
Delete
public void Delete()Attempts to set the current action toActions.Delete
-
Delete
Attempts to set the current action toActions.Delete
- Parameters:
warning
- A warning message to send to chat;null
for no message
-
ClearChat
public void ClearChat()Attempts to set the current action toActions.ClearChat
-
Purge
public void Purge()Attempts to set the current action toActions.Timeout
with a time of 1 -
Purge
Attempts to set the current action toActions.Timeout
with a time of 1- Parameters:
reason
- A reason message to attach to the Twitch logs;null
for no messagewarning
- A warning message to send to chat;null
for no message
-
Timeout
public void Timeout()Attempts to set the current action toActions.Timeout
with a time of 600 (10 minutes) -
Timeout
public void Timeout(int seconds) Attempts to set the current action toActions.Timeout
- Parameters:
seconds
- The number of seconds to timeout the user for
-
Timeout
Attempts to set the current action toActions.Timeout
- Parameters:
seconds
- The number of seconds to timeout the user forreason
- A reason message to attach to the Twitch logs;null
for no messagewarning
- A warning message to send to chat;null
for no message
-
Ban
public void Ban()Attempts to set the current action toActions.Ban
-
Ban
Attempts to set the current action toActions.Ban
- Parameters:
reason
- A reason message to attach to the Twitch logs;null
for no messagewarning
- A warning message to send to chat;null
for no message
-