Hotfix master

This commit is contained in:
bertybuttface 2023-01-28 13:04:56 +00:00 committed by GitHub
parent f35048e156
commit 5f9547a556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,19 +54,19 @@ async function main() {
LogService.info('ChatGPT session initialized'); LogService.info('ChatGPT session initialized');
}); });
// call `api.refreshSession()` every hour to refresh the session // // call `api.refreshSession()` every hour to refresh the session
setInterval(() => { // setInterval(() => {
chatGPT.refreshSession().then(() => { // chatGPT.refreshSession().then(() => {
LogService.info('ChatGPT session reset'); // LogService.info('ChatGPT session reset');
}); // });
}, 60 * 60 * 1000); // }, 60 * 60 * 1000);
// call `api.resetSession()` every 24 hours to reset the session // // call `api.resetSession()` every 24 hours to reset the session
setInterval(() => { // setInterval(() => {
chatGPT.resetSession().then(() => { // chatGPT.resetSession().then(() => {
LogService.info('ChatGPT session reset'); // LogService.info('ChatGPT session reset');
}); // });
}, 24 * 60 * 60 * 1000); // }, 24 * 60 * 60 * 1000);
// Automatically join rooms the bot is invited to // Automatically join rooms the bot is invited to
if (MATRIX_AUTOJOIN) { if (MATRIX_AUTOJOIN) {