Giter Site home page Giter Site logo

Comments (3)

seratch avatar seratch commented on June 10, 2024 1

@tashua314 With the given information, I cannot pinpoint the cause of your situation, but there may be some kind of race condition issue in this app and/or cold-start issues on the AWS Lambda platform. I'd suggest enabling debug-level logging, and if you find something suspicious, please feel free to share the logs.

Either way, I've provided an answer to your original question. So, let me close this issue now.

from chatgpt-in-slack.

seratch avatar seratch commented on June 10, 2024

Hey @tashua314, it's quite simple. Once you create S3 buckets for installations and OAuth state parameters, you can go through these steps:

# export SLACK_CLIENT_ID=
# export SLACK_CLIENT_SECRET=
# export SLACK_SIGNING_SECRET=
# export SLACK_SCOPES=app_mentions:read,channels:history,groups:history,im:history,mpim:history,chat:write.public,chat:write,users:read
# export SLACK_INSTALLATION_S3_BUCKET_NAME=
# export SLACK_STATE_S3_BUCKET_NAME=
# export OPENAI_S3_BUCKET_NAME=
# npm install -g serverless
# serverless plugin install -n serverless-python-requirements
# serverless deploy

If you still don't get the point, I would suggest going with a different way to deploy the app. For instance, you can deploy the app using this Dockerfile to ECS and any other container services.

from chatgpt-in-slack.

tashua314 avatar tashua314 commented on June 10, 2024

@seratch

Thank you! I have successfully deployed to Lambda and can now be used as a Slackbot!

I have an additional question, if I may ask?

Once I answer, there may be multiple responses. Do you know what might be causing this?

from chatgpt-in-slack.

Related Issues (20)

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.