bot logging
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s
Details
This commit is contained in:
parent
cc97e7a765
commit
c64feb2fe5
|
@ -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!');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue