A powerful, multi-function Telegram bot https://t.me/KowalskiNodeBot
Find a file
A Bunch of Computer Nerds be30c1d430 Update README
2024-12-12 21:33:40 -03:00
.github Create dependabot.yml 2024-10-21 20:05:58 -03:00
src Update portuguese.json 2024-12-11 00:23:03 -03:00
.gitignore Edited .gitignore 2024-12-10 23:57:06 -03:00
.gitmodules Added SpamWatch library to source 2024-12-08 19:54:10 -03:00
CODE_OF_CONDUCT.md Changing the Code of Conduct and the README to apply with the organization 2024-12-08 19:36:50 -03:00
config.env.example Fixed bot admin handling + modified README 2024-12-08 21:47:32 -03:00
LICENSE Push base Telegraf bot 2024-07-24 22:39:27 -03:00
package.json Migrated to .env 2024-12-08 20:34:29 -03:00
README.md Update README 2024-12-12 21:33:40 -03:00

Kowalski (Node.js Telegram Bot)

Contributor Covenant GitHub License

Kowalski is a a simple Telegram bot made in Node.js.

Self-host requirements

  • A Telegram bot (create one at @BotFather)
  • Node.js 22 (or above)
  • Node.js dependencies: use npm install or npm i
  • FFmpeg

Run it yourself, develop or contribute with Kowalski

First, clone the repo with Git:

git clone https://github.com/ABOCN/TelegramBot kowalski

And now, init the submodules with these commands (this is very important):

cd kowalski
git submodule update --init --recursive

Next, inside the repository directory, create a config.env file with some content, which you can see the example .env file to fill info with. To see the meaning of each one, see the Functions section.

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, 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.

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!

About/License

BSD-3-Clause - 2024 Lucas Gabriel (lucmsilva).