Skip to content

Latest commit

 

History

History
405 lines (263 loc) · 7.58 KB

Reactions.md

File metadata and controls

405 lines (263 loc) · 7.58 KB

Module: Reactions

This module contains bot reaction commands through replies or emoji reactions.

Group: emojireaction

Expand for additional information

This groups is used to make the bot react with given emoji to a message containing a trigger word inside (guild specific). Group call either lists currently registered emoji reactions or adds a new emoji reaction to a given trigger word list. Note: Trigger words can be regular expressions (use emojireaction addregex command).

Guild only.

Requires permissions: Manage guild

Aliases: ereact, er, emojir, emojireactions

Overload 2:

No arguments.

Overload 1:

  • [emoji]: Emoji
  • [string...]: Reaction triggers

Overload 0:

  • [string]: Reaction triggers
  • [emoji]: Emoji

Examples:

!emojireaction
!emojireaction :emoji: triggerword
!emojireaction triggerword :emoji:


emojireaction add

Expand for additional information

Adds a new emoji reaction to guild reaction list. Requires emoji to react as and one or more triggers.

Guild only.

Requires permissions: Manage guild

Aliases: register, reg, new, a, +, +=, <<, <, <-, <=

Overload 1:

  • [emoji]: Emoji
  • [string...]: Reaction triggers

Overload 0:

  • [string]: Reaction triggers
  • [emoji]: Emoji

Examples:

!emojireaction add :emoji: triggerword
!emojireaction add triggerword :emoji:


emojireaction addregex

Expand for additional information

Adds a new emoji reaction to guild reaction list. Requires emoji to react as and one or more regular expressions that will match the message being tested (each regular expression is word-bounded automatically).

Guild only.

Requires permissions: Manage guild

Aliases: registerregex, regex, newregex, ar, +r, +=r, <<r, <r, <-r, <=r, +regex, +regexp, +rgx

Overload 1:

  • [emoji]: Emoji
  • [string...]: Reaction triggers

Overload 0:

  • [string]: Reaction triggers
  • [emoji]: Emoji

Examples:

!emojireaction addregex :emoji: regex?pattern+
!emojireaction addregex regex?pattern+ :emoji:


emojireaction delete

Expand for additional information

Removes existing emoji reaction by it's reaction emoji, ID or trigger.

Guild only.

Requires permissions: Manage guild

Aliases: unregister, remove, rm, del, d, -, -=, >, >>, ->, =>

Overload 2:

  • [emoji]: Emoji

Overload 1:

  • [int...]: Reaction IDs to remove

Overload 0:

  • [string...]: Reaction triggers

Examples:

!emojireaction delete 12345
!emojireaction delete :emoji:
!emojireaction delete triggerword


emojireaction deleteall

Expand for additional information

Removes all guild emoji reactions.

Guild only.

Requires permissions: Manage guild Requires user permissions: Administrator

Aliases: removeall, rmrf, rma, clearall, clear, delall, da, cl, -a, --, >>>

Overload 0:

No arguments.

Examples:

!emojireaction deleteall


emojireaction find

Expand for additional information

Finds emoji reactions that are triggered by a given text.

Guild only.

Requires permissions: Manage guild

Aliases: f, test

Overload 0:

  • [string...]: Reaction trigger

Examples:

!emojireaction find triggerword


emojireaction list

Expand for additional information

Lists all emoji reactions for this guild.

Guild only.

Requires permissions: Manage guild

Aliases: print, show, view, ls, l, p

Overload 0:

No arguments.

Examples:

!emojireaction list


Group: textreaction

Expand for additional information

This groups is used to make the bot react with given text to a message containing a trigger word inside (guild specific). Group call either lists currently registered text reactions or adds a new text reaction to a given trigger word list. Note: Trigger words can be regular expressions (use textreaction addregex command).

Guild only.

Requires user permissions: Manage guild

Aliases: treact, tr, txtr, textreactions

Overload 1:

No arguments.

Overload 0:

  • [string]: Reaction trigger
  • [string...]: Response

Examples:

!textreaction
!textreaction triggerword Response message


textreaction add

Expand for additional information

Adds a new text reaction to guild reaction list. Requires trigger word and a response.

Guild only.

Requires user permissions: Manage guild

Aliases: register, reg, new, a, +, +=, <<, <, <-, <=

Overload 0:

  • [string]: Reaction trigger
  • [string...]: Response

Examples:

!textreaction add triggerword Response message


textreaction addregex

Expand for additional information

Adds a new text reaction to guild reaction list. Requires a regular expression that will match the message being tested (each regular expression is word-bounded automatically) and a text to reply when the match occurs.

Guild only.

Requires user permissions: Manage guild

Aliases: registerregex, regex, newregex, ar, +r, +=r, <<r, <r, <-r, <=r, +regex, +regexp, +rgx

Overload 0:

  • [string]: Reaction trigger
  • [string...]: Response

Examples:

!textreaction addregex regex?pattern+ Response message


textreaction delete

Expand for additional information

Removes existing text reaction by it's ID or trigger word.

Guild only.

Requires user permissions: Manage guild

Aliases: unregister, remove, rm, del, d, -, -=, >, >>, ->, =>

Overload 1:

  • [int...]: Reaction IDs to remove

Overload 0:

  • [string...]: Reaction triggers

Examples:

!textreaction delete 12345
!textreaction delete triggerword


textreaction deleteall

Expand for additional information

Removes all guild text reactions.

Guild only.

Requires user permissions: Administrator, Manage guild

Aliases: removeall, rmrf, rma, clearall, clear, delall, da, cl, -a, --, >>>

Overload 0:

No arguments.

Examples:

!textreaction deleteall


textreaction find

Expand for additional information

Finds text reactions that are triggered by a given text.

Guild only.

Requires user permissions: Manage guild

Aliases: f, test

Overload 0:

  • [string...]: Reaction trigger

Examples:

!textreaction find triggerword


textreaction list

Expand for additional information

Lists all emoji reactions for this guild.

Guild only.

Requires user permissions: Manage guild

Aliases: print, show, view, ls, l, p

Overload 0:

No arguments.

Examples:

!textreaction list