Python Slack Bot Tutorial #3 - Slash Commands

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • This python slack bot tutorial covers how to use slash commands in slack. We will be working on creating slash commands, handling them when they are invoked and replying to the user with some kind of meaningful message.
    💻 Ngrok Download: ngrok.com/
    📖 Full Series Code: github.com/tec...
    📕 Slack API Website: api.slack.com/
    📗 Slack Website: slack.com/intl...
    📚 Playlist: • Python Slack Bot
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    🔊 Subscribe to my second channel for weekly podcasts! / @timeoutwithtim
    💰 Courses & Merch 💰
    💻 The Fundamentals of Programming w/ Python: tech-with-tim....
    👕 Merchandise: teespring.com/...
    🔗 Social Medias 🔗
    📸 Instagram: / tech_with_tim
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-ruscica-82631b179
    🌎 Website: techwithtim.net
    📂 GitHub: github.com/tec...
    🔊 Podcast: anchor.fm/tech...
    🎬 My CZcams Gear 🎬
    🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
    🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
    📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
    🕹 Tripod: amzn.to/3hpSprv
    🎤 Main Microphone (Rode VideoMic Pro): amzn.to/3d0KKMG
    🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
    🎤 Third Microphone (Blue Yeti USB Mic): amzn.to/3hoD625
    ☀️ Lights: amzn.to/2ApeiXr
    ⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
    🖱 Mouse (Steelseries Rival 300): amzn.to/3cVTqnD
    📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
    📢 Speaker (Beats Pill): amzn.to/2XYc5ef
    🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
    🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
    🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
    💻 Main Monitor (LG 4K): amzn.to/37ybtiH
    💻 Secondary Monitor (Thinkvision 1080p): amzn.to/2AyHR8H
    🎤 XLR Microphone (Rode NT1): Not available
    🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
    🎚 Audio Interface (Behringer 4 Channel): amzn.to/3fqm4z3
    💾 Recorder (Zoom H6): amzn.to/2UIihVJ
    ◾ 💸 Donations 💸 ◾
    💵 One-Time Donations: www.paypal.com...
    💰 Patreon: / techwithtim
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    ⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
    ⭐ Tags ⭐
    - Tech With Tim
    - Slack Bot Python
    - Python Slack Bot
    - Python Slack Slash Commands
    - Slack Commands
    - Python Slack Bot Commands
    - Slash Commands Slack
    - Slack Slash Commands
    ⭐ Hashtags ⭐
    #Python #Slack

