mirror of
https://wiilab.wiimart.org/wiimart/WiiMartBot
synced 2025-09-04 04:21:09 +02:00
sum more updates
This commit is contained in:
parent
d98089da1c
commit
27f4adfa2b
4
bot.py
4
bot.py
@ -324,6 +324,10 @@ async def geterror(ctx, errorcode: commands.Range[int, 204000, 250943]):
|
|||||||
errormessage = "Error Code was not found."
|
errormessage = "Error Code was not found."
|
||||||
await ctx.send(errormessage)
|
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:
|
try:
|
||||||
os.remove("error_codes.db")
|
os.remove("error_codes.db")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user