mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Changed a lot of stuff regarding Lynx to Kowalski
This commit is contained in:
parent
33f76fd806
commit
27edc10557
@ -3,7 +3,7 @@
|
||||

|
||||
|
||||
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).
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 504ab21ad03d31345e6a6b62ee1e89aa03fc27e0
|
||||
Subproject commit f81915510c320c3fe2479c8265f5893259698c3d
|
Loading…
x
Reference in New Issue
Block a user