kowalski/README.md

39 lines
1.9 KiB
Markdown
Raw Normal View History

# Kowalski (Node.js Telegram Bot)
2024-09-11 09:25:38 -03:00
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
![GitHub License](https://img.shields.io/github/license/ABOCN/TelegramBot)
2024-09-09 19:31:00 -03:00
Kowalski is a a simple Telegram bot made in Node.js.
- You can find Kowalski at [@KowalskiNodeBot](https://t.me/KowalskiNodeBot) on Telegram.
2024-07-24 22:39:27 -03:00
2024-12-12 21:33:40 -03:00
## Self-host requirements
2024-07-24 22:39:27 -03:00
- A Telegram bot (create one at [@BotFather](https://t.me/botfather))
2024-12-17 18:31:29 -03:00
- Latest version of Node.js
2024-12-17 18:32:24 -03:00
- FFmpeg (only for the /yt command)
2024-07-24 22:39:27 -03:00
## Run it yourself, develop or contribute with Kowalski
2024-09-08 11:27:19 -03:00
First, clone the repo with Git:
2024-07-24 22:39:27 -03:00
```
git clone https://github.com/ABOCN/TelegramBot kowalski
2024-09-08 11:27:19 -03:00
```
And now, init the submodules with these commands (this is very important):
```
cd kowalski
2024-07-28 12:32:18 -03:00
git submodule update --init --recursive
2024-07-24 22:39:27 -03:00
```
Next, inside the repository directory, create a `config.env` file with some content, which you can see the [example .env file](config.env.example) to fill info with. To see the meaning of each one, see [the Functions section](#configenv-functions).
2024-07-24 22:39:27 -03:00
After editing the file, save all changes and run the bot with ``npm start``.
- To deal with dependencies, just run ``npm install`` or ``npm i`` at any moment to install all of them.
## config.env Functions
- **botToken**: Put your bot token that you created at [@BotFather](https://t.me/botfather), as the example above.
- **botAdmins**: Put the ID of the people responsible for managing the bot (as the example above). They can use some administrative + exclusive commands on any group.
- **lastKey**: Last.fm API key, for use on `lastfm.js` functions, like see who is listening to what song and etc.
- **weatherKey**: Weather.com API key, used for the `/weather` command.
2024-07-24 22:39:27 -03:00
2024-07-28 12:05:41 -03:00
## Note
- Take care of your ``config.env`` file, as it is so much important and needs to be secret (like your passwords), as anyone can do whatever they want to the bot with this token!
2024-07-24 22:39:27 -03:00
## About/License
2024-09-09 19:18:22 -03:00
BSD-3-Clause - 2024 Lucas Gabriel (lucmsilva).