|
|
|
@ -239,6 +239,21 @@ class NetworkData(object):
|
|
|
|
|
self.reply_prefix = '' |
|
|
|
|
"""Prefix to be used in messages when replying to this message.""" |
|
|
|
|
|
|
|
|
|
self.user_regexp = None |
|
|
|
|
"""Regular expression used to identify usernames in the message. If |
|
|
|
|
the network doesn't support an easy way to identify usernames, it |
|
|
|
|
should be set to None.""" |
|
|
|
|
|
|
|
|
|
self.group_regexp = None |
|
|
|
|
"""Regular expression used to identify groups in the message. If the |
|
|
|
|
network doesn't support groups or doesn't have an easy way to |
|
|
|
|
identify groups, it should be set to None.""" |
|
|
|
|
|
|
|
|
|
self.tag_regexps = None |
|
|
|
|
"""Regular expression used to identify tags (hashtags) in the |
|
|
|
|
message. If the network doesn't support tags or doesn't have an easy |
|
|
|
|
way to identify groups, it should be set no None.""" |
|
|
|
|
|
|
|
|
|
self.network = '' |
|
|
|
|
"""The network id source of the message. Network classes don't need to |
|
|
|
|
worry about this field themselves; :class:`Networks` will set it when |
|
|
|
|