Guest User

Untitled

a guest
Oct 4th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class RedisController extends TelegramBaseController {
  2.  
  3. dbHandler($) {
  4. console.log('REDIS')
  5. $.sendMessage($.query.param1)
  6. $.sendMessage($.query.param2)
  7. }
  8.  
  9. get routes() {
  10. return {
  11. '/db :param1 :param2': 'dbHandler'
  12. }
  13. }
  14. }
  15.  
  16. tg.router
  17. .when(
  18. new TextCommand('/startgame', 'startgameCommand'),
  19. new MainController()
  20. )
  21. .when(
  22. ['/db :param1 :param2'],
  23. new RedisController()
  24. )
Advertisement
Add Comment
Please, Sign In to add comment