Message
MSG Module
The MSG module allows users to search for messages in a specific channel that match a given pattern. This can be useful for quickly finding relevant messages based on keywords or regular expressions.
Configuration Options
- Search Messages (msearch)
- Searches for messages in the specified channel that match the provided pattern.
- Usage:
,msearch <channel> <pattern>
- Examples:
,msearch #general error
,msearch #random hello
Details
- Pattern Matching:
- The search pattern is case-insensitive.
- Regular expressions are supported, allowing for complex search criteria.
- Example Usages:
- Search for messages containing “error” in #general channel:
,msearch #general error
- This will list all messages containing the word “error” in the #general channel.
- Search for messages containing “hello” in #random channel:
,msearch #random hello
- This will list all messages containing the word “hello” in the #random channel.
- Search for messages containing “error” in #general channel:
- Output Format:
- The search results are displayed with the message content and the time since the message was sent.
- Each message is listed in the format:
(index/total) time_ago message
Examples
- To search for the word “error” in the #development channel:
,msearch #development error
- To search for messages that contain “update” in the #announcements channel:
,msearch #announcements update
Usage Notes
- Ensure the search pattern is correctly formatted as a valid regular expression if using regex features.
- The search is case-insensitive, making it easier to find messages without worrying about capitalization.
With these capabilities, the MSG module provides a powerful tool for searching and retrieving specific messages from a channel, enhancing the ability to manage and navigate channel conversations effectively.