A powerful, multi-function Telegram bot https://t.me/KowalskiNodeBot
Find a file
2024-11-21 12:26:23 -03:00
.github Create dependabot.yml 2024-10-21 20:05:58 -03:00
commands Finally randomizing cat photos but disabled GIF support 2024-11-21 12:26:23 -03:00
locales Fixed MLP char alias + result msg changes 2024-10-25 10:25:07 -03:00
plugins Fixed logging + put it back again 2024-10-03 22:40:50 -03:00
props Soggy cat alt photo 2024-09-26 17:31:38 -03:00
.gitignore Mega fix on YouTube video downloader 2024-09-28 17:24:27 -03:00
.gitmodules Added submodule responsible to SpamWatch API 2024-07-28 12:29:36 -03:00
bot.js Removed comments on wiki.js + removed logging support (again) 2024-10-06 22:01:10 -03:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2024-09-09 19:07:41 -03:00
LICENSE Push base Telegraf bot 2024-07-24 22:39:27 -03:00
package-lock.json Bump node from 23.1.0 to 23.2.0 (#19) 2024-11-13 00:03:06 +00:00
package.json Bump node from 23.1.0 to 23.2.0 (#19) 2024-11-13 00:03:06 +00:00
README.md Unlinked Lynx from FOSSA 2024-10-27 14:08:59 -03:00

Lynx (Node.js Telegram Bot)

Contributor Covenant GitHub License

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

Requirements

  • A Telegram bot (create one at @BotFather)
  • Node.js 20 LTS (or above)
  • Python 3 (or above, for use with SpamWatch API)
  • Python dependencies: use pip install -r requirements.txt
  • Node.js dependencies: use npm install .
  • FFmpeg

Run it yourself, develop or contribute with Lynx

First, clone the repo with Git:

git clone https://github.com/lucmsilva651/lynx

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

cd lynx
git submodule update --init --recursive

Next, inside the repository directory, go to props folder and create a config.json file with the following content:

{
  "botToken": "0000000000:AAAaaAAaaaaAaAaaAAAaaaAaaaaAAAAAaaa",
  "admins": [0000000000, 1111111111, 2222222222],
  "lastKey": "0000a000a0000aaa0a00a0aaa0a000000",
  "lastSecret": "0000a000a0a0000aa0000aa00000000a",
  "weatherKey": "0000a000a0000aaa0a00a0aaa0a000000"
}
  • botToken: Put your bot token that you created at @BotFather, as the example above.
  • admins: 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.
  • lastSecret: Last.fm API secret (optional), which has the "same" purpose as the API key above.
  • weatherKey: Weather.com API key, used for the /weather command

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 any of them.

Note

  • Take care of your config.json 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).