/dictbot

dictionary/snippet bot for Telegram

Primary LanguageJavaScriptMIT LicenseMIT

dictbot

Build Status license

Experiment of using redux in the backend

Getting Started

dictbot is a dictionary/snippet bot for Telegram.

These instructions will get you a copy of the project on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

First, clone the repo

git clone https://github.com/huijari/dictbot
cd dictbot

Then install the dependencies

npm install

Running the tests

The project has a npm script for running the tests with jest:

npm test

Devlopment

You can start the devlopment server, that uses micro-dev, using:

npm run dev

Deployment

For deployment you need to set two environment variables, PORT in which the server will run, and BOT_TOKEN which is the Telegram token of your bot. To start the server use:

npm start

Built With

And others that you can check in the package.json file.

License

This project is licensed under the MIT License - see the LICENSE file for details