You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
YouTwitFace 1c55291862 Change version 8 months ago
.gitignore Initial commit 8 months ago
README.md Fix typos in readme 8 months ago
bot.js Initial commit 8 months ago
helpers.js Initial commit 8 months ago
index.js Initial commit 8 months ago
package-lock.json Change version 8 months ago
package.json Change version 8 months ago

README.md

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)

Modules

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

Adding modules

thor module add module_name

This will generate a file named modules.json.

Starting the bot

It’s as simple as typing

thor start