commit
This commit is contained in:
parent
4087e18757
commit
b9e306320c
2 changed files with 57 additions and 46 deletions
5
app.js
5
app.js
|
@ -5,6 +5,7 @@ const { Telegraf } = require('telegraf');
|
|||
const { getJoke } = require('./libs/dadJokes');
|
||||
const { rtag, r34 } = require('./libs/rule34');
|
||||
const { addToLogs, isTrue, image_search } = require('./libs/botTools');
|
||||
const { rockPaperScissorsAgainstBot } = require('./libs/games');
|
||||
|
||||
//bot initialization
|
||||
const bot = new Telegraf(process.env.TELEGRAM);
|
||||
|
@ -66,5 +67,9 @@ bot.command('dadjoke', ctx => {
|
|||
console.log('--> sent a dad joke')
|
||||
})
|
||||
|
||||
bot.command('rps', ctx => {
|
||||
rockPaperScissorsAgainstBot(ctx.message.text.slice(+5), ctx, bot)
|
||||
})
|
||||
|
||||
//bot launch
|
||||
bot.launch();
|
Loading…
Add table
Add a link
Reference in a new issue