How to build a simple Slack bot using the Bolt framework for Python

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 26

  • @anthonydegarimore2922
    @anthonydegarimore2922 2 года назад +2

    Really great tutorial. I'm having fun with slack-bolt. Is there a way to have a timed event, like something that happens every Sunday?

    • @pybob
      @pybob 2 года назад

      Thanks Anthony, happy to hear. Here is an example of a scheduled event: gist.github.com/bbelderbos/af5555cfb1ff05544b4d0464577b5417 - for recurring items you can run such a script in a cronjob. Maybe there's an easier way (I abstracted this from one of our bot projects) but I would look at "client.chat_scheduleMessage"
      HTH
      Bob

  • @mohitgupta7819
    @mohitgupta7819 Год назад +1

    What if I want the slack bot to reply to a particular channel

    • @Pybites
      @Pybites  Год назад

      That must be possible. How do you mean reply to a particular channel, when user pings it or in response to some sort of pattern?

  • @maharjanlaxman
    @maharjanlaxman 2 года назад +1

    How create a web socket connection between slack and another web server ??
    Have you any idea about it??

    • @Pybites
      @Pybites  2 года назад

      No idea, does Google yield anything?

  • @arukshasilvie
    @arukshasilvie 9 месяцев назад

    Is im:history required for adding slash commands ?

    • @Pybites
      @Pybites  9 месяцев назад

      I am not sure, I guess it depends the type of command? Have you tried?

  • @GuilhermeSilva-dh1ru
    @GuilhermeSilva-dh1ru 3 года назад +1

    Nice Video. Keep up the good work

    • @Pybites
      @Pybites  3 года назад

      Thanks Guilherme!

  • @ask-odia
    @ask-odia 3 года назад +1

    Thank you. Easy to learn. I have created a bot and want to deploy in multiple servers. How can we make sure that we will get reply from only one server?

    • @Pybites
      @Pybites  3 года назад

      Cool, thanks. Make different Slack app instances, one for each different environment maybe?

  • @jonathanhle
    @jonathanhle 7 месяцев назад

    Really helpful. Thank you.

    • @Pybites
      @Pybites  7 месяцев назад

      Thank you. I should build another bot, they are fun and really helpful for work / teams. What are you building?

    • @jonathanhle
      @jonathanhle 7 месяцев назад

      @@Pybites I'm going to try to write a Slackbot/Slack App for an OSS project from Discord called Access.
      First time trying to write a Slack App/Bot, so it's all fun stuff to me.
      Thanks again for the video!

    • @Pybites
      @Pybites  7 месяцев назад

      @@jonathanhle awesome, feel free to share it in our community when you finished your prototype: pybites.circle.so/home

  • @prashantkowshik5637
    @prashantkowshik5637 Год назад +1

    Thanks a lot.

    • @Pybites
      @Pybites  Год назад

      Yw, are you building a Slack bot?

  • @diwakardayal954
    @diwakardayal954 2 года назад +1

    thanks & those jokes man 😂

  • @cjbarroso
    @cjbarroso Год назад

    Thanks!

  • @danielscholz7826
    @danielscholz7826 Год назад

    Really poor tutorial jumping right in to environment navigation without showing that set up.

    • @Pybites
      @Pybites  Год назад

      Thanks for your feedback, you mean the slack app interface at the start? What set up did we miss or could we have expanded upon then?

  • @sylex5046
    @sylex5046 2 года назад +1

    Have you tried slack_bolt.asyncapp

    • @Pybites
      @Pybites  2 года назад

      Not yet, you?

    • @sylex5046
      @sylex5046 2 года назад

      @@Pybites I have not, and I have trying to use it but I cant seem to make it run. If you could do a quick tutorial ill highly appreciate it

    • @Pybites
      @Pybites  2 года назад

      @@sylex5046 I don't have a need now / other prios. Btw why do you need async, does sync work for you?