We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b7edc commit dbe537aCopy full SHA for dbe537a
send.js
@@ -7,7 +7,7 @@ let lastTimestamp = 0
7
8
const THROTTLE_INTERVAL = (config.throttleInterval || 0) * 1000
9
10
-async function send(message) {
+function send(message) {
11
bufferMessage = bufferMessage ? `${bufferMessage}\n${message}` : message
12
const timestamp = Date.now()
13
if (timestamp - lastTimestamp > THROTTLE_INTERVAL) {
@@ -17,8 +17,8 @@ async function send(message) {
17
}
18
19
20
-async function sendBuffer() {
21
- config.bots.forEach(bot => {
+function sendBuffer() {
+ config.bots.forEach(async bot => {
22
let botType = (bot.botType || 'local').toLowerCase()
23
await senders[botType](bufferMessage, bot)
24
})
0 commit comments