fix: complete working Ancestor quote bot with Docker support

This commit is contained in:
unfunny
2026-09-13 00:58:22 -04:00
parent afc70dbf01
commit addf5075c0
3 changed files with 162 additions and 67 deletions

View File

@@ -34,6 +34,8 @@ loadQuotes().then((quotes) => {
process.exit(1);
}
console.log('Bot initialized successfully');
let joinedRooms = new Set();
client.on('RoomMember#joined', (member) => {
@@ -67,13 +69,6 @@ loadQuotes().then((quotes) => {
});
}
});
client.init().then(() => {
console.log('Bot is online');
}).catch(err => {
console.error('Failed to initialize client:', err.message);
process.exit(1);
});
}).catch(err => {
console.error('Failed to load quotes:', err.message);
});