Komentáře • 46

  • @balakumaranmurugan6263
    @balakumaranmurugan6263 Před 3 lety +7

    a="I"
    comment=7
    If comment==7:
    print (a+"am 7th commenter")
    else:
    print("no it's necessary")

  • @warlock5624
    @warlock5624 Před 3 lety +1

    Not much into bots but I'm learning how we can integrate API

  • @emiliojacome6702
    @emiliojacome6702 Před 2 lety +2

    for some reason i get this: "


    "
    and Message: 0. anyone else with this error?

    • @BrannenTaylor
      @BrannenTaylor Před 2 lety +2

      Yes. I wasn't at first, but it started appearing as I went through the video. I came here to see if anyone had a solution.

  • @andreichiperi
    @andreichiperi Před 3 lety +2

    nice bro

  • @shantanuroy9408
    @shantanuroy9408 Před 3 lety +1

    Can you please make a video tutorial on the golf game that you created once?...it was quite cool

  • @amankaushik5833
    @amankaushik5833 Před 3 lety

    Awesome video as always Tim!! I always love watching your videos related to any topic. Keep up the good work 👍👍

  • @gustavprinsloo4645
    @gustavprinsloo4645 Před 3 lety +1

    Can you please help me.
    Im trying to display a Modal file (built with Block Kit) when using slash commands and make those modals interactive

  • @freddieroberts9663
    @freddieroberts9663 Před rokem +1

    any thoughts on why the script will stop functioning after about an hour? I typically have to end the script and restart it and then it works again

  • @samcodes2912
    @samcodes2912 Před 3 lety

    great video as usual Tim.

  • @ishaan600
    @ishaan600 Před 3 lety +1

    ay nice content man

  • @vincentgauthier2298
    @vincentgauthier2298 Před 3 lety

    Tim, this is awesome. thanks for the guide man

  • @galaxy_apollo13
    @galaxy_apollo13 Před 3 lety

    Nice, bro. Keep it up you helped me a lot with these videos.

  • @leonardoarevalo6292
    @leonardoarevalo6292 Před 3 lety +1

    Hi how are you?
    Can the bot be made to open a block kit or modals? Can you help us with that?

  • @Tommy-jn9ps
    @Tommy-jn9ps Před 3 lety +1

    i just wanna ask. On the machine learning tutorial you were using pycharm and you set up the tenserflow package i believe nad all the others. How can you do that in python? i remember you went to file and then settings but in vs code theres no such as settings in file. I will appriciate any sort of help.

  • @rog_shakhyar6171
    @rog_shakhyar6171 Před 3 lety +1

    Hey Tim, what about an advanced neural net tutorial ??

  • @knbabu5473
    @knbabu5473 Před 3 lety +1

    Can you please amke a video on coding a website using django in pycharm(once this series gets over)?

  • @timwebster85
    @timwebster85 Před rokem

    so good thanks Tim

  • @viveklalwani4735
    @viveklalwani4735 Před 3 lety

    TIM THE WORLDS BEST CODER

  • @mbmcmb8047
    @mbmcmb8047 Před rokem

    Despite following everything step by step, im getting ngrok error 6022, any solutions?

  • @rujelen77
    @rujelen77 Před měsícem +1

    great series! Question though. Anyone know how to do an f-string in Pycharm (macOS). Im on Python 3.12 and Pycharm 2023.1.4

    • @rujelen77
      @rujelen77 Před měsícem

      Actually nvm. got it
      client.chat_postMessage(channel=channel_id, text=f"Message: {message_count}")

  • @JacksonLourdusamy
    @JacksonLourdusamy Před 3 lety +1

    Hey Tim! It such a wonderful video. I have a doubt, lets say I have a bot and that is configured for two or more channels.. and I want to track the messages for those two or three channels as well. How do I achieve this? I tried inside a loop but it fails. It just collectively tracking messages for all those channels and replying it to the 1st element in the list of channels. I believe you got my point and I hope you could help me through this. Thanks!

    • @JacksonLourdusamy
      @JacksonLourdusamy Před 3 lety

      Sorted it after watching the video couple more times :-) Earlier I was using Pagination... Do you have any such idea how this be handled with Pagination? If so do a tutorial in your style.. much needed and very helpful. Thanks!

  • @superjunkfood
    @superjunkfood Před 2 lety +1

    THX !

  • @diegomtzs5737
    @diegomtzs5737 Před 2 lety

    How I can do this using the python slack sdk with an aws lambda?

  • @anadivyas4841
    @anadivyas4841 Před 3 lety +1

    Thanks bro

  • @kadiatoudrame568
    @kadiatoudrame568 Před 3 lety +4

    my children and I have been watching your video for well now you always make our day my little girl who is 4 years old ask me to start channel like this so I did I will like to invite you to check it out😊😊L

  • @PritishMishra
    @PritishMishra Před 3 lety

    Why Flask ? Please make same with Django !!

  • @Converxful
    @Converxful Před 3 lety

    You forgot to add that in order to make request.form working you need to import
    from flask import request

  • @Itayc1
    @Itayc1 Před 3 lety

    Hello Tim, Love your channel and I learn a lot. Quick question : When I run the slash command (tasks) I get : /tasks failed with the error "dispatch_failed" even though I specified POST (got 405 METHOD NOT ALLOWED without it) . Using POST I get 500 INTERNAL SERVER ERROR but I do get the data and can use it. Why is this happening ? Thanks, Itay

    • @Itayc1
      @Itayc1 Před 3 lety

      never mind. found my problem...

    • @AndyAverbuch
      @AndyAverbuch Před rokem

      @@Itayc1 What was the solution if you remember? Thanks!

  • @curioussiddharth843
    @curioussiddharth843 Před 3 lety

    First tim sir

  • @alihameed7865
    @alihameed7865 Před 3 lety +1

    can you make a telegram bot tutorials for us please

  • @Aryan-fd9yv
    @Aryan-fd9yv Před 3 lety +1

    EXACTLY 100TH VIEW WTH

  • @holycow4889
    @holycow4889 Před 3 lety +1

    Yo i'm the first liker XD

  • @unknownman5296
    @unknownman5296 Před 3 lety +1

    seventh comment...

  • @KundanKumar-uj2in
    @KundanKumar-uj2in Před 11 měsíci

    Anyone experiencing a big html code? Rendered in channel

  • @deadchannel7637
    @deadchannel7637 Před 3 lety

    I hope you make telegram bot

  • @vivekadityasharma7887
    @vivekadityasharma7887 Před 3 lety

    Third view..