Giter Site home page Giter Site logo

cnxtech / refocus-bot-participants Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salesforce/refocus-bot-participants

0.0 0.0 0.0 3.54 MB

Refocus bot responsible to see what users are currently in the a room and assigned them different hats (roles).

License: BSD 3-Clause "New" or "Revised" License

JavaScript 98.15% HTML 1.85%

refocus-bot-participants's Introduction

Participants-Bot

This a bot to be used in Refocus Rooms to see what users are currently in the a room and assigned them different hats (roles).

Build Status

Features

  • List of active user
  • Creates events for users
  • Assign customizable roles to users

Getting Started

These instructions will enable you to have a copy of this project up and running on your local machine for development and testing purposes.

Prerequisites

Env Variables

Note: If you want to test this locally you will need some environment variables:

  • API_TOKEN - Used for Requests to Refocus. Created in refocus/tokens/new.
  • SOCKET_TOKEN (Returned Upon Installation) - Used for Socket Connection.
  • NODE_ENV (defaults to 'dev') - Used to determine which instance of Refocus to install the bot.
  • REFOCUS_URL (OPTIONAL) - Used to specify which refocus instance to point to.

Running Locally

  • Clone this repo
  • npm login (login to npm to use the private salesforce-bdk)
  • npm update
  • npm install
  • npm start
  • Test locally (default port 5000)

Required Refocus Room Settings

  • participantsRoles - Array containing the roles you want to assign users too.

Example Room Settings

"settings": {
	"participantsRoles": [
	  {
	    "name": "Incident Commander",
	    "label": "IC",
	    "order": 1
	  },
	  {
	    "name": "Troubleshooting and Data Mining",
	    "label": "TAD",
	    "order": 20
	  }
	]
}

Contributing

If you have any ideas on how this project could be improved, please feel free. The steps involved are:

  • Fork the repo on GitHub.
  • Clone this project to your machine.
  • Commit changes to your own branch.
  • Push your work back up to your fork.
  • Submit a Pull Request so we can review it!

Release History

Follows semantic versioning

  • 1.0.0 Readme and iFrame friendly
  • 1.0.1 Removed public folder to reduce size
  • 1.1.0 Included fullName functionality
  • 1.1.1 Fixed fullName bug
  • 1.1.2 Remove user entrance and exit code
  • 1.1.2 Clear User
  • 1.1.3 Add external user
  • 1.1.4 Remove User Event
  • 1.1.5 Remove extra scripts
  • 1.1.6 Add env variable for refocus url
  • 1.1.7 Use Serialize instead of stringify
  • 1.1.8 Uglify for production.
  • 1.1.9 Added display name.
  • 1.1.10 Fix botname missing for bdk getBotData.
  • 1.1.11 Functionality to create & delete roles.
  • 1.1.12 Create events with more consistant messages.
  • 1.1.13 Made role label optional, added error message.
  • 1.1.14 Clean up config.js.
  • 1.1.15 Upgrade packages from npm audit findings.

refocus-bot-participants's People

Contributors

conalcosgrove avatar kamilsmuga avatar kriscfoster avatar tausifmuzaffar 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.