From aae90d5d6bdb53433c43d0bb77c2a8e136b19e39 Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Tue, 15 Jan 2019 01:20:08 +0530 Subject: [PATCH] deliver_scheduled_messages: Make notification bot deliver reminders. We do this since we are yet to figure out how the entire realm internal bots scenerio should work and therefore for the timming we will use notification bot to deliver the reminders. --- zerver/management/commands/deliver_scheduled_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/management/commands/deliver_scheduled_messages.py b/zerver/management/commands/deliver_scheduled_messages.py index 9c04e8526c..6dad7a5743 100644 --- a/zerver/management/commands/deliver_scheduled_messages.py +++ b/zerver/management/commands/deliver_scheduled_messages.py @@ -44,7 +44,7 @@ Usage: ./manage.py deliver_scheduled_messages if delivery_type == ScheduledMessage.SEND_LATER: message.sender = original_sender elif delivery_type == ScheduledMessage.REMIND: - message.sender = get_user_by_delivery_email(settings.REMINDER_BOT, original_sender.realm) + message.sender = get_user_by_delivery_email(settings.NOTIFICATION_BOT, original_sender.realm) return {'message': message, 'stream': scheduled_message.stream, 'realm': scheduled_message.realm}