Skip to content

Commit 1d82932

Browse files
committed
info.py: fix indentation of info strings on mobile
1 parent b843282 commit 1d82932

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

exts/base.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99

10+
import inspect
1011
import random
1112
import re
1213
from typing import Union, Iterable
@@ -187,11 +188,11 @@ async def _info(self, ctx: commands.Context):
187188
"""Shows info about qrm."""
188189
embed = cmn.embed_factory(ctx)
189190
embed.title = "About qrm"
190-
embed.description = info.description
191+
embed.description = inspect.cleandoc(info.description)
191192
embed.add_field(name="Authors", value=", ".join(info.authors))
192193
embed.add_field(name="License", value=info.license)
193194
embed.add_field(name="Version", value=f"v{info.release} {'(`' + self.commit + '`)' if self.commit else ''}")
194-
embed.add_field(name="Contributing", value=info.contributing, inline=False)
195+
embed.add_field(name="Contributing", value=inspect.cleandoc(info.contributing), inline=False)
195196
embed.add_field(name="Official Server", value=info.bot_server, inline=False)
196197
embed.add_field(name="Donate", value="\n".join(f"{k}: {v}" for k, v in self.donation_links.items()),
197198
inline=False)
@@ -255,11 +256,7 @@ async def _issue(self, ctx: commands.Context):
255256
"""Shows how to create a bug report or feature request about the bot."""
256257
embed = cmn.embed_factory(ctx)
257258
embed.title = "Found a bug? Have a feature request?"
258-
embed.description = """Submit an issue on the [issue tracker](https://github.com/miaowware/qrm2/issues)!
259-
260-
All issues and requests related to resources (including maps, band charts, data) \
261-
should be added in \
262-
[miaowware/qrm-resources](https://github.com/miaowware/qrm-resources/issues)."""
259+
embed.description = inspect.cleandoc(info.issue_tracker)
263260
await ctx.send(embed=embed)
264261

265262
@commands.command(name="donate", aliases=["tip"], category=cmn.BoltCats.INFO)

info.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
"""
23
Static info about the bot.
34
---
@@ -14,9 +15,15 @@
1415
qrm is a <:miaowware_irl:678275824436379678> MiaowWare project.
1516
"""
1617
license = "Québec Free and Open-Source Licence – Strong Reciprocity (LiLiQ-R+), version 1.1"
17-
contributing = """Check out the [source on GitHub](https://github.com/miaowware/qrm2). Contributions are welcome!
18+
contributing = """
19+
Check out the [source on GitHub](https://github.com/miaowware/qrm2). Contributions are welcome!
1820
19-
All issues and requests related to resources (including maps, band charts, data) should be added \
20-
in [miaowware/qrm-resources](https://github.com/miaowware/qrm-resources)."""
21+
All issues and requests related to resources (including maps, band charts, data) should be added in [miaowware/qrm-resources](https://github.com/miaowware/qrm-resources).
22+
"""
23+
issue_tracker = """
24+
Submit an issue on the [issue tracker](https://github.com/miaowware/qrm2/issues)!
25+
26+
All issues and requests related to resources (including maps, band charts, data) should be added in [miaowware/qrm-resources](https://github.com/miaowware/qrm-resources/issues).
27+
"""
2128
release = "2.9.2"
2229
bot_server = "https://discord.gg/Ntbg3J4"

0 commit comments

Comments
 (0)