Slack message processor

Notifications ::: message_slack
Maintained by Mike Churchward
This plugin provides a Moodle message output for Slack. Sites can select a Slack team, and users can connect their Moodle notifications to their Slack account for that team.
Latest release:
66 sites
15 downloads
13 fans
Current versions available: 1
Build passing

This plugin provides a Moodle message provider for Slack.


It requires a Slack App be set up in the team, using https://api.slack.com/apps. Once created, the basic information screen for that
App will show the Client ID and the Client Secret required for the Moodle plugin configuration.

This is setup so that "only one" Slack Team can be set up at the site level. Anyone wishing to have a Slack notification setup
for their Moodle account must be a member of that team and use their account for that team.

The user connection is done via the Slack button, which uses the OAuth 2.0 protocol in Slack (https://api.slack.com/docs/oauth).

Full setup documentation for bot the plugin and users can be found here - https://docs.moodle.org/33/en/Slack_message_processor.


If the user logs into a different team Slack when trying to connect Moodle, they will receive the error:
"OAuth Error: invalid_team_for_non_distributed_app".
If the user is already logged into a different team Slack when trying to connect Moodle, they will receive the team login screen
for Slack until they do login to the correct Slack.
I am trying to determine if there is a way to "force" the login to the correct team.

-----
If you wish to contribute in any way, message me on github or to mike.churchward@poetgroup.org.
-----

Future thoughts:
- It may be possible to allow users to pick their own teams, but it would involve the same complex setup for each user as it is
for the site setup.
- It would be great if the current configuration forced the team set at the site level so that the user account connection is
simplified.
- It would also be great if the connection to Slack could use the Slack user's user name to set the channel rather than force the
user to pick one.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Mike Churchward (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Rezulton rimarka
  • Plugins bot
    ĵa, 20 de apr 2017, 22:50
    Approval issue created: CONTRIB-6866
  • JOSE LUIS ANSÓ
    ĵa, 25 de maj 2017, 02:25
    Hi Mike, congratulations for the idea. Unfortunately I don't know how I can setup/test this in my moodle. Is there any step-by-step guide? Thanks
  • Mike Churchward
    ĵa, 25 de maj 2017, 04:29
    I still haven't written the step by step instructions, since this is still very Beta. But, the readme file and the description above should be enough to get you started. You essentially need to be a Slack admin of your Slack team, create the Slack app using the link in the readme, and the use the client id and secret that are generated from that app to configure Slack at the site level.
    Each uses then only needs to use the "Slack button" on their notifications preference screen to connect their Slack account.
  • Mike Churchward
    sa, 27 de maj 2017, 03:17
    I added better documentation describing the setup in Moodle and Slack here - https://docs.moodle.org/33/en/Slack_message_processor
  • Angela Cristina Contreras
    ve, 14 de sep 2018, 03:46
    Hi Mike!

    I will love to have this plugin on my moodle, but my version is 3.5.1. Please let me know if your release version could work? or if you have planned to release a new version for moodle 3.5.
    Thanks!
  • Mike Churchward
    ve, 14 de sep 2018, 03:51
    Although I haven't tried it, it should work on 3.5 as well.
  • Eric Lin
    lu, 31 de aŭg 2020, 12:18
    Great idea, would love to explore this more. We're on moodle 3.8. Do you know if this works for this version?
  • Shravan Kumar B
    ĵa, 8 de okt 2020, 16:00
    Awesome Plugin! I installed and worked around, its super neat!

    But i needed to know if we can add custom messages to the notification. The current notifications are too dirty for user consumption. Could you guide me with that?
  • Raphael Teodoro Silveira
    sa, 24 de okt 2020, 04:34
    Hey, guys! How's it going?

    I managed to get the plugin running and even notifying in slack, but I actually need it to notify when a new course is available.

    Sadly, that doesn't look as an option in notification preferences, am I unfortunately correct?
  • Catalino Pascual
    sa, 4 de dec 2021, 13:20
    Hi Everyone,
    After setting up Slack and the Notification Preferences, the Slack column does not have switch buttons (for both online or offline) to toggle notifications on and off. It only says "Disabled" instead.
    Does anyone know how to fix this? Thank you.
  • Daniel Ciccone
    ma, 18 de okt 2022, 21:08
    I'm trying to use it with moodle 3.10, the plugin installs without problems, but I can't connect to slack, can someone help me?
Please login to post comments