mirror of
https://github.com/miaowware/qrm2.git
synced 2025-05-29 12:52:26 -04:00
Merge branch 'master' into clog-arg
This commit is contained in:
commit
f4f034abfe
@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Changed
|
### Changed
|
||||||
- Changelog command to accept a version as argument.
|
- Changelog command to accept a version as argument.
|
||||||
|
- The qrz command can now link to a QRZ page instead of embedding the data with the `--link` flag.
|
||||||
|
|
||||||
|
|
||||||
## [2.1.0] - 2020-01-04
|
## [2.1.0] - 2020-01-04
|
||||||
|
@ -65,7 +65,7 @@ class HamCog(commands.Cog):
|
|||||||
embed.colour = cmn.colours.good
|
embed.colour = cmn.colours.good
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command(name="prefixes", aliases=["vanity", "pfx", "vanities", "prefix"])
|
@commands.command(name="prefixes", aliases=["vanity", "pfx", "vanities", "prefix"], category=cmn.cat.ref)
|
||||||
async def _vanity_prefixes(self, ctx: commands.Context, country: str = None):
|
async def _vanity_prefixes(self, ctx: commands.Context, country: str = None):
|
||||||
'''Lists valid prefixes for countries.'''
|
'''Lists valid prefixes for countries.'''
|
||||||
if country is None:
|
if country is None:
|
||||||
|
@ -25,9 +25,11 @@ class QRZCog(commands.Cog):
|
|||||||
self._qrz_session_init.start()
|
self._qrz_session_init.start()
|
||||||
|
|
||||||
@commands.command(name="call", aliases=["qrz"], category=cmn.cat.lookup)
|
@commands.command(name="call", aliases=["qrz"], category=cmn.cat.lookup)
|
||||||
async def _qrz_lookup(self, ctx: commands.Context, callsign: str):
|
async def _qrz_lookup(self, ctx: commands.Context, callsign: str, *flags):
|
||||||
'''Look up a callsign on [QRZ.com](https://www.qrz.com/).'''
|
'''Look up a callsign on [QRZ.com](https://www.qrz.com/). Add `--link` to only link the QRZ page.'''
|
||||||
if keys.qrz_user == '' or keys.qrz_pass == '':
|
flags = [f.lower() for f in flags]
|
||||||
|
|
||||||
|
if keys.qrz_user == '' or keys.qrz_pass == '' or '--link' in flags:
|
||||||
await ctx.send(f'http://qrz.com/db/{callsign}')
|
await ctx.send(f'http://qrz.com/db/{callsign}')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user