Add buttons to manually jailbreak and purge chat on Poe

This commit is contained in:
SillyLossy
2023-06-01 22:13:01 +03:00
parent 4b10095af8
commit 003f87e960
4 changed files with 94 additions and 22 deletions

View File

@ -2193,7 +2193,12 @@ app.post('/purge_poe', jsonParser, async (request, response) => {
try {
const client = await getPoeClient(token, true);
await client.purge_conversation(bot, count);
if (count > 0) {
await client.purge_conversation(bot, count);
}
else {
await client.send_chat_break(bot);
}
client.disconnect_ws();
return response.send({ "ok": true });