mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-10-14 05:19:19 +00:00
22 lines
481 B
TypeScript
22 lines
481 B
TypeScript
import wsClientManager from '../../core/services/ws/wsClientManager';
|
|
import logger from '../../core/utils/system/logger';
|
|
|
|
class TestService {
|
|
public async test() {
|
|
try {
|
|
const testData = {
|
|
type: 'getGroupInfo',
|
|
data: {
|
|
botId: 'stdin',
|
|
groupId: 'stdin',
|
|
},
|
|
};
|
|
return await wsClientManager.sendAndWait('test', testData);
|
|
} catch (err) {
|
|
logger.error(err);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default new TestService();
|