fix: complete working Ancestor quote bot with Docker support
This commit is contained in:
9
index.js
9
index.js
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user