kaiyuanshe / osschat

Apache Open Source Software Chat BOT
https://oss.chat/dashboard/
Apache License 2.0
184 stars 45 forks source link

Run OSSChat locally Failed #108

Open JesseWeb opened 4 years ago

JesseWeb commented 4 years ago

when I run npm run start. this warning shows up. In localhost:5000, there is no qrcode for scan. 17:08:53 WARN HAWechaty start() rejection: Error: no wechaty puppet found there is no place to change or set puppet.plz help

huan commented 4 years ago

The OSSChat requires lots of environment variables to be set up before it can be able to run locally.

We have no time to document those environment variable settings yet, but if you do want to run it locally, please let me know and I'd like to help.

JesseWeb commented 4 years ago

I'd like know more and make some contribution with this great project

huan commented 4 years ago

Ok, let me give you some clues for the environment variables, I believe you need to drive into it for a while before you can set it up locally.

To make the OSSChat run, we need at least the following environment variables, please read my inline comments for explanation.

Part 1: Probot

Learn more from https://probot.github.io/ because we are using the Probot framework.

# GitHub Apps Config for our OSSChat at https://github.com/apps/osschat
APP_ID=50239
PRIVATE_KEY='-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----\n'

# Webhook for GitHub Apps to push notifications (issues, PRs, etc)
WEBHOOK_PROXY_URL='https://smee.io/callback_url'
WEBHOOK_SECRET=webhook_secret

Part 2: Wechaty

# High Available Wechaty Config, see: https://github.com/wechaty/HAWechaty
HA_WECHATY_PUPPET='wechaty-puppet-hostie:wechaty-puppet-padplus'
HA_WECHATY_PUPPET_HOSTIE_TOKEN=puppet_hostie_token
HA_WECHATY_PUPPET_PADPLUS_TOKEN=puppet_padplus_token

# The Bot Name
WECHATY_NAME=OSSChat

I hope the above information will help you to understand. Please feel free to comments on this issue if you have any questions.

If you have any questions related to Wechaty, please read https://github.com/wechaty/wechaty first.

JesseWeb commented 4 years ago

thanks dude!now I just needs apply those puppet key then it should be run successfully.

huan commented 4 years ago

You are welcome, and good luck!