1.1.1 • Published 7 years ago
thor-bot v1.1.1
Thor Bot
Create telegram bots the simple way.
Installation
npm i -g thor-botSetup
.env
Note: If you are using heroku, you can use its env config instead of a
.envby addingHEROKUto 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_nameThis will generate a file named config.json.
Starting the bot
It's as simple as typing
thor start