commit
This commit is contained in:
parent
ba0ebec07d
commit
a5a86747ad
3 changed files with 32 additions and 3 deletions
6
app.js
6
app.js
|
@ -7,7 +7,7 @@ const { getJoke } = require('./libs/dadJokes');
|
|||
const { rtag, r34 } = require('./libs/rule34');
|
||||
const { addToLogs, isTrue, image_search, getHelp } = require('./libs/botTools');
|
||||
const { rockPaperScissorsAgainstBot } = require('./libs/games');
|
||||
const { generateImage } = require('./libs/openAi');
|
||||
const { generateImage, answerQuestion } = require('./libs/openAi');
|
||||
|
||||
//bot initialization
|
||||
const bot = new Telegraf(process.env.TELEGRAM);
|
||||
|
@ -88,5 +88,9 @@ bot.command('g', ctx => {
|
|||
generateImage(ctx.message.text.slice(+3), ctx, bot)
|
||||
})
|
||||
|
||||
bot.command('q', ctx => {
|
||||
answerQuestion(ctx.message.text.slice(+3), ctx, bot)
|
||||
})
|
||||
|
||||
//bot launch
|
||||
bot.launch();
|
Loading…
Add table
Add a link
Reference in a new issue