Compare commits

..

No commits in common. "b78b029855d5aaa43ce20cad7911cbbee2fbc6cf" and "aa6a4728ba6cd598b237c1d58b99ca36a717f852" have entirely different histories.

View file

@ -76,25 +76,25 @@ def main(args):
steam_id = SteamID(steamid)
except:
await ctx.send(f"You failed to give a valid SteamID as it seems, please head to <https://steamid.xyz/> and check.", ephemeral=True)
logger.debug(f"User {user.username} ({user.id}) has give a invalid SteamID. Could not convert! {steamid}")
logger.debug(f"User ({user.id}) has give a invalid SteamID. Could not convert!")
return
if steam_id.isValid() == False:
await ctx.send(f"You failed to give a valid SteamID as it seems, please head to <https://steamid.xyz/> and check.", ephemeral=True)
logger.debug(f"User {user.username} ({user.id}) has given a invalid SteamID! Value: {steamid}")
logger.debug(f"User ({user.id}) has given a invalid SteamID!")
return
try:
database.create_reserved_slot(mysql, user, steam_id.steam2(1))
await ctx.send(f"You just claimed a reserved slot for: `{steam_id.steam2(1)}`!")
logger.debug(f"{user.id} with SteamID: {steam_id.steam2(1)} has just claimed a reserved slot.")
logger.debug(f"{steam_id.steam2(1)} has just claimed a reserved slot.")
except Exception as err:
if str(err) != "Duplicate entrys":
await ctx.send(f"Something failed with the database, please try again later.", ephemeral=True)
logger.warning(f"Error while trying to access database.", err)
return
await ctx.send(f"You have already claimed a reserved slot!", ephemeral=True)
logger.debug(f"{steam_id.steam2(1)} or User {user.username} ({user.id}) is already in the database.")
logger.debug(f"{steam_id.steam2(1)} or {user.id} is already in the database.")
bot.start()