diff --git a/README.md b/README.md index 7fcb353..4a9f4ff 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![GitHub License](https://img.shields.io/github/license/ABOCN/TelegramBot) 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 - 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 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): ``` -cd lynx +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](config.env.example) to fill info with. To see the meaning of each one, see [the Functions section](#configenv-functions). diff --git a/src/commands/help.js b/src/commands/help.js index e2b6d0e..8d18782 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -15,7 +15,7 @@ async function sendHelpMessage(ctx, isEditing) { ] } }; - const helpText = Strings.lynxHelp; + const helpText = Strings.kowalskiHelp; if (isEditing) { await ctx.editMessageText(helpText, options); } else { diff --git a/src/commands/lastfm.js b/src/commands/lastfm.js index 68094eb..736fe21 100644 --- a/src/commands/lastfm.js +++ b/src/commands/lastfm.js @@ -85,7 +85,7 @@ module.exports = (bot) => { limit: 1 }, 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', }, headers: { - 'User-Agent': "lynx-@LynxBR_bot-node-telegram-bot" + 'User-Agent': "kowalski-@KowalskiNodeBot-node-telegram-bot" } }); num_plays = response_plays.data.track.userplaycount; diff --git a/src/commands/main.js b/src/commands/main.js index c7d3aa9..e8bf9c8 100644 --- a/src/commands/main.js +++ b/src/commands/main.js @@ -5,7 +5,7 @@ const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(is module.exports = (bot) => { bot.start(spamwatchMiddleware, async (ctx) => { const Strings = getStrings(ctx.from.language_code); - ctx.reply(Strings.lynxWelcome, { + ctx.reply(Strings.kowalskiWelcome, { parse_mode: 'Markdown', reply_to_message_id: ctx.message.message_id }); @@ -14,7 +14,7 @@ module.exports = (bot) => { bot.command('privacy', spamwatchMiddleware, async (ctx) => { const Strings = getStrings(ctx.from.language_code); ctx.reply( - Strings.lynxPrivacy, { + Strings.kowalskiPrivacy, { parse_mode: 'Markdown', disable_web_page_preview: true, reply_to_message_id: ctx.message.message_id diff --git a/src/locales/english.json b/src/locales/english.json index 1af0a3d..c29aeed 100644 --- a/src/locales/english.json +++ b/src/locales/english.json @@ -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!*", - "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", - "lynxPrivacy": "Check out [this link](https://blog.eleu.me/posts/lynx-privacy-policy) to read the bot's privacy policy.", + "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!*", + "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", + "kowalskiPrivacy": "Check out [this link](https://blog.eleu.me/posts/lynx-privacy-policy) to read the bot's privacy policy.", "unKnown": "Unknown", "varYes": "Yes", "varNo": "No", diff --git a/src/locales/portuguese.json b/src/locales/portuguese.json index 37a4603..2d308cb 100644 --- a/src/locales/portuguese.json +++ b/src/locales/portuguese.json @@ -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!*", - "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", - "lynxPrivacy": "Acesse [este link](https://blog.eleu.me/posts/lynx-privacy-policy) para ler a política de privacidade do 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!*", + "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", + "kowalskiPrivacy": "Acesse [este link](https://blog.eleu.me/posts/lynx-privacy-policy) para ler a política de privacidade do bot.", "unKnown": "Desconhecido", "varYes": "Sim", "varNo": "Não", diff --git a/src/locales/spanish.json b/src/locales/spanish.json index b44539d..7744f97 100644 --- a/src/locales/spanish.json +++ b/src/locales/spanish.json @@ -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!*", - "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!", - "lynxPrivacy": "Accede [a este enlace](https://blog.eleu.me/posts/lynx-privacy-policy) para leer la política de privacidad del 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!*", + "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!", + "kowalskiPrivacy": "Accede [a este enlace](https://blog.eleu.me/posts/lynx-privacy-policy) para leer la política de privacidad del bot.", "unKnown": "Desconocido", "varYes": "Sí", "varNo": "No", diff --git a/src/plugins/lib-spamwatch b/src/plugins/lib-spamwatch index 504ab21..f819155 160000 --- a/src/plugins/lib-spamwatch +++ b/src/plugins/lib-spamwatch @@ -1 +1 @@ -Subproject commit 504ab21ad03d31345e6a6b62ee1e89aa03fc27e0 +Subproject commit f81915510c320c3fe2479c8265f5893259698c3d