Add message to the queue per webhook to fix #27

This commit is contained in:
Frisk 2020-09-13 17:26:11 +02:00
parent af2b779b84
commit 8d9c3c01d9
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -85,4 +85,7 @@ messagequeue = MessageQueue()
async def send_to_discord(msg): async def send_to_discord(msg):
webhooks = msg.webhook_url.copy()
for webhook in webhooks:
msg.webhook_url = [webhook]
messagequeue.add_message(msg) messagequeue.add_message(msg)