mi-gpt/tests/migpt.ts

33 lines
615 B
TypeScript
Raw Normal View History

2024-02-26 16:14:43 +00:00
import { MiGPT } from "../src";
const botProfile = `
2024-02-29 15:09:19 +00:00
2024-02-26 16:14:43 +00:00
`;
const masterProfile = `
2024-02-29 15:09:19 +00:00
2024-02-26 16:14:43 +00:00
`;
export async function testMiGPT() {
const client = MiGPT.create({
speaker: {
userId: process.env.MI_USER!,
password: process.env.MI_PASS!,
did: process.env.MI_DID,
},
bot: {
2024-02-29 15:09:19 +00:00
name: "傻妞",
2024-02-26 16:14:43 +00:00
profile: botProfile,
},
master: {
2024-02-29 15:09:19 +00:00
name: "陆小千",
2024-02-26 16:14:43 +00:00
profile: masterProfile,
},
});
await client.start();
}