xxcxy / yidao-bot

slack bot for fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YIDAO Bot

YIDAO bot is a learning project to familiar with slack apps!

This is a lightweight bot that can handle translate to english and calcualte number.

Features

To translate :
/trans-to-en 一些非英语国家的语言

To calculate number :
/calculate 5 * 40 + 80 / 2

LOCAL DEPLOYMENT

Configurate enviroment

  • CLIENT_ID // the slack app client_id
  • CLIENT_SECRET // the slack app client_secret
  • GOOGLE_APPLICATION_CREDENTIALS // the google api key json location
  • projectId // the google translate project id

Start server

npm install
npm start

Usage

Integrating into Team

Clicking this link to authorize the app for your team.

The Slack App Documentation is a great resource here.

About

slack bot for fun


Languages

Language:JavaScript 91.9%Language:HTML 8.1%