How to Build a Slack Bot

preview_player
Показать описание
Slack is a great chat and communication tool used by small and large businesses as well as personal use. Slack has a great API and great official Node JS clients that help you automate many features of Slack. If you're thinking of building a bot for Slack, be sure to follow this step by step tutorial on how to build a Slack bot in JavaScript using the Slack API and the Node Slack SDK. With this SDK, we can connect to the Slack Web API and even hook into events using the RTM API and build a bot in just a few minutes that you can add to your Slack server today.

If you need help cloning this repo, or setting up your developer machine, see my other video:

00:00 Intro
00:22 Why
00:37 What is Slack
00:59 What We're Going to Build
01:31 Create a Slack Workspace
01:53 Create a Slack App
02:31 Add App Features to Our Slack App
03:08 Customize Our Bot Display
03:23 Start Writing Code
04:05 Configure Your Machine for JavaScript Development
04:37 Install Dependencies
06:01 Get Slack OAuth Access Token
07:11 Start Our Bot
07:31 Send Message From Bot
08:30 Bot Spam Channel
09:30 Bot Online Message
10:39 Hello Command Using Events
11:27 Invite Bot to Channel
12:16 !hello Command Logic
14:25 Bot Mentions with userId
15:30 Bot Feature Complete
15:41 Conclusion
16:18 Stream Highlight - Battlefield 1942 Tank Repairs - Such a classic game!

(Affiliate links may be included in this description. I may receive a small commission at no cost to you.)

Techno Tim Kits:

⏯ Recommended Videos ⏯

#SlackBot #SlackAPI #Coding #OpenSource #TechnoTim #HomeLab

Description tags: OAuth, Real time messaging API, interactive messages, events API, incoming webhooks, npm, yarn, robot, Slack Apps, create new app, workspace, how to build a slack bot, slackbot, javasctip slackbot, slackbot tutorial,

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

Do you use Slack at home or at work?

Btw, if you're new here, welcome! Be sure to subscribe for more content like this! 🚀

TechnoTim
Автор

I started watching you yesterday, namely the video where u show how to do a video card passthrough on proxmod. Good video that one. I appreciate guys like this. Goes into all the details. Keep doing your thing man. Im subbing.

creechavo
Автор

Your videos are always perfect and simple enough for everybody! You have a new fan

bedar
Автор

Nice video. One suggestion: I would add an annotation/link to your "Setting Up Windows for JavaScript Development THE RIGHT WAY" video at 03:23 Start Writing Code. I hadn't seen your description while watching your video for the first time and I was immediately lost at that chapter.

janisshin
Автор

Techno Tim; LOVE, LOVE, LOVE your videos! Thank you. 💜

mollycain
Автор

After clicking Bots 2:39, the Add Legacy option is not available...

MythicEcho
Автор

I've only started following your videos fairly recently. Keep it up, I am sure your channel will grow!! 🤖

ShadowHunter
Автор

Your video re amazing, hope your chanel get millions of sub, you deserve it, good luck mate

michaeloska
Автор

Great video! Do you have a recommendation for how to keep the bot running when you close your terminal?

amberthorpe
Автор

Hey man. Grateful to have found your tutorial! Really helpful. I've got an issue though. My bot is not appearing as online even though I got the "Always Show My Bot as Online" enabled. Any thoughts? Thanks and cheers!

adrianjason
Автор

Hey Tim, great Video. Could you maybe make a Video about the Ticketsystem „Zammad“ or about the knowledgebase System „xWiki“?

alexanders
Автор

Hello!

Thank you so much for this great Tutorial!

Unfortunately, i'm having a small problem... When i type "!Hello" at Slack, the Bot answers me the same message 5 times in a row... and i can't understand why. Could you give me a little help please?

Thanks in advance!

tiagoalexandrino
Автор

Thanks a lot ! Very good explanation !

Lysiak.Yevhenii
Автор

I used to program a lot of PHP code, and am familiar with server side code, but how do i install this on a web server so i can run it in production not just on my main machine. Your tutorial for how to configure my windows environment was nice, a few version updates made me search for a few answer but i got there.

ljohnso
Автор

Nice tutorial but rtm-api is deprecated . Can you create same tutotial in socket Mode using @Slack/bolt package? Thanks and happy Learning!!

alokpradhan
Автор

Hey Techno Tim,

After starting up the bot at 8:39, I get the following error message:

*/
TypeError: Cannot read properties of null (reading 'message')
at callback
at afterWrite
at onwrite
at WriteWrap.onWriteComplete [as oncomplete]

/*

Do you know what I can do next?

estongreub
Автор

Yo TechnoTime, its been a year since you published this. and I don't see a classic app option. What gives?

webmandman
Автор

LIKE --> Comment, before Watching video I know it will be something good

JeDeXxRioProKing
Автор

I'm working on a bot that sends request to my private API to create some data on my DB and they are mounted both on the same server. Do you recommend this or should I mount both of them as different applications?

martincarrascofilippi
Автор

One question. Can you do a video in how to host/create a game server in proxmox if it's possible to do it in that. If not then with a reliable solution to host gaming servers on one server machine.

creechavo