mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 20:32:23 -06:00
refactor: integrations folder
This commit is contained in:
@@ -90,4 +90,20 @@ export class OpenaiController {
|
||||
|
||||
return this.openaiService.ignoreJid(instance, data);
|
||||
}
|
||||
|
||||
public async emit({
|
||||
instance,
|
||||
remoteJid,
|
||||
msg,
|
||||
pushName,
|
||||
}: {
|
||||
instance: InstanceDto;
|
||||
remoteJid: string;
|
||||
msg: any;
|
||||
pushName?: string;
|
||||
}) {
|
||||
if (!configService.get<Openai>('OPENAI').ENABLED) return;
|
||||
|
||||
await this.openaiService.sendOpenai(instance, remoteJid, pushName, msg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user