1.1.1 • Published 5 years ago

thor-bot v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Thor Bot

Create telegram bots the simple way.

Installation

npm i -g thor-bot

Setup

.env

Note: If you are using heroku, you can use its env config instead of a .env by adding HEROKU to your config.

TOKEN=your:bot_token 
USERNAME=bot_username (optional)
MODULES_DIR=folder_name (defaults to modules)
PLUGINS_DIR=folder_name (defaults to plugins)

Modules

bot/
├── .env
└── modules/
    ├── module_name.js
    ├── ...
    └── ...

Adding modules/plugins

thor add module module_name
thor add plugin plugin_name

This will generate a file named config.json.

Starting the bot

It's as simple as typing

thor start
1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago