import Context from '@/models/Context' ; import logAnswerTime from '@/helpers/logAnswerTime' ; export default async function handleWitToken ( ctx ) { const witToken = ctx . message . text . split ( ' ' ) [ 1 ] ; if ( ! witToken ) { ctx . dbchat . witToken = undefined ; } else { ctx . dbchat . witToken = witToken ; } await ctx . dbchat . save ( ) ; await ctx . reply ( '👍' ) ; logAnswerTime ( ctx , '/witToken' ) ; }