thor-bot

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i thor-bot

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

5.63 kB

Total Files

5

Last publish

Collaborators

  • youtwitface