Python Slack Bot Tutorial #1 - Setup & Sending Messages
Vložit
- čas přidán 18. 10. 2020
- This python slack bot tutorial covers how to setup a slack bot and send messages with a slack bot using python. We will learn how to setup a slack bot using the slack api and then create a python script that will allow your slack bot to send messages.
📖 Full Series Code: github.com/techwithtim/Slack-...
📕 Slack API Website: api.slack.com/
📗 Slack Website: slack.com/intl/en-ca/
▪️ How to Fix Pip ▪️
📙 Windows: • How to Install Pygame ...
📘 Mac: • How to Install Pygame ...
📚 Playlist: • Python Slack Bot
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
🔊 Subscribe to my second channel for weekly podcasts! / @timeoutwithtim
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 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/donate/?token=...
💰 Patreon: / techwithtim
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
⭐ Tags ⭐
- Tech With Tim
- Slack Bot
- Slack Bot Tutorial
- Python Slack Bot Tutorial
- Slack Bot Tutorial Python
- Slack Bot Setup Python
- Python Slack Bot
- Slack Bot Python
⭐ Hashtags ⭐
#Python #Slack
What do you want your slack bot to do?!
yes
Prank my friends!
Yes
Can you make a snake game in python without oop
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.
FINALLY someone explains the steps in detail! Thanks for your help!
This is beautiful. Simple and straightforward! Good job, Tim!
Loved it man..... I was just wondering about my next project and here you post it....👍👍👍
This tutorial is extremely helpful. Thank you, Tim!
great vid Tim. love how create you are with your projects
Its incredible how you post vidéos about things that i always want to do, Big thanks !!
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!
Glad you like them!
Great tutorial, quick to the point and with troubleshooting info. You love to see it.
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
Thanks for making this great educational videos. They helped me a lot to learn python programming. Keep up the good work
You're very welcome!
great tutorial, just what I've been looking for, thanks
Hey Tim, Love ur tutorials, plz continue doing the software design series love this the most
yeah the design videos were great
This is a great start, thank you!
Thank you so much for the video man... This content helped a company that I work for
This is like a brand, Thanks Tim)
Dope, thank you for this tutorial, it helped a lot!
I love you, you helped me so much with your videos!
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.
Thank you so much for this! Great video
Thanks Tim. Its great one to start with
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.
Thank you. It was really helpfully.
it does help! Thanks, mate!
Finally my 1st running python script using slack API
what a great video man ! hellos from México "compa" !
My boi used to say hes not artistic, (has one the most aesthetic thumbnails)
He got vaccinated
Great content! Thank you!
Bruhh.... I was thinking about same in afternoon, today........... Thank you brother..... You play an important role in my life.... My weekend buddy......
My pleasure!
thanks a lot man!
I really enjoyed ur video it's very knowledgeble
God bless Tim. I honestly don't think the world knows how much we own him.
Thank you so much
Thank you sooo much!!!
Awesome content
Sooo helpful!
Você é o cara!!!
You are the best !!
Thank you ♥
That is so damn cool!!!
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
+1 slackclient is in maintainance mode.
appreciate ya - subbed
awesome bro :)
wow you are too good ❤️
this was published on my birthday😁
I was literally searching this right now and saw tim posted something!
saw you on google interview video)
Just when I wanted to do that project.
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
Hello, bro. Your fan from Algeria (North Of Africa).
bruh, the same
@@rayanerayane6361 Really !? wilaya ?
nice bro
do more pythone
pls
this is what im bean waiting for
He is building a slack bot in Python tho 😆
Bro You are amazing dont know what number of comment
Thanks ✌️
Great video, early btw
Hey, thanks!
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..
Muito Obrigado
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?
Good
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?
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.
See me learning Django
Hope I can do it ❇️
Can you do one for c++ ? I just started programming for my second semester and I want to learn more while I can
Hello, nice Intro but at 10:28 you didn't blur your token be careful next time :p
Still w8ing for ur Django course
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.
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?
Woah I was very fast
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?
Even if I uninstall and reinstall slackclient, I get No module names 'slack' error. Any ideas?
Did you found a solution? Still not working for me
@@AssertingSecurity Same here
ayyy Tim. Ello ello
the latest way to add the bot to a channel is from the rot app itself not inside channel
I think you should make a clone version of Braskeys Unity
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
He posted his resume this June, had Java, JavaScript, C# with lower proficiency than in python, so maybe he's not master lvl
nice suggestion
@@user-gt2th3wz9c yeah man you are right...
@@user-gt2th3wz9c 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
@@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
My boy uses conda! Data Science fam?
For the slack error on python, just close and open vs code
Which Software Do You Use To Make Thumbnails?
And, if possible, make a thumbnail tutorial too...
Major amateur question - what type of “project” in VScode are we using? I’ve never set-up VScode before
Nice. However, I saw the token. hehehe!
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 )"
Bro we need the hosting video.. you made the django website building video... We need the free hosting video broo please 🙏🙏🙏
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.
Can you make the Bot accept links from specific users and save them/send them to you ?
Thanks! 9:47 🤣🤣
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)
What's the difference between using bolt framework and the slack api?
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
Yeah me too
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?
The slack keeps telling there no module found and I installed it again.
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.
I Suggested You This series In discord bot series
Now do one for Zoom!
TY for this tutorial! I'm still receiving the "No module named 'slack'" error even after uninstalling and reinstalling - anyone have any other fixes?
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.
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?
Is there a way to do the same but for private messages instead of a channel?
Pip stands for Python Install Packages
10:21 you forgot to blur it here lol
Can do a discord.js tutorial can be helpful
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)
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.
I did everything but I still get the No Module Named error ... do i need to install a specific version of something or what?
Can someone pls help. When I say Install to workspace slack shows slack-bot doesn’t have a bot user to install