A powerful, multi-function Telegram bot https://t.me/KowalskiNodeBot
Find a file
DaviDev bcbc6a07f3 feat: Add weather command using weather.com API
This commit introduces a new command that allows users to check the weather forecast. The command retrieves weather data from the weather.com API and provides relevant information to users.

# Command:
/weather <city>

Example usage:
/weather New York

Technical details: Implementation of the weather command using the weather.com API in English.
2024-09-08 21:17:15 +00:00
commands feat: Add weather command using weather.com API 2024-09-08 21:17:15 +00:00
locales feat: Add weather command using weather.com API 2024-09-08 21:17:15 +00:00
plugins Unnecessary split code removed + update swlib commit 2024-08-31 21:23:30 -03:00
props Changed pfp to Luna 2024-07-26 00:06:04 -03:00
.gitignore Small updates 2024-07-24 23:16:39 -03:00
.gitmodules Added submodule responsible to SpamWatch API 2024-07-28 12:29:36 -03:00
bot.js GSMArena scraper + minor code changes 2024-09-06 21:56:19 -03:00
LICENSE Push base Telegraf bot 2024-07-24 22:39:27 -03:00
package-lock.json Added device image in GSMArena scraper + added child_process package 2024-09-08 10:44:48 -03:00
package.json Added device image in GSMArena scraper + added child_process package 2024-09-08 10:44:48 -03:00
README.md Update README.md 2024-07-28 12:32:18 -03:00

Lynx (Node.js Telegram Bot)

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

Run it yourself, develop or contribute with Lynx

First, clone the repo and init the submodules with

git clone https://github.com/lucmsilva651/lynx
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]
}
  • 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.

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

MIT - 2024 Lucas Gabriel (lucmsilva).