From 27f4adfa2b91ca80c0d0a8e67d030a0e7aa1c611 Mon Sep 17 00:00:00 2001 From: shadowinged Date: Sat, 22 Mar 2025 17:58:27 -0400 Subject: [PATCH] sum more updates --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 0d8332d..8ac1455 100644 --- a/bot.py +++ b/bot.py @@ -324,6 +324,10 @@ async def geterror(ctx, errorcode: commands.Range[int, 204000, 250943]): errormessage = "Error Code was not found." await ctx.send(errormessage) +@bot.hybrid_command(name="addfc", description="Adds your Wii Friend code to the list of friend codes so that others can add you") +async def addfc(ctx, fc: int): + conn = mysql.connector.connect(host=os.getenv("mqur"), user=os.getenv("mqlu"), password=os.getenv("mqlp"), database=os.getenv("mqld"), port=os.getenv("mqpo")) + try: os.remove("error_codes.db") except Exception as e: