move io into bot

This commit is contained in:
Leifer Mendez
2022-11-13 14:41:25 +01:00
parent 3946c88ed7
commit 03eed5131a
19 changed files with 44 additions and 49 deletions

View File

@@ -0,0 +1,6 @@
const toJson = (inCtx) => () => {
const lastCtx = inCtx.hasOwnProperty('ctx') ? inCtx.ctx : inCtx
return lastCtx.json
}
module.exports = { toJson }