Giter Site home page Giter Site logo

googleassistantslack's Introduction

Google Assistant for Slack Codacy Badge

A Google Assistant, but on Slack. It allows you to search Google, fetch the date, look up GIFs, and more. More features are in the works.

Requirements:

  • Node.JS (preferably v6.0.0+)
  • Botkit
  • Request
  • Google Search Scraper
  • Oxford Dictionary API

Installation:

npm install

Getting Started:

Running Locally as a Custom Integration

  • Create a new custom integration in your Slack workspace https://api.slack.com/apps?new_app=1

  • Under the Add Features and Functionality section add a new bot

  • Give the bot a Display name and Default User name and complete by adding the new bot user

  • Under the Settings section, select Install App and install your new add to your workspace

  • After installation, the OAuth Tokens for Your Team is displayed. Copy the bot user auth token (xoxb -)

  • Update the config.js file providing the bot user auth token

  • Start the Bot running locally via node node bot.js

  • Console output for running bot

Initializing Botkit v0.6.3
info: ** No persistent storage method specified! Data may be lost when process shuts down.
info: ** API CALL: https://slack.com/api/rtm.connect
notice: ** BOT ID: botname ...attempting to connect to RTM!
notice: RTM websocket opened
  • Once running got to your Slack workspace, and click on your Bot under the Apps section
  • Say 'Hello' to the Bot and if configured correctly you should get the response 'Hey there! How can I help you?'

Other Services and APIs

  • You should register for an API KEY or access to the apis running the other services in order to make use of those commands
  • Update the config.js with your keys and information as necessary

Known Issues:

  • Google Search Scraper gives 10 results instead of the results specified (fixed by modifying directly the module)
  • Captcha (make a VPN for the bot, connect via VPN, fill out captcha for latest search, try again)
  • Translation returns BAD_NETWORK or something like that (fixed by modifying directly the module)

googleassistantslack's People

Contributors

connorphee avatar ifvictr avatar matejmecka avatar spotts9 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.