diff options
| author | jason | 2016-08-17 15:52:43 -0600 |
|---|---|---|
| committer | jason | 2016-08-17 15:52:43 -0600 |
| commit | b5322db38973661b08be27185420163291a1766a (patch) | |
| tree | 91198f948756ad98c0cb09f1cb959d9dbfc2bf33 /warmachine/connections/base.py | |
| parent | 1c123d6f199e1d0b88019d56a4bb1da082bdc79f (diff) | |
| download | warmachine-ng-b5322db38973661b08be27185420163291a1766a.tar.gz warmachine-ng-b5322db38973661b08be27185420163291a1766a.zip | |
Commit updates that i haven't commited yet
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__)) | ||