Some general changes on strings
This commit is contained in:
parent
0af901a258
commit
901e5ab98a
5 changed files with 21 additions and 18 deletions
|
@ -16,7 +16,7 @@ async function sendHelpMessage(ctx, isEditing) {
|
|||
]
|
||||
}
|
||||
};
|
||||
const helpText = Strings.kowalskiHelp;
|
||||
const helpText = Strings.botHelp;
|
||||
if (isEditing) {
|
||||
await ctx.editMessageText(helpText, options);
|
||||
} else {
|
||||
|
@ -31,7 +31,7 @@ module.exports = (bot) => {
|
|||
|
||||
bot.command("about", spamwatchMiddleware, async (ctx) => {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
ctx.reply(Strings.kowalskiAbout, {
|
||||
ctx.reply(Strings.botAbout, {
|
||||
parse_mode: 'Markdown',
|
||||
disable_web_page_preview: true,
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
|
@ -86,7 +86,7 @@ module.exports = (bot) => {
|
|||
break;
|
||||
case 'helpAbout':
|
||||
await ctx.answerCbQuery();
|
||||
await ctx.editMessageText(Strings.kowalskiAbout, options);
|
||||
await ctx.editMessageText(Strings.botAbout, options);
|
||||
break;
|
||||
case 'helpBack':
|
||||
await ctx.answerCbQuery();
|
||||
|
|
|
@ -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.kowalskiWelcome, {
|
||||
ctx.reply(Strings.botWelcome, {
|
||||
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.kowalskiPrivacy, {
|
||||
Strings.botPrivacy, {
|
||||
parse_mode: 'Markdown',
|
||||
disable_web_page_preview: true,
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
|
|
|
@ -68,6 +68,7 @@ module.exports = (bot) => {
|
|||
const dlpCommand = ytDlpPath;
|
||||
const ffmpegPath = getFfmpegPath();
|
||||
const ffmpegArgs = ['-i', tempMp4File, '-i', tempWebmFile, '-c:v copy -c:a copy -strict -2', mp4File];
|
||||
|
||||
if (!videoUrl) {
|
||||
return ctx.reply(Strings.ytNoLink, {
|
||||
parse_mode: "Markdown",
|
||||
|
@ -146,7 +147,7 @@ module.exports = (bot) => {
|
|||
|
||||
fs.unlinkSync(mp4File);
|
||||
} catch (error) {
|
||||
await ctx.reply(Strings.error, {
|
||||
await ctx.reply(Strings.ytFileError, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
});
|
||||
|
@ -164,7 +165,7 @@ module.exports = (bot) => {
|
|||
ctx.chat.id,
|
||||
downloadingMessage.message_id,
|
||||
null,
|
||||
Strings.ytFileErr, {
|
||||
Strings.ytLibNotFound, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
},
|
||||
|
@ -172,7 +173,7 @@ module.exports = (bot) => {
|
|||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
await ctx.reply(Strings.error, {
|
||||
await ctx.reply(Strings.ytFileError, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue