Skip to content
πŸŽ’ School Project - Telegram Chatbot
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
rapport
src fix: update sender variable Oct 3, 2018
tests
.env.sample
.gitignore
.istanbul.yml
LICENSE
README.md
codecov.yml
package-lock.json
package.json
renovate.json Add renovate.json Oct 19, 2018

README.md

Telegram_Bot

Projet EPSI - Chatbot

CircleCI License: MIT codecov JavaScript Style Guide https://telegram.me/EPSI_UsainBot GitHub release

Talk to the bot

https://telegram.me/EPSI_UsainBot

Installation

npm install
cp .env.sample .env
vim .env
# Fill TOKEN variable.

Linter

This project use StandardJS as linter with a pre-commit hook.

To configure text editor, see this link.

To run linter : npm run lint

To run linter with auto-fix : npm run lint:fix

Create a bot

Talk to @BotFather

Run

Tests

npm test

Bot (local development)

It is recommended to have a separate test bot account from your production bot so that you don't get 2 answers each time you talk to the bot.

npm start

Production

Set WEBHOOK_URL and run application with production environment.

Then, you'll need a reverse proxy (such as nginx or caddy for example) to proxy request from WEBOOK_URL to your application.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.