comment out bf5 cause its dead
This commit is contained in:
parent
b6dae3db84
commit
2381957cd1
@ -8,23 +8,22 @@ class Games(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot: commands.Bot = bot
|
self.bot: commands.Bot = bot
|
||||||
|
|
||||||
@commands.slash_command(
|
# @commands.slash_command(
|
||||||
guild_ids=None,
|
# guild_ids=None,
|
||||||
name="bf5",
|
# name="bf5",
|
||||||
description="Query the game's API for data about a player",
|
# description="Query the game's API for data about a player",
|
||||||
)
|
# )
|
||||||
async def bf5(self, ctx: commands.Context, player):
|
# async def bf5(self, ctx: commands.Context, player):
|
||||||
import bf5
|
# import bf5
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
await ctx.defer()
|
# await ctx.defer()
|
||||||
embed = bf5.get_player(player)
|
# embed = bf5.get_player(player)
|
||||||
await ctx.send_followup(embed=embed)
|
# await ctx.send_followup(embed=embed)
|
||||||
except Exception as e:
|
# except Exception as e:
|
||||||
await ctx.send(
|
# await ctx.send(
|
||||||
e
|
# "I encountered an error while searching for that player.\nPlease check that your player name is spelled correctly"
|
||||||
# "I encountered an error while searching for that player.\nPlease check that your player name is spelled correctly"
|
# )
|
||||||
)
|
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None,
|
guild_ids=None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user