Code Monkey home page Code Monkey logo

rock-the-slackbot's People

Contributors

bamadesigner avatar mpeshev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rock-the-slackbot's Issues

Specify page or post to track

Instead of being notified anytime any page or post is updated, I'd like to be able to specify exactly which page or post should be watched & alerted on. That way as we make updates to an internal site, a user or channel is updated without being spammed when other posts / pages are created, updated, etc.

Notification not received if channel field left empty

Not a major issue, but If I set up a webhook on Slack and specify the channel, and then leave the Send To Slack Channel or Direct Message field empty (to use the default channel) on the Rock the Slackbot config, the notification is not received. When I specify a channel or direct message, then everything works fine.

Filters doesn't work

Hi,
I've modified example filter to send comments in specific category to a certain channel only, and added this filter to function.php of current theme. But it still sends notifications to the same channel that is set in plugin webhook settings.

Any ideas? Thanks.

Support for yada wiki

Hello,

Is there a chance that you can add support for yada wiki, so that when a post in yada wiki is commented, changed or published you push that to a slack channel?

Send Notification from Specific page when the user just load the page

Hello Rachel,

     Quick question about your plugin for wordpress and Slack.

     I trying to receive a notification when any user go to specific page, is possible?

    I tried to insert this in one specif page, but no success.
send_webhook_message('https://hooks.slack.com/services/XXXXXXXXXX','this is a test','#notifications'); ?>

when I send trought the 'run test' works fine!

Thanks for your help

Alberto Iglesias

Opt-In vs Opt-Out for Post Types

I love love love being able to push notifications to Slack when new posts are published. I believe this feature has led to more team members in our company reading our own blogs. Win!

Problem: When we add a new plugin to any of our sites that uses a custom post type, if we forget to go and modify Rock the Slackbot's configs, those posts start getting pushed to Slack. Accidentally did that today with a modal dialog plugin.

It would be great if I could specify, either in the UI or through a filter, a list of post types that get pushed to Slack, rather than setting which ones get excluded.

Post to Channel based on Category?

Is it possible to set posts to go to a channel based on the category of the post? We use Slack heavily across projects, but not everybody is on all those projects, so this could be a great way to make sure the right people are informed.

Notifications for new spam comments

First of all thank you that you added this functionality. But I noticed one weird behavior and that is that spam comments now also get submitted to slack.

I was wondering if this is the right behavior and if so, if there could be an option to stop doing this. Currently I just added a check inside the hook to stop sending out notifications.

Broken application of filters?

https://github.com/bamadesigner/rock-the-slackbot/blob/master/includes/hooks.php#L153-L157

  1. It appears that the code never invokes the first filter applicable for all notifications (rock_the_slackbot_notification)
  2. The filter with hook ID specified appears to be accepting a fresh copy of $payload , hence overwriting the result of previous filter (rock_the_slackbot_notification_{$notification_event}). Shouldn't the result of the first filter be supplied to the second and so on?

Testing for Feature Development

Hi @bamadesigner! So excited to start contributing. Already re-learned Git and the process and have fork and created a branch and am already developing a one-off feature (user-authentication) then looking forward to working on some Plugin integrations like for WooCommerce specifically. Hope that's ok. My question is... I installed the plugin on a test server and configured a webhook in our Slack account. When I tested sending any post change (created/published/updated/trashed/etc.), I did not receive any notification, even though that slack thread does have notification of a webhook being created. So, how best to test/debug if notifications tried getting out.. I see on the Slack side, if it was an App in my developer account, I could view some transactions. Sorry if this answered in the code somewhere which I am still going through in depth. Thought I'd get a conversation going in the meantime. Thanks! Love the idea and the code, BTW!

"Cancelling" a notification later in the process

I do some notification customization using the rock_the_slackbot_notification hook but there does not appear to be a way for me to decide from within there to not send a notification at all, as returning an empty payload ends up merged with a default payload (which seems odd, by the way). Specifically, what I want to do is only send notifications for posts of the post post type for a given outgoing setup - I know this can be set in the plugin's UI settings, but since it's opt-out instead of opt-in we frequently have problems with new post types suddenly appearing and en masse because of an import or similar, so I'd rather enforce it in code. Is there something I'm missing that I could do instead?

Send To Slack Channel(s) or Direct Message(s) options must be explictly set

Without setting a channel e.g. #test in the Send To Slack Channel(s) or Direct Message(s) option no notifications are received in Slack regardless of the fact that #test is set in the Slack webhook on slack.com

Here's a few scenarios that all failed until I set #test as the channel in the Send To Slack Channel(s) or Direct Message(s) option:

• 404, once I added #test to the option the 404's option it worked, it also works as expected by removing the channel from the 404's optional channel setting and using the 'parent' Send To Slack Channel(s) or Direct Message(s) option.

• Custom post types, once I added #test to Send To Slack Channel(s) or Direct Message(s) then various post types worked as epected

• The Test this webhook also fails without the option set, it returns that the test was successful but no notifications are received in the Slack channel. Once adding the channel to the option the test now works as expected and a notification is seen in the Slack channel.

Incorrect plugin and theme update notifications

After a plugin has been updated this is what is seen:
The following WordPress plugin has been updated by admin on the sp.dev website at http://sp.dev.
The following WordPress theme has been updated by admin on the sp.dev website at http://sp.dev.

When a plugin update is available works as expected, though no notification is seen for a theme update being available. Per the screenshot below I would have expected to see a similar notification for the theme similar to the plugin notification, I also expect that both the plugin and theme updated notifications should be more verbose.

screen shot 2016-02-26 at 6 24 40 pm

Note: I tested both a plugin and theme my manually lowering the version number in the plugin/theme manually and then updating via the normal WordPress process

Which Content is changed from post/page editor?

Is there a way to receive slack notification when someone changed the content for post or page?

Like, if an author changed the content of the page, we received a notification for that page is updated. But what actual content is changed in that page that is also needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.