mirror of https://github.com/miaowware/qrm2.git
parent
0d5ca5c2fe
commit
fa82610469
|
@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- The ability to select an element of a pool in `?hamstudy`.
|
- The ability to select an element of a pool in `?hamstudy`.
|
||||||
- The ability to answer ❓ to a HamStudy question to get the answer.
|
- The ability to answer ❓ to a HamStudy question to get the answer.
|
||||||
- The list of available prefixes to `?help` when there is more than one.
|
- The list of available prefixes to `?help` when there is more than one.
|
||||||
|
- `?donate` command to show ways to support qrm's development.
|
||||||
### Changed
|
### Changed
|
||||||
- New colour theme for `?greyline`.
|
- New colour theme for `?greyline`.
|
||||||
- Moved great circle distance and bearing calculation from `?ungrid` to `?griddistance`.
|
- Moved great circle distance and bearing calculation from `?ungrid` to `?griddistance`.
|
||||||
|
|
16
exts/base.py
16
exts/base.py
|
@ -18,6 +18,7 @@ import discord.ext.commands as commands
|
||||||
|
|
||||||
import info
|
import info
|
||||||
import common as cmn
|
import common as cmn
|
||||||
|
from data import options as opt
|
||||||
|
|
||||||
|
|
||||||
class QrmHelpCommand(commands.HelpCommand):
|
class QrmHelpCommand(commands.HelpCommand):
|
||||||
|
@ -120,6 +121,10 @@ class BaseCog(commands.Cog):
|
||||||
self.commit = bf.readline().strip()[:7]
|
self.commit = bf.readline().strip()[:7]
|
||||||
else:
|
else:
|
||||||
self.commit = ""
|
self.commit = ""
|
||||||
|
self.donation_links = {
|
||||||
|
"Ko-Fi": "https://ko-fi.com/miaowware",
|
||||||
|
"LiberaPay": "https://liberapay.com/miaowware",
|
||||||
|
}
|
||||||
|
|
||||||
@commands.command(name="info", aliases=["about"])
|
@commands.command(name="info", aliases=["about"])
|
||||||
async def _info(self, ctx: commands.Context):
|
async def _info(self, ctx: commands.Context):
|
||||||
|
@ -196,6 +201,17 @@ class BaseCog(commands.Cog):
|
||||||
[miaowware/qrm-resources](https://github.com/miaowware/qrm-resources/issues)."""
|
[miaowware/qrm-resources](https://github.com/miaowware/qrm-resources/issues)."""
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
@commands.command(name="donate")
|
||||||
|
async def _donate(self, ctx: commands.Context):
|
||||||
|
"""Shows ways to help support development of the bot via donations."""
|
||||||
|
embed = cmn.embed_factory(ctx)
|
||||||
|
embed.title = "Help Support qrm's Development!"
|
||||||
|
embed.description = ("Donations are always appreciated, and help with server and infrastructure costs."
|
||||||
|
"\nThank you for your support!")
|
||||||
|
for title, url in self.donation_links.items():
|
||||||
|
embed.add_field(name=title, value=url, inline=False)
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command(name="echo", aliases=["e"], category=cmn.cat.admin)
|
@commands.command(name="echo", aliases=["e"], category=cmn.cat.admin)
|
||||||
@commands.check(cmn.check_if_owner)
|
@commands.check(cmn.check_if_owner)
|
||||||
async def _echo(self, ctx: commands.Context,
|
async def _echo(self, ctx: commands.Context,
|
||||||
|
|
|
@ -46,6 +46,7 @@ exts = [
|
||||||
"propagation",
|
"propagation",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# Either "time", "random", or "fixed" (first item in statuses)
|
# Either "time", "random", or "fixed" (first item in statuses)
|
||||||
status_mode = "fixed"
|
status_mode = "fixed"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue