Git Product home page Git Product logo

leon-42bot's Introduction

Leon-42Bot

This Secretary bot is powered by Natural Language Processsing (NLP) with Recast.AI and is plugged to Slack Bot, to easily connect it to Slack applications.

Must

  • You must be a 42 student to use this bot

Requirements

Set up your Recast.AI account

Fork the Bot
  • Log in to your Recast.AI account
  • Go to leon42bot
  • Click on the Fork Bot Button
Get your token
  • In your profile, click your forked leon42bot
  • In the tab-menu, click on settings
  • Here is the request access token you need to configure your bot!

Set up your Slack account

Set the slack-bot account
  • Log in to your slack team
  • Go to https://"NAME OF TEAM".slack.com/apps/new/A0F7YS25R-bots and fill the form

Set up your 42application

Start your bot in local

Complete the config.js
  • Copy your Recast.AI request access token
  • Copy your 42key request access token
  • Copy your 42Secret request access token
  • Copy your Slack token token
var config = {
  api42: {
    Key: '{42-UID}',
    Secret: '{42-SECRET}'
  },
  recast: {
    route: 'https://api.recast.ai/v1/request',
    request_token: '{YOUR-TOKEN}'
  },
  slack: {
  	Token: '{SLACK-TOKEN}'
  }
};
Run

Install the dependencies

npm install
npm install recastai
npm install @slack/[email protected]
npm install [email protected]

Run your bot

node bot.js

leon-42bot's People

Contributors

fhenri42 avatar

Stargazers

 avatar  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.