Skip to content

Commit

Permalink
info.py: fix indentation of info strings on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Aug 13, 2024
1 parent b843282 commit 1d82932
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
11 changes: 4 additions & 7 deletions exts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""


import inspect
import random
import re
from typing import Union, Iterable
Expand Down Expand Up @@ -187,11 +188,11 @@ async def _info(self, ctx: commands.Context):
"""Shows info about qrm."""
embed = cmn.embed_factory(ctx)
embed.title = "About qrm"
embed.description = info.description
embed.description = inspect.cleandoc(info.description)
embed.add_field(name="Authors", value=", ".join(info.authors))
embed.add_field(name="License", value=info.license)
embed.add_field(name="Version", value=f"v{info.release} {'(`' + self.commit + '`)' if self.commit else ''}")
embed.add_field(name="Contributing", value=info.contributing, inline=False)
embed.add_field(name="Contributing", value=inspect.cleandoc(info.contributing), inline=False)
embed.add_field(name="Official Server", value=info.bot_server, inline=False)
embed.add_field(name="Donate", value="\n".join(f"{k}: {v}" for k, v in self.donation_links.items()),
inline=False)
Expand Down Expand Up @@ -255,11 +256,7 @@ async def _issue(self, ctx: commands.Context):
"""Shows how to create a bug report or feature request about the bot."""
embed = cmn.embed_factory(ctx)
embed.title = "Found a bug? Have a feature request?"
embed.description = """Submit an issue on the [issue tracker](https://github.com/miaowware/qrm2/issues)!
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)."""
embed.description = inspect.cleandoc(info.issue_tracker)
await ctx.send(embed=embed)

@commands.command(name="donate", aliases=["tip"], category=cmn.BoltCats.INFO)
Expand Down
13 changes: 10 additions & 3 deletions info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
"""
Static info about the bot.
---
Expand All @@ -14,9 +15,15 @@
qrm is a <:miaowware_irl:678275824436379678> MiaowWare project.
"""
license = "Québec Free and Open-Source Licence – Strong Reciprocity (LiLiQ-R+), version 1.1"
contributing = """Check out the [source on GitHub](https://github.com/miaowware/qrm2). Contributions are welcome!
contributing = """
Check out the [source on GitHub](https://github.com/miaowware/qrm2). Contributions are welcome!
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)."""
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).
"""
issue_tracker = """
Submit an issue on the [issue tracker](https://github.com/miaowware/qrm2/issues)!
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).
"""
release = "2.9.2"
bot_server = "https://discord.gg/Ntbg3J4"

0 comments on commit 1d82932

Please sign in to comment.