Commit Graph

479 Commits

Author SHA1 Message Date
David Taylor 8ca4797797 Add transcript posting support to slack 2017-07-24 16:43:37 +01:00
David Taylor 2d7f25d7e6 Add support for chat transcripts
(still needs to be implemented by providers)
2017-07-24 16:13:53 +01:00
David Taylor 0d9b251030 Allow telegram to send notifications to ‘broadcast channels’ 2017-07-21 19:12:31 +01:00
David Taylor 701e246ad2 Support slash commands in telegram group chats 2017-07-21 17:55:33 +01:00
David Taylor 745c289c6e Update README to remove scary message 2017-07-21 16:09:19 +01:00
David Taylor b5e2741214 Add discord support 2017-07-21 15:48:57 +01:00
David Taylor d398b88874 Remove docker rake patch, as now merged into core 2017-07-21 12:28:32 +01:00
David Taylor 964fb07c50 Move require_relative lines into the initializer 2017-07-20 15:37:45 +01:00
David Taylor 9d91081f0c Fix the post URL for telegram messages 2017-07-20 12:27:34 +01:00
David Taylor 7371c2ef72 Tidy up language strings 2017-07-20 12:07:40 +01:00
David Taylor d5a4eabb85 Merge pull request #3 from discourse/telegram-provider
Add Telegram provider
2017-07-19 21:36:40 +01:00
David Taylor 970c38c7fe Add telegram specs 2017-07-19 21:26:16 +01:00
David Taylor 4422f14c6d Move slash command specs into helper_spec 2017-07-19 18:22:50 +01:00
David Taylor bf0b645f31 Add site setting language strings 2017-07-19 17:41:08 +01:00
David Taylor 236251ed11 Remove unnecessary log 2017-07-19 17:34:41 +01:00
David Taylor 509e7bc997 Add telegram slash commands 2017-07-19 17:28:36 +01:00
David Taylor 694bf919ce Move slack command processor into common helper so it can be used by other providers 2017-07-19 16:57:33 +01:00
David Taylor 2e94f23fbe Add Telegram provider.
Does not yet support slash commands, and is without tests.
2017-07-19 16:28:02 +01:00
David Taylor 04cb6f1d73 Merge pull request #2 from discourse/separate-channel-model
Separate channel model
2017-07-18 23:21:47 +01:00
David Taylor 5d18e1e444 Update language strings for new error message 2017-07-18 23:15:56 +01:00
David Taylor c5fdebd1bc Store errors per-channel rather than per-rule, and update UI to match 2017-07-18 23:08:06 +01:00
David Taylor d1d333523f Order rules by precedence in the UI and slash commands 2017-07-18 21:36:07 +01:00
David Taylor 97c4592950 Display provider-specific data for each channel in the UI 2017-07-18 21:21:09 +01:00
David Taylor 2772856201 Update qunit tests
Have removed a lot of them until the UI is finalised, so as not to waste time constantly updating them.
2017-07-18 20:42:00 +01:00
David Taylor 0a9ef040a1 Update specs for updated controller methods 2017-07-18 18:23:20 +01:00
David Taylor 2275b048f9 Destroy associated rules when a channel is destroyed 2017-07-18 16:42:05 +01:00
David Taylor bdb81191d7 New admin interface for improved channel definitions 2017-07-18 16:17:03 +01:00
David Taylor 1ef9073027 Make CHANNEL_PARAMETERS a list 2017-07-17 17:53:32 +01:00
David Taylor ebb6fa947d Update slack provider to deal with new channel structure 2017-07-13 23:21:15 +01:00
David Taylor ab2e4c2de8 Allow looking up channel by data attributes (nested json values) 2017-07-13 22:50:14 +01:00
David Taylor e850fb194b Update helper to deal with the new channel structure 2017-07-13 22:13:03 +01:00
David Taylor 246c81ce5c Update manager to deal with new channel structure 2017-07-13 21:47:15 +01:00
David Taylor 4b25dcec8f Allow providers to define a data schema for their channel parameters 2017-07-13 20:50:45 +01:00
David Taylor e07a4da460 Model changes 2017-07-13 16:09:34 +01:00
David Taylor b04b5c22dd Refactor specs to match new directory structure 2017-07-13 14:01:30 +01:00
David Taylor bfb499d4cf Refactor into /app directory, move everything out of plugin.rb 2017-07-13 13:32:11 +01:00
David Taylor 4207456716 Abstract away DiscourseChat::PluginModel to be used for other ActiveRecord models 2017-07-12 23:59:43 +01:00
David Taylor 56da3639ab Use real ActiveRecord for the “Rule” model by extending the PluginStoreRow class.
This gives us all the activerecord awesomeness for free, like validations, safe form params etc.
2017-07-12 18:28:45 +01:00
David Taylor a724463f7c Update docker_patched.rake 2017-07-12 12:27:07 +01:00
David Taylor 688f28262e Add travis badge to README 2017-07-12 12:23:33 +01:00
David Taylor 92dc7ba2b2 Add travis setup 2017-07-12 12:00:18 +01:00
David Taylor f2c5223bc6 Remove accidental dependency on discourse-slack-official 2017-07-12 11:58:19 +01:00
David Taylor e85657181c Add qunit acceptance tests for admin interface 2017-07-11 15:37:44 +01:00
David Taylor bc579fb6e1 Added rspec tests for admin controller 2017-07-10 21:04:37 +01:00
David Taylor ba484dc9a1 Move ‘dummy provider’ logic into a shared context, to allow for use by multiple specs 2017-07-10 18:19:59 +01:00
David Taylor 52b8e3f3a6 Remove unneeded comments 2017-07-07 11:51:19 +01:00
David Taylor 95dd6bc09c Add error handling to the slack API requests, and associated tests 2017-07-07 11:23:25 +01:00
David Taylor f001320574 Add integration tests for slack ‘slash commands’
Adapted from existing slack plugin
2017-07-06 23:30:27 +01:00
David Taylor 062aa8d875 Add create/delete rule functionality to the slack ‘slash commands’ 2017-07-06 21:42:37 +01:00
David Taylor 527063aed0 Add helper function for deleting rules 2017-07-06 21:36:50 +01:00