Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Go1-QQBotDemo/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"type": "web",
"runtime": "Go1",
"readme": "https://github.com/tencentyun/serverless-demo/tree/master/Go1-QQBotDemo",
"version": "1.0.10",
"version": "1.0.11",
"tags": [
"Go1",
"QQBot"
"QQBot",
"WebFunc"
]
}
}
14 changes: 13 additions & 1 deletion Go1-QQBotDemo/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@ inputs:
src:
src: ./src
region: ap-guangzhou
type: web
name: qqbot_demo
runtime: Go1
handler: main
memorySize: 128
timeout: 3
publicAccess: true
eip: true
environment:
- key: QQBotAppID
value: appid of QQBot
- key: QQBotSecret
value: secret of QQBot
- key: HYApiKey
value: hunyuan apikey
value: hunyuan apikey
events:
- http:
parameters:
name: url-trigger
netConfig:
enableIntranet: false
enableExtranet: true
qualifier: $DEFAULT
authType: NONE
Binary file modified Go1-QQBotDemo/src/qqbot-demo/docs/images/hunyuan_api_key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Go1-QQBotDemo/src/qqbot-demo/docs/images/set_env_vars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.