GithubHelp home page GithubHelp logo

slack-stuart's People

Contributors

bryant1410 avatar charlielor avatar danschumann avatar gtracy avatar jmichuda avatar mabermoske avatar sblaz avatar snyk-community avatar sprak3000 avatar tinisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slack-stuart's Issues

More help, please?

Hi, thanks for the fix. I now see this:

Success! Stuart is running.

When I go to slack and type /stuart, I see this in my console:

ERROR - Illegal command :
DEBUG - New SlackBot request being posted-- That command does not compute. Try asking me for help. (to @xxxxxx)
{ text: 'That command does not compute. Try asking me for help.',
  channel: '@xxxxx',
  username: 'Stuart',
  icon_emoji: ':construction_worker:',
  link_names: 1 }

On Slack, I get nothing back.

If I try /stuart help, I see the intended output in my console but nothing geta sent back to slack.

Do you know where I went wrong?

Stuart no longer starts up

The return status on bogus channels has changed. So the test Stuart uses to validate the configuration no longer works during startup.

Without that, none of the slash or cron plugins will initialize.

The return body is now "channel_not_found" rather than "Invalid channel specified"

Line 23 of stuart.js

Twilio number deletion is not working

There is some nice code that attempts to periodically delete old conference lines created using the "conference" plugin. Trouble is, the task never runs.

The conference plugin has a smidge of cron job code at the bottom of the hook file. Need to wire that up so the schedule actually gets set.

Validate config parameters

When Stuart starts, make an attempt to validate the config.js file to give the dev a heads up when things don't look right.

  • search for "FIXME" references?
  • is there a way to test the Slack inbound webhook without pushing data?

New to this and node and so some beginner questions.

I tried following the instructions and it seems to be on the verge of working, but why does the output not come back to Slack? I can see the DEBUG messages in node of what it would be saying.

I'm sure I did something wrong following the instructions, but I checked a few times. If you have any tips please let me know.

Optimize the parameter list a slash command's run method receives

Right now, the run method signature takes the raw request string directly from the bot integration. This includes the command itself and it requires every single plugin to parse the string themselves.

Integration would be easier if the run methods simply received a list of command arguments.

module.exports.run = function(request_args, stuart, plugin)

request_args should be a list of strings.

For example, the food command would take ["sushi"] as the first parameter rather than "food sushi"

Make slash command name shown in help text configurable

Small cosmetic item... Would be nice to have a configuration option to override the /stuart shown in the help text. For example, I could setup my Slack slash command to be /chucknorris, but the help text would still show The format is always '/stuart.

Add request logging

Stuart could do a better job of logging inbound requests on the express interface. Right now it's quiet which makes it harder to figure out if your server ever sees a request.

Add the following to app.js

// simple logger
app.use(function(req, res, next){
    logme.info(req.method + '  ' + req.url);
    next();
});

Slash commands are case sensitive

For example, /stuart AMA will fail.

The slash_command() function on the _Stuart prototype should explicitly convert the user command to lowercase for cleaner processing.

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.