mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
31 lines
697 B
JavaScript
31 lines
697 B
JavaScript
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()
|