Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RedisController extends TelegramBaseController {
- dbHandler($) {
- console.log('REDIS')
- $.sendMessage($.query.param1)
- $.sendMessage($.query.param2)
- }
- get routes() {
- return {
- '/db :param1 :param2': 'dbHandler'
- }
- }
- }
- tg.router
- .when(
- new TextCommand('/startgame', 'startgameCommand'),
- new MainController()
- )
- .when(
- ['/db :param1 :param2'],
- new RedisController()
- )
Advertisement
Add Comment
Please, Sign In to add comment