kowalski/README.md
2024-05-24 18:39:12 -03:00

28 lines
1.0 KiB
Markdown

# Lynx (Node.js Telegram Bot)
Lynx is a a simple Telegram bot made in Node.js.
## Requirements
- A Telegram bot (create one at [@BotFather](https://t.me/botfather))
- Node.js 20 (or above)
- node-telegram-bot-api
## Develop or contribute with Lynx
First, [make a fork of this repo](https://github.com/lucmsilva651/lynx/fork), or clone it with
```
git clone https://github.com/lucmsilva651/lynx
```
Next, go to the repository directory, create a ``config.env`` file and put the content below:
```
# insert your bot token here
# get it with @BotFather on Telegram
TGBOT_TOKEN=0000000000:AAAaaAAaaaaAaAaaAAAaaa_aaaaAAAAAaaa
```
Put your bot token that you created at [@BotFather](https://t.me/botfather) at the variable ``TGBOT_TOKEN`` (as the example above) and save the file.
At last, run the bot with ``npm start``.
## Notes
The source code itself of the bot is at ``src/main.js``, and the commands are in ``src/commands``. You can rename this file and change the ``package.json`` file as your needs.
## About/License
MIT - 2024 Lucas Gabriel (lucmsilva).