commands: localize generic bot commands
This commit is contained in:
@@ -3,10 +3,11 @@ import {Message} from "typescript-telegram-bot-api";
|
||||
import {Requirements} from "../base/requirements";
|
||||
import {Requirement} from "../base/requirement";
|
||||
import {logError, replyToMessage} from "../util/utils";
|
||||
import {Environment} from "../common/environment";
|
||||
|
||||
export class Debug extends Command {
|
||||
title = "/debug";
|
||||
description = "Returns msg (or reply) as json";
|
||||
title = Environment.commandTitles.debug;
|
||||
description = Environment.commandDescriptions.debug;
|
||||
|
||||
requirements = Requirements.Build(Requirement.BOT_ADMIN);
|
||||
|
||||
@@ -17,4 +18,4 @@ export class Debug extends Command {
|
||||
const text = `\`\`\`json\n${json}\n\`\`\``;
|
||||
await replyToMessage({message: msg, text: text, parse_mode: "Markdown"}).catch(logError);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user