Changed a lot of stuff regarding Lynx to Kowalski

This commit is contained in:
A Bunch of Computer Nerds 2024-12-08 21:51:43 -03:00
parent 33f76fd806
commit 27edc10557
8 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@
![GitHub License](https://img.shields.io/github/license/ABOCN/TelegramBot) ![GitHub License](https://img.shields.io/github/license/ABOCN/TelegramBot)
Kowalski is a a simple Telegram bot made in Node.js. Kowalski is a a simple Telegram bot made in Node.js.
- You can find Kowalski at [@LynxBR_bot](https://t.me/LynxBR_bot) on Telegram. - You can find Kowalski at [@KowalskiNodeBot](https://t.me/KowalskiNodeBot) on Telegram.
## Requirements ## Requirements
- A Telegram bot (create one at [@BotFather](https://t.me/botfather)) - A Telegram bot (create one at [@BotFather](https://t.me/botfather))
@ -16,11 +16,11 @@ Kowalski is a a simple Telegram bot made in Node.js.
## Run it yourself, develop or contribute with Kowalski ## Run it yourself, develop or contribute with Kowalski
First, clone the repo with Git: First, clone the repo with Git:
``` ```
git clone https://github.com/ABOCN/TelegramBot git clone https://github.com/ABOCN/TelegramBot kowalski
``` ```
And now, init the submodules with these commands (this is very important): And now, init the submodules with these commands (this is very important):
``` ```
cd lynx cd kowalski
git submodule update --init --recursive 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](config.env.example) to fill info with. To see the meaning of each one, see [the Functions section](#configenv-functions). 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).

View File

@ -15,7 +15,7 @@ async function sendHelpMessage(ctx, isEditing) {
] ]
} }
}; };
const helpText = Strings.lynxHelp; const helpText = Strings.kowalskiHelp;
if (isEditing) { if (isEditing) {
await ctx.editMessageText(helpText, options); await ctx.editMessageText(helpText, options);
} else { } else {

View File

@ -85,7 +85,7 @@ module.exports = (bot) => {
limit: 1 limit: 1
}, },
headers: { headers: {
'User-Agent': "lynx-@LynxBR_bot-node-telegram-bot" 'User-Agent': "kowalski-@KowalskiNodeBot-node-telegram-bot"
} }
}); });
@ -125,7 +125,7 @@ module.exports = (bot) => {
format: 'json', format: 'json',
}, },
headers: { headers: {
'User-Agent': "lynx-@LynxBR_bot-node-telegram-bot" 'User-Agent': "kowalski-@KowalskiNodeBot-node-telegram-bot"
} }
}); });
num_plays = response_plays.data.track.userplaycount; num_plays = response_plays.data.track.userplaycount;

View File

@ -5,7 +5,7 @@ const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(is
module.exports = (bot) => { module.exports = (bot) => {
bot.start(spamwatchMiddleware, async (ctx) => { bot.start(spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); const Strings = getStrings(ctx.from.language_code);
ctx.reply(Strings.lynxWelcome, { ctx.reply(Strings.kowalskiWelcome, {
parse_mode: 'Markdown', parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id reply_to_message_id: ctx.message.message_id
}); });
@ -14,7 +14,7 @@ module.exports = (bot) => {
bot.command('privacy', spamwatchMiddleware, async (ctx) => { bot.command('privacy', spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); const Strings = getStrings(ctx.from.language_code);
ctx.reply( ctx.reply(
Strings.lynxPrivacy, { Strings.kowalskiPrivacy, {
parse_mode: 'Markdown', parse_mode: 'Markdown',
disable_web_page_preview: true, disable_web_page_preview: true,
reply_to_message_id: ctx.message.message_id reply_to_message_id: ctx.message.message_id

View File

@ -1,7 +1,7 @@
{ {
"lynxWelcome": "*Hello! I am Kowalski!*\nI was made with love by some nerds who really love programming!\n\n*Before using, you need to read the privacy policy (/privacy) to understand where your data goes when using this bot.*\n\nAlso, you can use /help to see the bot commands!\n\n*Special thanks to @givfnz2 for his many contributions to the bot!*", "kowalskiWelcome": "*Hello! I am Kowalski!*\nI was made with love by some nerds who really love programming!\n\n*Before using, you need to read the privacy policy (/privacy) to understand where your data goes when using this bot.*\n\nAlso, you can use /help to see the bot commands!\n\n*Special thanks to @givfnz2 for his many contributions to the bot!*",
"lynxHelp": "*Hey, I'm Kowalski, a simple bot made entirely from scratch in Telegraf and Node.js by some nerds who really love programming.*\n\nClick on the buttons below to see which commands you can use!\n", "kowalskiHelp": "*Hey, I'm Kowalski, a simple bot made entirely from scratch in Telegraf and Node.js by some nerds who really love programming.*\n\nClick on the buttons below to see which commands you can use!\n",
"lynxPrivacy": "Check out [this link](https://blog.eleu.me/posts/lynx-privacy-policy) to read the bot's privacy policy.", "kowalskiPrivacy": "Check out [this link](https://blog.eleu.me/posts/lynx-privacy-policy) to read the bot's privacy policy.",
"unKnown": "Unknown", "unKnown": "Unknown",
"varYes": "Yes", "varYes": "Yes",
"varNo": "No", "varNo": "No",

View File

@ -1,7 +1,7 @@
{ {
"lynxWelcome": "*Olá! Eu sou o Kowalski!*\nFui feito com carinho por uns nerds que gostam de programação!\n\n*Antes de usar, você precisa ler a política de privacidade (/privacy) para entender onde seus dados vão ao usar este bot.*\n\nAlém disso, você pode usar /help para ver os comandos do bot!\n\n*Agradecimento especial ao @givfnz2 pelas suas várias contribuições ao bot!*", "kowalskiWelcome": "*Olá! Eu sou o Kowalski!*\nFui feito com carinho por uns nerds que gostam de programação!\n\n*Antes de usar, você precisa ler a política de privacidade (/privacy) para entender onde seus dados vão ao usar este bot.*\n\nAlém disso, você pode usar /help para ver os comandos do bot!\n\n*Agradecimento especial ao @givfnz2 pelas suas várias contribuições ao bot!*",
"lynxHelp": "*Oi, eu sou o Kowalski, um bot simples feito do zero em Telegraf e Node.js por uns nerds que gostam de programação (lucmsilva).*\n\nClique nos botões abaixo para ver quais comandos você pode usar!\n", "kowalskiHelp": "*Oi, eu sou o Kowalski, um bot simples feito do zero em Telegraf e Node.js por uns nerds que gostam de programação (lucmsilva).*\n\nClique nos botões abaixo para ver quais comandos você pode usar!\n",
"lynxPrivacy": "Acesse [este link](https://blog.eleu.me/posts/lynx-privacy-policy) para ler a política de privacidade do bot.", "kowalskiPrivacy": "Acesse [este link](https://blog.eleu.me/posts/lynx-privacy-policy) para ler a política de privacidade do bot.",
"unKnown": "Desconhecido", "unKnown": "Desconhecido",
"varYes": "Sim", "varYes": "Sim",
"varNo": "Não", "varNo": "Não",

View File

@ -1,7 +1,7 @@
{ {
"lynxWelcome": "*¡Hola! Soy Kowalski!*\n¡Fui creado con cariño por algunos nerds a los que les gusta programar! \n\n*Antes de usar, necesitas leer la política de privacidad (/privacy) para entender a dónde van tus datos al usar este bot.*\n\nAdemás, puedes usar /help para ver los comandos del bot!\n\n*¡Agradecimiento especial a @givfnz2 por sus diversas contribuciones al bot!*", "kowalskiWelcome": "*¡Hola! Soy Kowalski!*\n¡Fui creado con cariño por algunos nerds a los que les gusta programar! \n\n*Antes de usar, necesitas leer la política de privacidad (/privacy) para entender a dónde van tus datos al usar este bot.*\n\nAdemás, puedes usar /help para ver los comandos del bot!\n\n*¡Agradecimiento especial a @givfnz2 por sus diversas contribuciones al bot!*",
"lynxHelp": "*Hola, soy Kowalski, un bot simple hecho desde cero en Telegraf y Node.js por algunos nerds a los que les gusta programar.* \n\n¡Haz clic en los botones de abajo para ver qué comandos puedes usar!", "kowalskiHelp": "*Hola, soy Kowalski, un bot simple hecho desde cero en Telegraf y Node.js por algunos nerds a los que les gusta programar.* \n\n¡Haz clic en los botones de abajo para ver qué comandos puedes usar!",
"lynxPrivacy": "Accede [a este enlace](https://blog.eleu.me/posts/lynx-privacy-policy) para leer la política de privacidad del bot.", "kowalskiPrivacy": "Accede [a este enlace](https://blog.eleu.me/posts/lynx-privacy-policy) para leer la política de privacidad del bot.",
"unKnown": "Desconocido", "unKnown": "Desconocido",
"varYes": "Sí", "varYes": "Sí",
"varNo": "No", "varNo": "No",

@ -1 +1 @@
Subproject commit 504ab21ad03d31345e6a6b62ee1e89aa03fc27e0 Subproject commit f81915510c320c3fe2479c8265f5893259698c3d