GithubHelp home page GithubHelp logo

turingtw / concierge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from concierge/concierge

0.0 2.0 0.0 4.72 MB

Modular chat bot. (Karma + Sassy + Hubot) * (Discord + Facebook + Messenger + Slack + Skype + Telegram + Hipchat + ...) = Concierge

JavaScript 99.38% Shell 0.62%

concierge's Introduction

Concierge

Build Status Build status

NPM

(Karma + Sassy) * (Discord + Facebook + Messenger + Slack + Skype + Telegram) = Concierge

Concierge is a modular, easily extensible general purpose chat bot. It is platform agnostic and will work with any social network desired (provided an integration module). The bot utilises small node.js modules for responding in a chat. You can write your own modules and place them in the modules directory, or use existing modules we've collated here. Existing modules include a variety of functionality from getting gifs, to running arbitrary sandboxed JavaScript code, voting and giving karma.

Furthermore Concierge is compatible with Hubot adapters and integrations.

Getting Started

Pre-Requisites

Make sure you have GIT and NPM installed and added to your system PATH before installing Concierge.

Installation

Installation can either be done using git or npm (see which approach is right for you here). One approach is to open a terminal/prompt and enter the following commands to clone the repository and install required npm packages:

git clone https://github.com/concierge/Concierge.git
cd Concierge
npm install

Now you are ready to use and develop modules for Concierge.

Starting Up

Concierge comes ready-to-run, so to start the bot:

  • Open up a terminal/prompt, navigate to Concierge's root directory
  • Start Concierge using node main.js (or alternatively npm start)
  • First startup will install some of the default modules (these can be configured here) and If all goes well, you should see a prompt prefixed

Concierge-bot>

This is the default Test integration Concierge assumes if no other is specified during startup (more on this below).

  • You can further test the bot's responses by calling a few of the default commands. Try entering /ping in the terminal and press enter.
  • It should reply back with something like:

Concierge-bot 4.0.0-beta.0 @ Raven (Linux x64)

If everything worked without any errors,

Congratulations!

Now let's go a step further and connect Concierge with an actual social network

Integrating with a social network

This simply requires installing the social network's integration in the modules directory.

kpm is a great module that makes this process a piece of cake. The process can be generalized into the following steps

  • Run Concierge and ensure kpm was successfully loaded.
  • Use /kpm install <integration_name> to install the integration where <integration_name> is the name of the social network integration.
  • Use /kpm config with appropriate arguments (account email, account password, etc.) to set up the integration for connecting with the social network. Specific arguments and instructions on how to set them can be found in the integration's documentation.
  • Use /kpm start <integration_name> to start the integration.

Why not try integrating Concierge with Facebook by following the instructions here.

Links to configuring other integrations can be found in the documentation section below.

What Now

Now you can customize your Concierge by installing or creating your own modules.

  • You can install an existing modules from the KPM Modules List. Use the /kpm module (which is installed by default) to install using the KPM List.
  • Or create your own modules by following the Module Creation guide.

Hint: Use /help kpm to find out how to install a module or have a look at the KPM List for a more elaborate instructions.

Documentation

Testing

See Running and writing tests

Contributions

Contributions welcome, see Contributing.

Copyright and License

Licensed under the MIT license. Unless otherwise specified, code is Copyright (c) Matthew Knox 2017.

concierge's People

Contributors

4-eyes avatar alucic avatar awarua- avatar dionwoh avatar drkno avatar evanwsun avatar fallaciousreasoning avatar linno60 avatar matthewhartstonge avatar ondrejnovakcvut avatar p0358 avatar parasdsingh avatar phillipadsmith 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.