sweetasfen.blogg.se

Hubot rocketchat
Hubot rocketchat












hubot rocketchat
  1. #Hubot rocketchat how to
  2. #Hubot rocketchat code
  3. #Hubot rocketchat mac

I am going to give an example of how to search for and then install scripts but this section is not required to get hubot running. In your terminal you should be able to run a specific command to search for and then add these scripts to your Hubot. With Hubot there is an abundance of scripts already available from the open source community. (Optional) Installing Third Party Scripts Not the most useful script, but it’s a start! With these two lines uncommented, Hubot will respond with "Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS" anytime it sees the word “badger”. We are going to uncomment the following two lines: # res.send "Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS" # These are from the scripting documentation: # Uncomment the ones you want to try and experiment with. # wouldn't be useful and amusing enough for day to day huboting.

hubot rocketchat

# They are commented out by default, because most of them are pretty silly and # Example scripts for you to examine and try out. The beginning of the file should look something like this: Let’s take a look at the ffee script in the scripts direction of the repository you just created. By default, Hubot has no scripts enabled. Great! This repository will be the basis for creating your very own Hubot scripts for your organization. # The `yo hubot` command is going to have some configuration options you must fill out:īot owner, e.g. To generate the hubot repository run the following commands: It will also host the Dockerfile for running Hubot. This will be the central location for all of your Hubot scripts. Next we’re going to start by generating a Hubot repository. To begin, you must have Git, Node, and NPM installed on your computer. The most common brain is Redis so I will cover configuring Hubot for using Redis however, I will not be covering how to setup Redis itself. A Hubot brain is a storage layer so Hubot has persistence. This guide will cover creating a basic Hubot installation, but I highly recommend configuring a brain for Hubot. We’re assuming you have nothing but an interest in running Hubot within your organization, so we’ll be working through the entire process of setting up a Hubot Repo, configuring Slack, getting a Docker container for Hubot, and hosting it in Kubernetes. Putting it altogether and then private message the service rep with the information.In this blog we’re going to create a Hubot installation in Kubernetes with a Slack adapter.

hubot rocketchat

  • obtains details of the last support ticket for this customer.
  • scans the customer's facebook and twitter posts.
  • fetches latest notes made by her/his salesperson from the CRM system.
  • fetches personal information from the customer data base.
  • fetches recent sales information from the sales dept server.
  • As soon as a customer enters the support channel, a bot immediately identifies the customer and then: Q: I am not trying to stage a denial of service attack, why would I ever want to write a bot?Ī: There are many positive and productive use cases for bots. To test modified adapter code, exit (ctrl-c) the container and run it again.

    #Hubot rocketchat code

    The adapter code is under the src directory. We need all the help we can get to add capabilities.īecome part of the project, just pick an issue and file a PR. While it is functional, the current adapter is very basic. Instead, read this note here (the 2nd note on the page: If you are using Boot2Docker.) to determine the absolute path where you must place the git-cloned directory.

    #Hubot rocketchat mac

    if you are on a Mac or PC), you cannot use $PWD to mount the volumes.

  • The first time you run the docker container, the image needs to be pulled from the public docker registry and it will take some time.
  • If you like what you see, please star the repo.įinally, if you have created a bot that other users may find useful, please contribute it. If you have any enhancements or feature requests, create an issue. If you find a bug or compatibility problem, please open an issue. If you are new to hubot script writing, find out more here. Just add your own script in the directory to have it loaded. Look under the scripts directory, you will find a very basic bot there. Git clone :RocketChat/hubot-rocketchat.git














    Hubot rocketchat