Files
revanced-bots/bots/reddit/events/helper/aiResponse.js
GramingFoxTeam 0ba525c4a5 feat: GODEL AI
2022-12-25 12:49:16 +03:00

23 lines
351 B
JavaScript

export default {
name: 'aiResponse',
once: false,
async execute(client, config, aiRes) {
const ids = aiRes.id.split('/');
switch (ids[0]) {
case 'comment': {
client.getComment(ids[1]).reply(aiRes.response);
break;
}
case 'post': {
client.getSubmission(ids[1]).reply(aiRes.response);
break;
}
}
return;
}
};