diff options
Diffstat (limited to 'warmachine/connections/base.py')
| -rw-r--r-- | warmachine/connections/base.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/warmachine/connections/base.py b/warmachine/connections/base.py index 4df5996..e787e35 100644 --- a/warmachine/connections/base.py +++ b/warmachine/connections/base.py | |||
| @@ -26,13 +26,6 @@ class Connection(object): | |||
| 26 | raise NotImplementedError('{} must implement `read` method'.format( | 26 | raise NotImplementedError('{} must implement `read` method'.format( |
| 27 | self.__class__.__name__)) | 27 | self.__class__.__name__)) |
| 28 | 28 | ||
| 29 | def get_users_by_channel(self, channel): | ||
| 30 | """ | ||
| 31 | Return a list of users who are in the provided channel | ||
| 32 | """ | ||
| 33 | raise NotImplementedError('{} must implement `get_users_by_channel` ' | ||
| 34 | 'method'.format(self.__class__.__name__)) | ||
| 35 | |||
| 36 | def id(self): | 29 | def id(self): |
| 37 | """ | 30 | """ |
| 38 | Unique ID for this connection. Since there can be more than one | 31 | Unique ID for this connection. Since there can be more than one |
| @@ -45,3 +38,10 @@ class Connection(object): | |||
| 45 | """ | 38 | """ |
| 46 | raise NotImplementedError('{} must implement `id` method'.format( | 39 | raise NotImplementedError('{} must implement `id` method'.format( |
| 47 | self.__class__.__name__)) | 40 | self.__class__.__name__)) |
| 41 | |||
| 42 | def say(self, message, destination): | ||
| 43 | """ | ||
| 44 | Async method that a plugin can use to send a message to a channel or user. | ||
| 45 | """ | ||
| 46 | raise NotImplementedError('{} must implement `say` method'.format( | ||
| 47 | self.__class__.__name__)) | ||