disam8853 / hadoor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

哈們機器人

A telegram chatbot which will only reply "哈們".

install

yarn install

config

There are some environment variables that Hadoor will use:

  1. TOKEN: Telegram bot's API token
  2. URL: Public host name (starts with https://)
  3. DB_ENDPOINT: MongoDB endpoint

In local development:

  1. dotenv is used, so you can only create a file called .env in root directory. dotenv will work as expect.
  2. you may need a free reverse proxy (EX: localtunnel, ngrok) in order to create a public https:// URL.

For more information about dotenv, visit dotenv.

start server

In production:

yarn start

In development:

yarn dev

Default server will be listening on port 8000.

About


Languages

Language:JavaScript 100.0%