Allow the bot to check if a string of text is in spoiler tags or not.
Basically, allow bots to check if a string of text is in spoiler tags. It would be useful for game servers with their own bot, so they can use a bot to control spoilers in a non-spoiler channel better.
-
Regex matching for content inside double pipes should handle that fine
something like
/\|\|(.*?)\|\|/gs
This assumes whatever regex processor you're using supports lazy matching and the dotall flag0 -
To enable bots to check if a string of text is in spoiler tags, you can implement a bot feature that scans messages in a non-spoiler channel. The bot would search for specific spoiler tags or formatting patterns and identify if the text within those tags is a spoiler. This would help game servers or other communities maintain better control over spoilers and ensure they are appropriately marked and handled. By utilizing this bot functionality, users can enjoy a non-spoiler channel while still having a bot monitor and manage spoiler content.0
Please sign in to leave a comment.
Comments
2 comments