-
Notifications
You must be signed in to change notification settings - Fork 3
(Un)suball Command
The suball and unsuball commands will (un)subscribe a collection of users from/to a specified taglist.
There are a number of requirements for these commands:
- It is required that these commands are posted as an Imgur comment. This will not work through Discord.
- It is required that the post these commands are used on were previously used to tag a post. It does not matter where precisely the
tagcommand was issued, so long as it is among the comments of the post and hasn't been deleted yet. - It is required that the person that originally tagged the post also issues the
(un)suballcommand.
These commands will only look for comments underneath the same parent comment it was issued under (or only the root comments of a post if it was posted in the root). To illustrate:
- Parent comment (ignored)
comment 0comment 1@Tagaroo (un)suball-
comment 2- sub-comment 2 (ignored)
See also this example kindly provided by UngratefulNoob:
https://i.imgur.com/LsAxKeH.png
The (un)suball command will (un)subscribe all Imgur users that replied to the parent comment. These users are automatically (un)subscribed from/to the Taglist that was tagged beforehand by the same Tracker. For subscriptions, by default all ratings and no filters are applied.
It is possible through arguments to limit the (un)subscription of users to a specific syntax. This requires anyone that comments to the parent comment to adhere to a specified syntax.
-
Pattern (Optional)
It is possible to request that the Imgur users that respond adhere to a specific syntax. This pattern must be between""quotation marks.
Several examples:-
"\."
(Un)subscribe a user if their comment contains a dot. -
"\A\.\z"
(Un)subscribe a user if their comment contains only a dot -
"\<?[Ss]ubscribe\>?"
Subscribe a user if their comment contains<Subscribe>orSubscribe(with / without capitalS) -
"\<?[Uu]nsubscribe\>?"
Unsubscribe a user if their comment contains<Unsubscribe>orUnsubscribe(with / without capitalU)
-
We use:
@Prefix: is assumed to be the command prefix
"\.": is our pattern
-
@Prefix suball
Subscribe all users that replied to the same comment as we replied to. They will be subscribed to the taglist(s) that were tagged before on the same post by the same Tracker. -
@Prefix unsuball
Unsubscribe all users that replied to the same comment as we replied to. -
@Prefix suball "\."
Subscribe all users that replied to the same comment as we replied to if their comment contains at least one dot (.).
The argument for the (un)suball command relies on the Java Pattern class.