server = client.get_server(announcement['server_id'])
member = server.get_member(announcement['member_id'])
- text = 'announcement by {}'.format(member.name)
+ text = '**announcement {} by {}'.format(id, member.name)
now = int(time.time())
if announcement['last_spoke']:
offset = announcement['last_spoke']
if offset <= now:
if announcement['interval']:
text += ' scheduled for {}'.format(iso8601(offset + announcement['interval']))
- text += ':'
+ text += '**'
lines.append(text)
- text = 'announce create {}'.format(id)
+ text = 'announce create'
if announcement['start_date']:
text += ' from "{}"'.format(iso8601(announcement['start_date']))
if announcement['end_date']: