thor-bot
v1.1.1
Published
Create telegram bots the simple way.
Downloads
11
Readme
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 addingHEROKU
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