How to Build a Slack Bot

Поделиться
HTML-код
  • Опубликовано: 11 сен 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

  • @elneto264
    @elneto264 3 года назад +3

    would love to see a part 2!

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

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

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

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

  • @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.

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

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

  • @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!

  • @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

  • @Lysiak.Yevhenii
    @Lysiak.Yevhenii 3 года назад

    Thanks a lot ! Very good explanation !

  • @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?

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

    Love the video!
    Thank you for this!

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

    It was really cool. Thanks!!

  • @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.

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

    I love it! It works very well.

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

    i think the RTM API is deprecated now?

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

    Thank you for sharing.

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

      Thanks for stopping by! Hope you liked it!

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

    Great man! I love it♥️

  • @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!

  • @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?

  • @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!!

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

    @3:29 what software is that

  • @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?

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

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

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

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

  • @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.

  • @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

  • @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

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

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

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

    Where do you host your bot?

  • @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

  • @volgalgzkaradagoglu
    @volgalgzkaradagoglu Месяц назад

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

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

    Hey do we have 2nd part of this ?

  • @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!

  • @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.

  • @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 ruclips.net/video/oILc0ywDVTk/видео.html

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

      Thanks man appreciate it.

  • @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 3 года назад

      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 года назад

    🤩💯

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

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

  • @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.

  • @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 3 года назад

      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.