From: CMDR furrycat Date: Mon, 10 Oct 2016 10:22:03 +0000 (+0100) Subject: Log new announcement ID. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=f705967f25b0ab1866bd16f3b816d4445e57f62d;p=furrycat%2Fcatbot.git Log new announcement ID. --- diff --git a/bot.py b/bot.py index deac1f0..a6bbf9f 100755 --- a/bot.py +++ b/bot.py @@ -1134,12 +1134,14 @@ def create_announcement(message, raw): if not announce: return - log.info('Creating announcement: {}'.format(create)) id = db.create_announcement(client, **create) if id: + create['id'] = id + log.info('Created announcement: {}'.format(create)) yield from say(message.channel, id) yield from play_sound(voice_channel_for_channel(message.channel), 'purr.wav', join = False) else: + log.info('Failed to create announcement: {}'.format(create)) yield from say(message.channel, 'yelp!') @asyncio.coroutine