mirror of
https://github.com/miaowware/qrm2.git
synced 2025-07-16 14:55:17 -04:00
add typing context to ae7q commands
This commit is contained in:
parent
2c3535d99e
commit
58c69f5aeb
@ -36,6 +36,7 @@ class AE7QCog(commands.Cog):
|
|||||||
@_ae7q_lookup.command(name="call", aliases=["c"], category=cmn.cat.lookup)
|
@_ae7q_lookup.command(name="call", aliases=["c"], category=cmn.cat.lookup)
|
||||||
async def _ae7q_call(self, ctx: commands.Context, callsign: str):
|
async def _ae7q_call(self, ctx: commands.Context, callsign: str):
|
||||||
'''Look up the history of a callsign on [ae7q.com](http://ae7q.com/).'''
|
'''Look up the history of a callsign on [ae7q.com](http://ae7q.com/).'''
|
||||||
|
with ctx.typing():
|
||||||
callsign = callsign.upper()
|
callsign = callsign.upper()
|
||||||
desc = ''
|
desc = ''
|
||||||
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
||||||
@ -105,6 +106,7 @@ class AE7QCog(commands.Cog):
|
|||||||
@_ae7q_lookup.command(name="trustee", aliases=["t"], category=cmn.cat.lookup)
|
@_ae7q_lookup.command(name="trustee", aliases=["t"], category=cmn.cat.lookup)
|
||||||
async def _ae7q_trustee(self, ctx: commands.Context, callsign: str):
|
async def _ae7q_trustee(self, ctx: commands.Context, callsign: str):
|
||||||
'''Look up the licenses for which a licensee is trustee on [ae7q.com](http://ae7q.com/).'''
|
'''Look up the licenses for which a licensee is trustee on [ae7q.com](http://ae7q.com/).'''
|
||||||
|
with ctx.typing():
|
||||||
callsign = callsign.upper()
|
callsign = callsign.upper()
|
||||||
desc = ''
|
desc = ''
|
||||||
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
||||||
@ -176,6 +178,7 @@ class AE7QCog(commands.Cog):
|
|||||||
async def _ae7q_applications(self, ctx: commands.Context, callsign: str):
|
async def _ae7q_applications(self, ctx: commands.Context, callsign: str):
|
||||||
'''Look up the application history for a callsign on [ae7q.com](http://ae7q.com/).'''
|
'''Look up the application history for a callsign on [ae7q.com](http://ae7q.com/).'''
|
||||||
"""
|
"""
|
||||||
|
with ctx.typing():
|
||||||
callsign = callsign.upper()
|
callsign = callsign.upper()
|
||||||
desc = ''
|
desc = ''
|
||||||
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
base_url = "http://ae7q.com/query/data/CallHistory.php?CALL="
|
||||||
@ -252,6 +255,7 @@ class AE7QCog(commands.Cog):
|
|||||||
- 2 tables: callsign history and application history
|
- 2 tables: callsign history and application history
|
||||||
- If not found: no tables
|
- If not found: no tables
|
||||||
"""
|
"""
|
||||||
|
with ctx.typing():
|
||||||
base_url = "http://ae7q.com/query/data/FrnHistory.php?FRN="
|
base_url = "http://ae7q.com/query/data/FrnHistory.php?FRN="
|
||||||
embed = cmn.embed_factory(ctx)
|
embed = cmn.embed_factory(ctx)
|
||||||
|
|
||||||
@ -317,6 +321,7 @@ class AE7QCog(commands.Cog):
|
|||||||
@_ae7q_lookup.command(name="licensee", aliases=["l"], category=cmn.cat.lookup)
|
@_ae7q_lookup.command(name="licensee", aliases=["l"], category=cmn.cat.lookup)
|
||||||
async def _ae7q_licensee(self, ctx: commands.Context, licensee_id: str):
|
async def _ae7q_licensee(self, ctx: commands.Context, licensee_id: str):
|
||||||
'''Look up the history of a licensee ID on [ae7q.com](http://ae7q.com/).'''
|
'''Look up the history of a licensee ID on [ae7q.com](http://ae7q.com/).'''
|
||||||
|
with ctx.typing():
|
||||||
licensee_id = licensee_id.upper()
|
licensee_id = licensee_id.upper()
|
||||||
base_url = "http://ae7q.com/query/data/LicenseeIdHistory.php?ID="
|
base_url = "http://ae7q.com/query/data/LicenseeIdHistory.php?ID="
|
||||||
embed = cmn.embed_factory(ctx)
|
embed = cmn.embed_factory(ctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user