How to Build a Slack Bot

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

ความคิดเห็น • 86

  • @TechnoTim
    @TechnoTim  4 ปีที่แล้ว +4

    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! 🚀

    • @joshbowden983
      @joshbowden983 3 ปีที่แล้ว

      Both!

    • @LesCarbonaro
      @LesCarbonaro 3 ปีที่แล้ว

      Literally just got started with Slack bots today, and your tutorial just hit the spot! Not too much to overwhelm a total newbie, at the same time taking care not to leave out any important details. How can I build on this to have the bot reply to @mybot , as opposed to ! messages? Thanks again for putting this together.

  • @creechavo
    @creechavo 4 ปีที่แล้ว +4

    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.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว +1

      Awesome, thank you!

  • @bedar89
    @bedar89 4 ปีที่แล้ว +3

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

  • @MythicEcho
    @MythicEcho 3 ปีที่แล้ว +4

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

  • @elneto264
    @elneto264 3 ปีที่แล้ว +3

    would love to see a part 2!

  • @janisshin
    @janisshin ปีที่แล้ว

    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.

  • @mollycain1360
    @mollycain1360 2 ปีที่แล้ว

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

  • @ShadowHunter5000
    @ShadowHunter5000 4 ปีที่แล้ว

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

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Welcome aboard!

  • @michaeloska3113
    @michaeloska3113 4 ปีที่แล้ว

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

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว +1

      Thank you so much! I'd be fine with a few hundred thousand ;)

  • @shilpavahinipati4814
    @shilpavahinipati4814 2 ปีที่แล้ว

    great Video, part 2, please!

  • @alexanders9763
    @alexanders9763 4 ปีที่แล้ว +1

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

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      What about it would you like to see?

    • @alexanders9763
      @alexanders9763 4 ปีที่แล้ว

      @Techno Tim: Hey Tim, thanks for reply so fast. I thougt about, the installation process on containers like LXC with Ubuntu/Cent OS/Debian or on Docker/Kubernetes managed by rancher. Maybe LXC is the better choice for this. Also a quick overview about the Software/Systems and maybe some free features or extensions wich could be interesting for all People would be great. This could be interessting for all, i think.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      @@alexanders9763 OOC, why would LXC better than Docker for this? I haven't heard of this yet, I will look into it! Thank you!

    • @alexanders9763
      @alexanders9763 4 ปีที่แล้ว

      @Techno Tim: Hey Tim, please correct me if I‘m wrong, but as far as I know, lxc containers or vm’s are the better choice as docker for a ticket system or a knowledgebase in point of it-security. But maybe i‘m wrong, and there is an easy way of hardening docker, wich I actually don’t know, because i‘m not an Docker expert.

  • @alokpradhan9875
    @alokpradhan9875 3 ปีที่แล้ว

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

  • @mirageleung
    @mirageleung ปีที่แล้ว

    i think the RTM API is deprecated now?

  • @fionnlive581
    @fionnlive581 4 ปีที่แล้ว +1

    Nice Tim, keep it up :D

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thanks! 😀

    • @fionnlive581
      @fionnlive581 4 ปีที่แล้ว

      @@TechnoTim Wow, thanks for responding, I really like your channel :D

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you! Feel free to suggest some content you’d like to see!

    • @fionnlive581
      @fionnlive581 4 ปีที่แล้ว

      @@TechnoTim Hey, I'd suggest maybe reviewing some Discord bots and providing some info to start your own server. I have my own bot, Pwn, let me know if you wanna check it out :D

  • @webmandman
    @webmandman 2 ปีที่แล้ว +1

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

    • @webmandman
      @webmandman 2 ปีที่แล้ว

      and there is no option for legacy bot user.

    • @craigobee8200
      @craigobee8200 2 ปีที่แล้ว

      @@webmandman have you found a way around this yet?

  • @Lysiak.Yevhenii
    @Lysiak.Yevhenii 3 ปีที่แล้ว

    Thanks a lot ! Very good explanation !

  • @tiagoalexandrino8286
    @tiagoalexandrino8286 3 ปีที่แล้ว

    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!

  • @Eventyret
    @Eventyret 4 ปีที่แล้ว

    Love the video!
    Thank you for this!

  • @estongreub1796
    @estongreub1796 ปีที่แล้ว

    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 Object.callback (/Users/estongreub/Desktop/sherlocktest/node_modules/@slack/rtm-api/dist/RTMClient.js:397:89)
    at callback (node:internal/streams/writable:555:21)
    at afterWrite (node:internal/streams/writable:500:5)
    at onwrite (node:internal/streams/writable:480:7)
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:106:10)
    /*
    Do you know what I can do next?

  • @rbsdl
    @rbsdl 3 ปีที่แล้ว

    It was really cool. Thanks!!

  • @JohnWeland
    @JohnWeland 2 ปีที่แล้ว

    I need ot build a bot for work. I have been tasked with sending out a DSU message in out "bench" channel and then everyone on the bench is supposed to reply in thread for that day. And then I cross reference the people that responded with a list of people that should have responded like... taking attendance.
    I imagine this bot would when I comes online (in the bench channel) would grab everyone in that channel and remember them, if a person joins it adds them to its memory if they leave it removed them.
    Then every day it would start a message in the bench channel then message each person in it memory asking for their DSU when they reply it would take that message reply and put it as a response in the thread to it create for that day.
    I imagine it to have a command that could be rand that would spit out a csv for everyone in that week and whether or not they participated and on what days.

  • @amberthorpe1492
    @amberthorpe1492 4 ปีที่แล้ว

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

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      You would have to run something like PM2 or put it in a Docker container.

  • @krige
    @krige 3 ปีที่แล้ว

    Very good video! I think it would helped in the beginning of the video to explain the general architecture, how it works and how the components interact with each other

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Great suggestion!

  • @adrianjason13
    @adrianjason13 3 ปีที่แล้ว

    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!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Thank you! Not sure, firewall?

  • @ljohnso16
    @ljohnso16 3 ปีที่แล้ว

    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.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      You could containerize it (put it inside of a docker image) then run docker on a server. See my GitHub for an example. The techno-react has an example of how to build it in CI and do all of this as well as deploy to kubernetes

  • @PrateekJain348
    @PrateekJain348 2 ปีที่แล้ว

    Hey do we have 2nd part of this ?

    • @TechnoTim
      @TechnoTim  2 ปีที่แล้ว

      Sorry, we do not!

  • @aningako
    @aningako 4 ปีที่แล้ว

    Thank you for sharing.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thanks for stopping by! Hope you liked it!

  • @saracamilalauramanzaneda2776
    @saracamilalauramanzaneda2776 4 ปีที่แล้ว

    I love it! It works very well.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Glad you like it!

  • @volgalgzkaradagoglu
    @volgalgzkaradagoglu 2 หลายเดือนก่อน

    This looks like an amazing tutorial but, it seems like it is a little bit outdated

  • @martincarrascofilippi5223
    @martincarrascofilippi5223 3 ปีที่แล้ว

    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?

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      I would probably separate these

  • @prakhargupta7125
    @prakhargupta7125 4 ปีที่แล้ว

    Great man! I love it♥️

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you 🙌

  • @joshbowden983
    @joshbowden983 3 ปีที่แล้ว

    Where do you host your bot?

  • @vinodkumarSubramaney
    @vinodkumarSubramaney 4 ปีที่แล้ว

    Legacy Bot user is no more available. Do you know whats the alternative ?

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      It still works for me, I just tested the documentation.

  • @ggitsjd
    @ggitsjd 2 ปีที่แล้ว

    I can't seem to find the ~ directory from within VSCode. I have the folder created, but I have no idea where my linux stuff resides on the Windows machine. Any ideas?

    • @TechnoTim
      @TechnoTim  2 ปีที่แล้ว

      I think you can access WSL folders in windows by going to \\wsl$\:

    • @ggitsjd
      @ggitsjd 2 ปีที่แล้ว

      @@TechnoTim appreciate the reply. Will try this out today. Thanks!

  • @JeDeXxRioProKing
    @JeDeXxRioProKing 4 ปีที่แล้ว

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

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you so much!

  • @YouGotH4ck3d
    @YouGotH4ck3d 2 ปีที่แล้ว

    @3:29 what software is that

  • @hassanakbar2943
    @hassanakbar2943 4 ปีที่แล้ว

    rtm-api:RTMClient:1 A websocket error occurred: read ECONNRESET
    any help on this

  • @creechavo
    @creechavo 4 ปีที่แล้ว

    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.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      If they have a docker image for the game you want to serve, this is the route I always take th-cam.com/video/oILc0ywDVTk/w-d-xo.html

    • @creechavo
      @creechavo 4 ปีที่แล้ว

      Thanks man appreciate it.

  • @theunbanned4553
    @theunbanned4553 2 ปีที่แล้ว

    For the first 3min you showed how to make a Slack server, what is completely common sense, because probably everyone already got a Slack server, that's why they're here. But when you start writing code, you tell nothing about how to write code. I've never done this, I've no idea what you're using to make that. This is not really beginner friendly.

  • @myselfsugam
    @myselfsugam 4 ปีที่แล้ว

    Till 7:16 everything is fine but when I run this yarn start, I got this error: rtm-api:RTMClient:1 unable to RTM start: An API error occurred: not_allowed_token_type. Any Idea?

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Sounds like you didn't give it the right token or the right scopes!

    • @carterhagans4796
      @carterhagans4796 4 ปีที่แล้ว

      same and ik i gave the right token but ik i gave scopes on the api that are referenced in my js but still getting the same error

  • @sachinthaheshan389
    @sachinthaheshan389 2 ปีที่แล้ว

    🤩💯

  • @conallogribin
    @conallogribin 4 ปีที่แล้ว

    TIL what a template string was xD

  • @justadev____7232
    @justadev____7232 4 ปีที่แล้ว

    Legacy bot user is no longer available.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      it's still available, I just tested it. Look at my docs in the description for a link

    • @maysnoseknowsus
      @maysnoseknowsus 4 ปีที่แล้ว

      How about if we can’t use legacy bot user since it have a lot of permission and want to define the scope with new app creation will it work?

    • @bulataleev1056
      @bulataleev1056 3 ปีที่แล้ว

      @@TechnoTim looks like now events api is required right? rtm on slack_events not working anymore?

    • @zlamline
      @zlamline 3 ปีที่แล้ว

      @@bulataleev1056 use "GitHub Repo" link in description - then "Slack API - Create a classic app" link in Info section to create legacy bot (works on Mar 19, 2021)

  • @0cool966
    @0cool966 4 ปีที่แล้ว

    I don't like these cut down videos where people don't how did you get to the screens where you are adjusting setting. This is really terrible way to teach someone something.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      0cool sorry you feel that way. The code is in my github.

  • @loganrobert5811
    @loganrobert5811 3 ปีที่แล้ว

    This video isn't all that helpful anymore. It would be nice to get one that isn't a classic app.