commit
This commit is contained in:
parent
fb13e08004
commit
4b01a10dab
1 changed files with 1 additions and 12 deletions
13
app.js
13
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 <query>\nRule34 tag command :\n -/r34tag or /rtag <querry>\nRule 34 image search :\n -/r34 <tag>\nTruce command :\n -/truce (reply to a message with that command to verify it)\nSuggest command :\n -/suggest <suggestion> (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 <query>`\nRule34 tag command :\n -`/rtag <querry>`\nRule 34 image search :\n -`/r34 <tag>`\nTruce command :\n -/truce (reply to a message with that command to verify it)\nSuggest command :\n -`/suggest <suggestion>` (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();
|
Loading…
Add table
Add a link
Reference in a new issue