mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-06-26 14:42:14 +00:00
Hotfix master
This commit is contained in:
parent
f35048e156
commit
5f9547a556
24
src/index.ts
24
src/index.ts
|
@ -54,19 +54,19 @@ async function main() {
|
|||
LogService.info('ChatGPT session initialized');
|
||||
});
|
||||
|
||||
// call `api.refreshSession()` every hour to refresh the session
|
||||
setInterval(() => {
|
||||
chatGPT.refreshSession().then(() => {
|
||||
LogService.info('ChatGPT session reset');
|
||||
});
|
||||
}, 60 * 60 * 1000);
|
||||
// // call `api.refreshSession()` every hour to refresh the session
|
||||
// setInterval(() => {
|
||||
// chatGPT.refreshSession().then(() => {
|
||||
// LogService.info('ChatGPT session reset');
|
||||
// });
|
||||
// }, 60 * 60 * 1000);
|
||||
|
||||
// call `api.resetSession()` every 24 hours to reset the session
|
||||
setInterval(() => {
|
||||
chatGPT.resetSession().then(() => {
|
||||
LogService.info('ChatGPT session reset');
|
||||
});
|
||||
}, 24 * 60 * 60 * 1000);
|
||||
// // call `api.resetSession()` every 24 hours to reset the session
|
||||
// setInterval(() => {
|
||||
// chatGPT.resetSession().then(() => {
|
||||
// LogService.info('ChatGPT session reset');
|
||||
// });
|
||||
// }, 24 * 60 * 60 * 1000);
|
||||
|
||||
// Automatically join rooms the bot is invited to
|
||||
if (MATRIX_AUTOJOIN) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user