UNPKG

koishi-plugin-genshin

Version:

Genshin Impact player data fetcher and gacha simulator for Koishi.js

12 lines (11 loc) 277 B
const { GenshinKit } = require('genshin-kit') async function checkCookie(cookie, uid) { const App = new GenshinKit() try { await App.loginWithCookie(cookie).getUserInfo(uid) return true } catch (err) { return err } } module.exports = checkCookie