bot logging
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s Details

This commit is contained in:
Ladd Hoffman 2024-04-24 12:37:26 -05:00
parent cc97e7a765
commit c64feb2fe5
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,8 @@ const cryptoProvider = new RustSdkCryptoStorageProvider(BOT_CRYPTO_STORAGE_PATH)
let client;
let joinedRooms;
const processOutboundQueue = async ({ text }) => {
joinedRooms.forEach(async (roomId) => {
console.log('broadcasting', { text });
await Promise.each(joinedRooms, async (roomId) => {
await client.sendText(roomId, text);
});
};
@ -54,6 +55,7 @@ const start = async () => {
if (!body?.startsWith('!hello')) return;
// Now that we've passed all the checks, we can actually act upon the command
console.log(`!hello roomId ${roomId}`);
await client.replyNotice(roomId, event, 'Hello world!');
}