Code Monkey home page Code Monkey logo

slacksim's Introduction

slacksim

A bot that simulates user comments in slack

Installation:

Create constants.js file at root level with following variables exported:

  • apiToken : the slack Api token for your slack team. Can not be the bot token, as the bot doesn't get API access.
  • botToken : the slack bot token for the slack bot you want to respond to queries
  • botId : the id of that slack bot so it can identify when it is summoned
  • simChannelId: the id of the channel that Slack bot will use to simulate slack discussion

Optional, if using twitter parsing:

  • twitterConsumerKey: the key of your twitter dev account
  • twitterConsumerSecret: the secret of your twitter dev account
  • twitterAccessTokenKey: the twitter access token key for your app
  • twitterAccessTokenSecret: the twitter access token secret for your app

Node dependencies:

Optional, if you want to use twitter parsing as well:

  • node Twitter

node bot.js to run the app

To summon the app, give it a call by name of bot with a username of a person, eg: @slacksim cudabear

To summon the app to parse tweets, give it a call by name of bot with twitter keyword and a handle: @slacksim twitter cudascubby

slacksim's People

Contributors

shankera avatar ryan-graef avatar tevert avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shankera tevert

slacksim's Issues

Filter slack for all messages by user

Right now, we only pull the most recent 1,000 messages from each user. Ideally, we'd get them all. Pull them all and use them before making the markov chains.

Parse URLS

remove URLS from slacksim response messages

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.