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.
This commit is contained in:
Aditya Bansal 2019-01-15 01:20:08 +05:30 committed by Tim Abbott
parent 58fa142c7d
commit aae90d5d6b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Usage: ./manage.py deliver_scheduled_messages
if delivery_type == ScheduledMessage.SEND_LATER: if delivery_type == ScheduledMessage.SEND_LATER:
message.sender = original_sender message.sender = original_sender
elif delivery_type == ScheduledMessage.REMIND: 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, return {'message': message, 'stream': scheduled_message.stream,
'realm': scheduled_message.realm} 'realm': scheduled_message.realm}