Skip to content

Commit dbe537a

Browse files
committed
fix
1 parent f6b7edc commit dbe537a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

send.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let lastTimestamp = 0
77

88
const THROTTLE_INTERVAL = (config.throttleInterval || 0) * 1000
99

10-
async function send(message) {
10+
function send(message) {
1111
bufferMessage = bufferMessage ? `${bufferMessage}\n${message}` : message
1212
const timestamp = Date.now()
1313
if (timestamp - lastTimestamp > THROTTLE_INTERVAL) {
@@ -17,8 +17,8 @@ async function send(message) {
1717
}
1818
}
1919

20-
async function sendBuffer() {
21-
config.bots.forEach(bot => {
20+
function sendBuffer() {
21+
config.bots.forEach(async bot => {
2222
let botType = (bot.botType || 'local').toLowerCase()
2323
await senders[botType](bufferMessage, bot)
2424
})

0 commit comments

Comments
 (0)