mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: 小重构必应
This commit is contained in:
parent
389940085a
commit
76ecabe104
19 changed files with 536 additions and 305 deletions
31
client/test/GozeClientTest.js
Normal file
31
client/test/GozeClientTest.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { SlackCozeClient } from '../CozeSlackClient.js'
|
||||
import fs from 'fs'
|
||||
global.store = {}
|
||||
|
||||
// global.redis = {
|
||||
// set: (key, val) => {
|
||||
// global.store[key] = val
|
||||
// },
|
||||
// get: (key) => {
|
||||
// return global.store[key]
|
||||
// }
|
||||
// }
|
||||
// global.logger = {
|
||||
// info: console.log,
|
||||
// warn: console.warn,
|
||||
// error: console.error
|
||||
// }
|
||||
// async function test () {
|
||||
// const fullPath = fs.realpathSync('../../config/config.json')
|
||||
// const data = fs.readFileSync(fullPath)
|
||||
// let config = JSON.parse(String(data))
|
||||
// let client = new SlackCozeClient(config)
|
||||
// await client.sendMessage('hello', {
|
||||
// sender: {
|
||||
// user_id: 450960006
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
//
|
||||
//
|
||||
// test()
|
||||
Loading…
Add table
Add a link
Reference in a new issue