Support » Plugin: Slack Notifications by dorzki » Manually firing a message

  • Resolved adamccc

    (@adamccc)


    Hi dorzki!

    Firstly thanks for a great plugin – it’s amazing!

    Could you advise me how I fire a simple notification in php?

    Slack_Bot::get_instance()->send_message('hello');

    I was thinking something like this but it says it can’t find the class

    Thanks
    Adam

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dor Zuberi

    (@dorzki)

    Hi @adamccc,
    I’m happy to hear that you enjoy the plugin 🙂

    In order to fire the bot manually use the following snippet:
    Slack_Notifications\Slack_Bot::get_instance()->send_message( $message, $attachments, $args );

    • This reply was modified 7 months, 1 week ago by Dor Zuberi.
    Plugin Author Dor Zuberi

    (@dorzki)

    Hi @adamccc,
    I’m happy to hear that you enjoy the plugin 🙂

    In order to fire the bot manually use the following snippet:
    Slack_Notifications\Slack_Bot::get_instance()->send_message( $message, $attachments, $args );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manually firing a message’ is closed to new replies.