From 4b01a10dab9eeb1cc987565a177b3c5456d51ec7 Mon Sep 17 00:00:00 2001 From: Lukian LEIZOUR Date: Sat, 26 Nov 2022 17:00:26 +0100 Subject: [PATCH] commit --- app.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app.js b/app.js index fae42c6..70a61c8 100644 --- a/app.js +++ b/app.js @@ -132,7 +132,7 @@ bot.command('start', ctx => { }) bot.help(ctx => { - ctx.reply('This is the help message :\nHelp command : \n -/help\nAnime command : \n -/anime\nImage search command : \n -/search or /s \nRule34 tag command :\n -/r34tag or /rtag \nRule 34 image search :\n -/r34 \nTruce command :\n -/truce (reply to a message with that command to verify it)\nSuggest command :\n -/suggest (allows you to add a suggestion to the chanel t.me/+SrzC81CGyusyODNk)\nGithub link command : \n -/github') + bot.telegram.sendMessage(ctx.chat.id, 'This is the help message :\nHelp command : \n -/help\nAnime command : \n -/anime\nImage search command : \n -`/s `\nRule34 tag command :\n -`/rtag `\nRule 34 image search :\n -`/r34 `\nTruce command :\n -/truce (reply to a message with that command to verify it)\nSuggest command :\n -`/suggest ` (allows you to add a suggestion to the chanel t.me/+SrzC81CGyusyODNk)\nGithub link command : \n -/github', {parse_mode: "Markdown"}) console.log('--> sent the help message') addToLogs('--> sent the help message') }) @@ -149,10 +149,6 @@ bot.command('github', ctx => { addToLogs('--> sent github link') }) -bot.command('search', ctx => { - image_search(ctx.message.text.slice(+8), ctx) -}) - bot.command('s', ctx => { image_search(ctx.message.text.slice(+3), ctx) }) @@ -172,10 +168,6 @@ bot.command('suggest', ctx => { addToLogs('--> sent suggestion message to the channel') }) -bot.command('r34tag', ctx => { - r34sTag(ctx.message.text.slice(+8), ctx) -}) - bot.command('rtag', ctx => { r34sTag(ctx.message.text.slice(+6), ctx) }) @@ -184,8 +176,5 @@ bot.command('r34', ctx => { r34(ctx.message.text.slice(+5), ctx) }) -bot.command('test', ctx => { - bot.telegram.sendMessage(ctx.chat.id, "`test`", {parse_mode: 'Markdown'}) -}) //bot launch bot.launch(); \ No newline at end of file