Skip to content

Commit

Permalink
Make !help read better on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwr22 committed Mar 26, 2020
1 parent 93cfb9b commit d3d57f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion covbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'compare': (
'!compare locations',
'Compare up to date info on cases in multiple locations.'
'If it looks bad on mobile try rotating into landscape mode. '
' Separate the locations with semicolons (;).'
' You can give a country codes, countries, states, counties, regions or cities.'
' E.g. !compare cn;us;uk;it;de'
Expand Down Expand Up @@ -663,7 +664,7 @@ async def help_handler(self, event: MessageEvent) -> None:
self.log.info('Responding to help request.')

s = 'You can message me any of these commands:\n\n'
s += '\n'.join(f'{usage} - {desc}' for (usage, desc) in HELP.values())
s += '\n\n'.join(f'{usage} - {desc}' for (usage, desc) in HELP.values())
await self._message(event.room_id, s)

async def _message(self, room_id, m: str) -> None:
Expand Down

0 comments on commit d3d57f7

Please sign in to comment.