Git Product home page Git Product logo

slack-thel's Introduction

slack-TheL


The Genious L, now in slack to answer all your Queries! ๐Ÿ˜Ž img

Usage

from any slack channel just type thel [your question]. The Question will be shown on the same channel visible to you.

Integrate it with your team

**As the Wolframalpha API allows only 2000 API calls in a month. This can not be used directly. **

I wrote a tutorial on How to create this bot. Read here

  1. Go to your channel
  2. Click on Configure Integrations.
  3. Scroll all the way down to DIY Integrations & Customizations section.
  4. Click on Add next to Slash Commands.
    • Command: thel
    • URL: https://slack-thel.herokuapp.com/thel
    • method: POST
    • For the Autocomplete help text, check to show the command in autocomplete list.
    • Description: The Genius L, is now in slack to answer all your queries.
    • Usage Hint: [search query]
  • Descriptiive Level: Search Query

Developing

Deploy

You will need to set the wol_id environment variable in config.py file in your heroku app in order for this to work. You can read more about it clicking here

Contributing

  • Please use the issue tracker to report any bugs or file feature requests.

LICENCE

MIT LICENSE (c) Vikesh Tiwari

slack-thel's People

Contributors

vicky002 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

Watchers

 avatar  avatar

slack-thel's Issues

Random(?) Timeout and 500 Service Error

This is my 2nd time trying out a Slack Wolfram bot! First time was a clunky Python's slack-client and wolframalpha packages. Followed the tutorial, uploaded code to GitHub an deployed with Heroku. Dynos start up fine when I checked the with heroku ps, and logs show that build succeeded. But when testing the slash command Slackbot will randomly give an error (depending on the query), e.g.:

Darn - that slash command didn't work (error message: Timeout was reached).
Darn - that slash command didn't work (error message: 500_service_error).

Heroku logs would look something like this:
at=info method=POST path="/wolfa" host=wolfa.herokuapp.com request_id=5a9a5151-fdd1-4b15-94a8-4263a1b1c1ab fwd="34.234.74.21" dyno=web.1 connect=1ms service=2186ms status=500 bytes=450 protocol=https2019-02-20T18:55:43.141647+00:00 app[web.1]: 10.5.162.108 - - [20/Feb/2019 18:55:43] "POST /wolfa HTTP/1.1" 500 -

or this

at=info method=POST path="/wolfa" host=wolfa.herokuapp.com request_id=a740f3f6-51c2-47ad-bb13-56bf4edb1bcd fwd="34.239.254.200" dyno=web.1 connect=0ms service=2257ms status=500 bytes=450 protocol=https

It's quite puzzling, since I can ask Wolfram '2+2' and 'earth speed' but 'light speed' and 'inches' doesn't work. Any ideas?

There is a typo in 38th line

16        if not wol_id:
17              import sys
18              **print 'No config.py found exisiting...'** //existing 
19              sys.exit(0)

print 'No config.py found'
or
print 'Not found existing config.py' :)

//Or its saying 'exiting, quitting' as it`s closing sys

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.