update settings

This commit is contained in:
renxiaoyin 2023-03-10 18:57:57 +08:00
parent ca12731742
commit 807371d9b5
8 changed files with 666 additions and 330 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
NODE_ENV=development
BOT_TOKEN=6131017929:AAFqMAv6yzx3Xq8AQtJumRZ5rBtdn5yrGNQ

View File

@ -1,2 +0,0 @@
NODE_ENV=development
BOT_TOKEN=12345

View File

@ -11,7 +11,7 @@ on:
#
# 2. Change these variables for your configuration:
env:
AZURE_FUNCTIONAPP_NAME: telegram-example-bot # set this to your application's name
AZURE_FUNCTIONAPP_NAME: aichatbot # set this to your application's name
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '14.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)

1
.gitignore vendored
View File

@ -72,7 +72,6 @@ typings/
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)

View File

@ -1,4 +1,4 @@
# telegram-bot-nodejs-azure-function-starter
# aichatbot
Yes, that's really what it is. A Telegram bot using Node.js hosted as an Azure Function App.

View File

@ -1,7 +1,22 @@
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node"
"WEBSITE_SLOT_NAME": "Production",
"FUNCTIONS_EXTENSION_VERSION": "~4",
"ScmType": "None",
"WEBSITE_AUTH_ENABLED": "False",
"REMOTEDEBUGGINGVERSION": "16.0.32106.67",
"BOT_TOKEN": "6131017929:AAFqMAv6yzx3Xq8AQtJumRZ5rBtdn5yrGNQ",
"APPLICATIONINSIGHTS_CONNECTION_STRING": "InstrumentationKey=62c3fd80-e038-4d24-a87a-399110831b16;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/",
"FUNCTIONS_RUNTIME_SCALE_MONITORING_ENABLED": "0",
"APPINSIGHTS_INSTRUMENTATIONKEY": "62c3fd80-e038-4d24-a87a-399110831b16",
"WEBSITE_NODE_DEFAULT_VERSION": "18.12.1",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "DefaultEndpointsProtocol=https;AccountName=aichatbotgroup9503;AccountKey=KVCMYNolAunDnf8VVqQIxnrT/ceomP0FRpPbr+KlWJ4DHvV3Awad0vubJPhsZIVt1qKQ845JCwpW+AStPBO2mw==;EndpointSuffix=core.windows.net",
"WEBSITE_CONTENTSHARE": "aichatbot8da9",
"WEBSITE_AUTH_AUTO_AAD": "False",
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=aichatbotgroup9503;AccountKey=KVCMYNolAunDnf8VVqQIxnrT/ceomP0FRpPbr+KlWJ4DHvV3Awad0vubJPhsZIVt1qKQ845JCwpW+AStPBO2mw==;EndpointSuffix=core.windows.net",
"FUNCTIONS_WORKER_RUNTIME": "node",
"WEBSITE_SITE_NAME": "aichatbot",
"WEBSITE_AUTH_LOGOUT_PATH": "/.auth/logout"
}
}
}

964
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"name": "telegram-bot-nodejs-azure-function-starter",
"name": "aichatbot",
"version": "1.0.0",
"description": "",
"main": "build/index.js",