~robin_jadoul/organizers-bot

ebad5e66cd46dec213d40fbc5d0a284a5fb03503 — Victor 10 months ago 8c03889
Enable ctfnote registration even without active ctf
1 files changed, 6 insertions(+), 2 deletions(-)

M organizers_bot/ctfnote.py
M organizers_bot/ctfnote.py => organizers_bot/ctfnote.py +6 -2
@@ 616,8 616,12 @@ async def register_themselves(ctx: discord_slash.SlashContext, password: str = N
        await ctx.send("CTFNote integration is currently not in use. Ignoring your request.", hidden=True)
        return

    current_ctf = await refresh_ctf(ctx) 
    if current_ctf is None: return
    try:
        await login()
    except Exception as e:
        await ctx.send("Connection failed.", hidden=True)
        print(e)
        return

    all_users = await ctfnote.getUsers()
    sender = ctx.author