mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-25 20:21:02 +00:00
23 lines
351 B
JavaScript
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;
|
|
|
|
}
|
|
};
|