Allow the bot to check if a string of text is in spoiler tags or not.

Comments

2 comments

  • donovan_dmc

    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 flag
    0
  • bailey782


    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.