KOW-8: Display a message when searching for a pony (#59)
This commit is contained in:
parent
ecf62327c4
commit
3338698576
3 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,10 @@ export default (bot: Telegraf<Context>) => {
|
||||||
bot.command(["rpony", "randompony", "mlpart"], spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => {
|
bot.command(["rpony", "randompony", "mlpart"], spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => {
|
||||||
const Strings = getStrings(languageCode(ctx));
|
const Strings = getStrings(languageCode(ctx));
|
||||||
const reply_to_message_id = replyToMessageId(ctx);
|
const reply_to_message_id = replyToMessageId(ctx);
|
||||||
|
ctx.reply(Strings.ponyApi.searching, {
|
||||||
|
parse_mode: 'Markdown',
|
||||||
|
...({ reply_to_message_id })
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
const response = await axios(Resources.randomPonyApi);
|
const response = await axios(Resources.randomPonyApi);
|
||||||
let tags: string[] = [];
|
let tags: string[] = [];
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
"noEpisodeFound": "No episode found.",
|
"noEpisodeFound": "No episode found.",
|
||||||
"noComicName": "Please provide the comic's name.",
|
"noComicName": "Please provide the comic's name.",
|
||||||
"noComicFound": "No comic found.",
|
"noComicFound": "No comic found.",
|
||||||
|
"searching": "Searching for a character…",
|
||||||
"apiErr": "An error occurred while fetching data from the API.\n\n`{error}`"
|
"apiErr": "An error occurred while fetching data from the API.\n\n`{error}`"
|
||||||
},
|
},
|
||||||
"codenameCheck": {
|
"codenameCheck": {
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
"noEpisodeFound": "Nenhum episódio encontrado.",
|
"noEpisodeFound": "Nenhum episódio encontrado.",
|
||||||
"noComicName": "Por favor, forneça o nome da comic.",
|
"noComicName": "Por favor, forneça o nome da comic.",
|
||||||
"noComicFound": "Nenhuma comic foi encontrada.",
|
"noComicFound": "Nenhuma comic foi encontrada.",
|
||||||
|
"searching": "Procurando por um personagem…",
|
||||||
"apiErr": "Ocorreu um erro ao buscar dados da API.\n\n`{error}`"
|
"apiErr": "Ocorreu um erro ao buscar dados da API.\n\n`{error}`"
|
||||||
},
|
},
|
||||||
"codenameCheck": {
|
"codenameCheck": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue