Python Slack Bot Tutorial #1 - Setup & Sending Messages

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

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

  • @TechWithTim
    @TechWithTim  4 года назад +38

    What do you want your slack bot to do?!

    • @soisauce364
      @soisauce364 4 года назад +3

      yes

    • @RohanKumar-zd3pc
      @RohanKumar-zd3pc 4 года назад +1

      Prank my friends!

    • @ajdevz1067
      @ajdevz1067 4 года назад

      Yes

    • @Deadshot-sq5pc
      @Deadshot-sq5pc 4 года назад +3

      Can you make a snake game in python without oop

    • @QuangNguyen-hh6rw
      @QuangNguyen-hh6rw 4 года назад +5

      Ask slack bot to send the snippet code for a specific problem. For example, how to stack vertically/horizontally matrices in numpy, or how to convert RGB image to BGR in OpenCV, etc.

  • @patriks.8078
    @patriks.8078 4 года назад +11

    FINALLY someone explains the steps in detail! Thanks for your help!

  • @satvikreddy8662
    @satvikreddy8662 4 года назад +6

    Great video. Learning how to use api's is great for automation. Btw, you left your API key open at 10:19, so just watch out for that.

  • @baryalen9669
    @baryalen9669 4 года назад +4

    Realy appreciate u posting such vedio bro keep going more power to u for people who cant afford to pay nd study python this is a massive massive help thnku

  • @galaxy_apollo13
    @galaxy_apollo13 4 года назад +11

    Thanks for making this great educational videos. They helped me a lot to learn python programming. Keep up the good work

  • @usmanmir5663
    @usmanmir5663 4 года назад +27

    My boi used to say hes not artistic, (has one the most aesthetic thumbnails)

    • @eahere
      @eahere 4 года назад +1

      He got vaccinated

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

    This is beautiful. Simple and straightforward! Good job, Tim!

  • @blackhalo117
    @blackhalo117 8 месяцев назад

    Great tutorial, quick to the point and with troubleshooting info. You love to see it.

  • @kaushikiyer9470
    @kaushikiyer9470 4 года назад +2

    Loved it man..... I was just wondering about my next project and here you post it....👍👍👍

  • @nawid1687
    @nawid1687 4 года назад +1

    Thank you so so much for these amazing videos. Seriously you are awesome I've been a fan for a long time but I just joined the discord yesterday and its fantastic!

  • @alina_yurenko
    @alina_yurenko 3 года назад +1

    This tutorial is extremely helpful. Thank you, Tim!

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

    Finally my 1st running python script using slack API

  • @PedroTechnologies
    @PedroTechnologies 4 года назад +1

    I was literally searching this right now and saw tim posted something!

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

    Hey! So I'm receiving this error when running the code in 10:56min-->" 'env_path' is not defined " Any ideas why this is happening?

  • @skanderredjel5044
    @skanderredjel5044 4 года назад

    Its incredible how you post vidéos about things that i always want to do, Big thanks !!

  • @samcode8311
    @samcode8311 4 года назад +5

    Hello, bro. Your fan from Algeria (North Of Africa).

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

    God bless Tim. I honestly don't think the world knows how much we own him.

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

    Thank you so much for the video man... This content helped a company that I work for

  • @prashantsaxena133
    @prashantsaxena133 4 года назад

    Bruhh.... I was thinking about same in afternoon, today........... Thank you brother..... You play an important role in my life.... My weekend buddy......

  • @Tom-kg6qe
    @Tom-kg6qe 4 года назад +2

    PIP - Python Installer Package, or Package Installer for Python! (Which makes sense for pip3 being Package Installer for Python 3.)
    Ideas for Slackbot:
    Can you get it to play Blackjack with you or something? Or Dice/light RPG mechanics like what they do with some of the discord bots?
    Tim: I'ma blur my slack token so you can't read it.
    Also Tim: 10:18

  • @samcodes2912
    @samcodes2912 4 года назад

    great vid Tim. love how create you are with your projects

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

    This is a great start, thank you!

  • @mbmeweg293
    @mbmeweg293 4 года назад

    This is like a brand, Thanks Tim)

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

    Dope, thank you for this tutorial, it helped a lot!

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

    great tutorial, just what I've been looking for, thanks

  • @abdullahe.8494
    @abdullahe.8494 4 года назад

    Hey Tim, Love ur tutorials, plz continue doing the software design series love this the most

    • @samcodes2912
      @samcodes2912 4 года назад

      yeah the design videos were great

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

    I love you, you helped me so much with your videos!

  • @binaprajapati3593
    @binaprajapati3593 4 года назад +7

    Dude!! You made a mistake at 10:19 the token wasn't blurred. Do something about it

  • @ChaseKeller-yi7gw
    @ChaseKeller-yi7gw Год назад

    Thank you so much for this! Great video

  • @omarizhar3069
    @omarizhar3069 4 года назад

    Hey Tim, this is exactly what i needed for my work. TYSM man you are the best. Can the next part of this series explain how to respond to certain messages, e.g. if a colleague asks for a code, slack bot can take his message as input and then run a script and reply with the response to that. As always, you are amazing sensei.

  • @shahul111
    @shahul111 4 года назад

    Thanks Tim. Its great one to start with

  • @modoulaminceesay9211
    @modoulaminceesay9211 4 года назад +6

    The slack keeps telling there no module found and I installed it again.

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

    appreciate ya - subbed

  • @Sr.FawkesCH
    @Sr.FawkesCH 4 года назад

    what a great video man ! hellos from México "compa" !

  • @ayushikannojia4082
    @ayushikannojia4082 4 года назад

    I really enjoyed ur video it's very knowledgeble

  • @dannymoon1725
    @dannymoon1725 3 года назад +4

    Even if I uninstall and reinstall slackclient, I get No module names 'slack' error. Any ideas?

    • @AssertingSecurity
      @AssertingSecurity 3 года назад +1

      Did you found a solution? Still not working for me

    • @EloyV-yb5lv
      @EloyV-yb5lv Год назад

      @@AssertingSecurity Same here

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

    it does help! Thanks, mate!

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

    Thank you. It was really helpfully.

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

    Great content! Thank you!

  • @netishmb761
    @netishmb761 11 месяцев назад

    12:46 connect to an app option I am not getting can anyone help me regarding this step thankyou in advance anyone

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

    the latest way to add the bot to a channel is from the rot app itself not inside channel

  • @jananni123456789
    @jananni123456789 4 года назад

    Is this a good project to go from beginner to intermediate? What topic would you say you get to learn the most, e.g. i think event handling was mentioned in the intro?

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

    One thing that really tripped me up was the fact that on MacOS, port 5000 is being used by something on the system - but it doesn't tell you. I spent a long time trying to understand why I would always get a 403 when hitting my local python server.

  • @sravanbathini4137
    @sravanbathini4137 4 года назад +3

    Hello... I Am probably getting the < import slack > ERROR, even after I uninstall and install it, it is showing like this down bellow
    [Running] python -u "c:\Users\---------\Desktop\Tutorial\bot.py"
    Traceback (most recent call last):
    File "c:\Users\----------\Desktop\Tutorial\bot.py", line 1, in
    import slack
    ModuleNotFoundError: No module named 'slack'
    [Done] exited with code=1 in 0.364 seconds
    This Is What I Am Getting Trouble With
    Hope you come up with a solution for this

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

    Major amateur question - what type of “project” in VScode are we using? I’ve never set-up VScode before

  • @sarahpurvis8833
    @sarahpurvis8833 3 года назад +1

    thank you for the tutorial! I'm just struggling a little with pathlib - i keep getting this message: ModuleNotFoundError: No module named 'Pathlib'. What do I do?

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

    I have a slack with a lot of channels that I want to add the bot to and adding it to each individual channel 1by1 is a very tedious task manually. Do you know a way to add the bot to multiple channels with code by any chance?

  • @Tommy-jn9ps
    @Tommy-jn9ps 4 года назад

    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.

  • @krishchauhan235
    @krishchauhan235 4 года назад +1

    Hey Tim, can you create a bot for flock team app, I use that with my team and it would be great if you could give me a basic tutorial?

  • @evanderfrancis694
    @evanderfrancis694 3 года назад +1

    Does anyone know why I would not be able to see "connect an app" in my slack channel? I can see my App in the Apps section, but i am only able to add ppl to the channel.

  • @parthsinghrajput1062
    @parthsinghrajput1062 4 года назад

    Bro You are amazing dont know what number of comment

  • @stiljohny
    @stiljohny 3 года назад +1

    dotenv module seem to have changed a bit
    I had to use
    import slack
    import os
    from pathlib import Path
    from dotenv import load
    env_path = Path('.') / '.env'
    load(filepath=env_path)

  • @programming_hut
    @programming_hut 4 года назад +1

    wow you are too good ❤️

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

    So if i understand that correctly i dont need the environment? You just used it so you do not need to blur out your toke, right?

  • @Choro1
    @Choro1 4 года назад +2

    10:27 um, did he just showed his token?

    • @csabalenart7699
      @csabalenart7699 4 года назад

      Well, you only have to guess the last 11 characters which can be upper/lower case characters and numbers.

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

    TY for this tutorial! I'm still receiving the "No module named 'slack'" error even after uninstalling and reinstalling - anyone have any other fixes?

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

      try changing the python interpreter the vs code is using. Hit Ctrl+Shift+P and type interpreter to choose from several interpreters that your device has. Choose the one in which you installed the packages.

  • @shridumanish3506
    @shridumanish3506 4 года назад +2

    10:21 you forgot to blur it here lol

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

    Hey Tim, This is really helpful and thank you for making such amazing and informative video. There is one more thing called "bolt framework for slack" can you also try to cover this in your next slack playlist please. It would be helpful. Thanks

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

      +1 slackclient is in maintainance mode.

  • @patriks.8078
    @patriks.8078 4 года назад

    Is it possible to send massages to slack with data from airtable? E.g. I want to send the number of the data entries of a hole table every week into slack as an update. (It is not possible with airtable automation)

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

    Tim, a question. Was able to build my first bot based on your video, and I used the block kit builder with a drop down menu to format the response in getting some data, but when I select an item in that drop down list, nothing happens. Im not sure if anything is happening. Any idea why the request is not being submitted/acted upon?

  • @pathseeker5439
    @pathseeker5439 4 года назад

    Can you do one for c++ ? I just started programming for my second semester and I want to learn more while I can

  • @より-q1l
    @より-q1l 4 года назад

    Thank you for making great video!!
    Is it possible to connect with Direct Message?
    I want to connect with app to the Direct Message(sending message from someone to me , not channel )"

  • @vedantsingh2621
    @vedantsingh2621 4 года назад +4

    Could You Make More Video Like {How To Master Python} On Different Languages, recommended ones of are c/c++,java,c#,javascript. And more videos like making a CHAT bot for instagram , or may be a flexible bot that could be used for all platforms.Thanks,Fan From India

    • @ДімаКрасько-с7м
      @ДімаКрасько-с7м 4 года назад +2

      He posted his resume this June, had Java, JavaScript, C# with lower proficiency than in python, so maybe he's not master lvl

    • @samcodes2912
      @samcodes2912 4 года назад +1

      nice suggestion

    • @vedantsingh2621
      @vedantsingh2621 4 года назад +2

      @@ДімаКрасько-с7м yeah man you are right...

    • @vedantsingh2621
      @vedantsingh2621 4 года назад

      @@ДімаКрасько-с7м Hey I wonder that you are online.. so let me ask you a decent question that how can I make my bot live forever like I have a bot that can fetch prices from different E-commr. sites and mails me when the price is low but I is useless bcoz I have to run it again and again though cmd..so can you suggest me a way or a link to a doc or video solving my problem..please help

    • @ДімаКрасько-с7м
      @ДімаКрасько-с7м 4 года назад

      @@vedantsingh2621 maybe this will help.
      docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp%2Cvs

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

    What's the difference between using bolt framework and the slack api?

  • @programmer4047
    @programmer4047 4 года назад

    Which Software Do You Use To Make Thumbnails?
    And, if possible, make a thumbnail tutorial too...

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

    Hey Tim, could you please help me, as slack-client is in maintenance mode and version 3 has came, as slack-sdk, but not able to listen to events to it.

  • @adeyemiakitoye
    @adeyemiakitoye 4 года назад

    this was published on my birthday😁

  • @milkokawaiidjiev5000
    @milkokawaiidjiev5000 4 года назад

    Can you make the Bot accept links from specific users and save them/send them to you ?

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

    Is there a way to do the same but for private messages instead of a channel?

  • @MrEloska
    @MrEloska 4 года назад

    @Tim you forget to blur SLACK_TOKEN in 10:18 :(

    • @TechWithTim
      @TechWithTim  4 года назад +1

      It’s fine because it’s cut off

  • @mohamedlimam1310
    @mohamedlimam1310 4 года назад

    Hello, nice Intro but at 10:28 you didn't blur your token be careful next time :p

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

    saw you on google interview video)

  • @DilipKumar-zo8mr
    @DilipKumar-zo8mr 2 года назад

    When I type hello my bot is not responding, I have used signing secret and slack token in my code. What could be the possible reason. Could you please help.

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

    thanks a lot man!

  • @marzanchowdhury5291
    @marzanchowdhury5291 4 года назад +1

    How are you able to just write code without even researching anything. Do you have all these functions memorised?

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

    @techWithTim I am getting following error while sending the message to channel
    urllib.error.URLError:
    Can you help with this ?

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

    Você é o cara!!!
    You are the best !!

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

    I did everything but I still get the No Module Named error ... do i need to install a specific version of something or what?

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

    For the slack error on python, just close and open vs code

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

    This is great stuff... I had to subscribe to your channel.. You have me on my way with this slack bot I'm creating to do an API get and then pull the results into my Slack workspace/channel. Have you done one of those? Thanx..

  • @rudro314
    @rudro314 4 года назад

    Awesome content

  • @lalithbandaru2772
    @lalithbandaru2772 4 года назад

    Hi Tim, I don't why when the slackclient module is being installed I just run into a crazy error in the middle of installation and it will not install the module. Can you please help?

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

    Sooo helpful!

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

    you blurred your token - but exposed it at @10:21 - otherwise informative even if it's not what i'm looking for

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

    Getting an error: urllib.errror.URLError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time....
    Can you please help how to resolve this... Thanks

  • @shaikzaffar1714
    @shaikzaffar1714 4 года назад

    hello!!
    how can i post a message directly as a bot instead of in channel

  • @prdgy7264
    @prdgy7264 4 года назад

    It doesnt respond to my messages, it doesnt update my ngrok cmd prompt either. I have post.502 bad gateway showing for some reason

  • @mayankvaswani5400
    @mayankvaswani5400 4 года назад

    Can someone pls help. When I say Install to workspace slack shows slack-bot doesn’t have a bot user to install

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

    Thank you sooo much!!!

  • @puneetsingh514
    @puneetsingh514 4 года назад

    Can this be included in freshers resume??

  • @patjr35234
    @patjr35234 4 года назад

    do more pythone
    pls
    this is what im bean waiting for

    • @nawid1687
      @nawid1687 4 года назад

      He is building a slack bot in Python tho 😆

  • @duckiemanuwu
    @duckiemanuwu 3 года назад +1

    for me the error was 'no module named WebClient'

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

    Thank you ♥

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

    does this work with new python versions?

  • @shahul111
    @shahul111 4 года назад

    Can you share link for conversational slack bot please

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

    i get this error and please tell me how to fix this
    File "", line 679, in __getitem__
    KeyError: 'SLACK_TOKEN'

  • @ajdevz1067
    @ajdevz1067 4 года назад

    Anyone tell me prerequisite of this course? Thanks for advance

  • @InfamousKurutta
    @InfamousKurutta 4 года назад

    Great video, early btw

  • @plusk343
    @plusk343 4 года назад +1

    That is so damn cool!!!

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

    I cant connect an app in the slack channel?