From: CMDR furrycat Date: Thu, 13 Apr 2017 12:07:22 +0000 (+0100) Subject: Formatting of influence message. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=ba66e7b251d7c5e88ecefc19f100cfe143d39dcf;p=furrycat%2Fcatbot.git Formatting of influence message. --- diff --git a/plugin/faction/faction.py b/plugin/faction/faction.py index c59ec9a..c2df104 100644 --- a/plugin/faction/faction.py +++ b/plugin/faction/faction.py @@ -805,18 +805,18 @@ class Faction(DBConnection): for row in cursor.fetchall(): if row['system_name'] != last_system: if len(lines): - lines.append('') + lines.append('** **') await bot.say_many(destination, lines) lines = [] lines.append('{}__Influence in **{}** at *{}*__'.format('News flash: ' if update else '', row['system_name'], bot.iso8601(row['timestamp']))) - lines.append('') + lines.append(' ') last_system = row['system_name'] line = '{} {:.2f}% ({})'.format(row['faction_name'], row['influence'] * 100.0, eddb.state_name(row['state_id'])) if row['faction_id'] == id: line = '**{}**'.format(line) lines.append(line) if len(lines): - lines.append('') + lines.append('** **') await bot.say_many(destination, lines) ret = True else: