Exemplo n.º 1
0
async def hmm(event):
    if Config.JTU_ENABLE:
        starky = await check_if_subbed(Config.CHANNEL_USERNAME, event,
                                       warnerstarkbot)
        if starky is False:
            await event.reply("**🤣CHANNEL JOIN KAR PHIR START KAR DUBARA🤣**",
                              buttons=[[
                                  custom.Button.url("Join Channel",
                                                    Config.CHANNEL_URL)
                              ]])
            return
    hmmw = await event.reply("**Generating Account...Stay Tuned.**")
    if warner.is_user_in_db(int(event.sender_id)):
        hmm = warner.get_user_info(int(event.sender_id))
        if warner.is_user_in_db(int(
                event.sender_id)) >= Config.GEN_LIMIT_PERDAY:
            await hmmw.edit(
                f"**Your Daily Limit is exhausted, Kindly Contact the admins to increase ur limit\n\nBy The Way Daily Limit is {Config.GEN_LIMIT_PERDAY} accounts per day**",
                buttons=[[
                    custom.Button.url("Join Channel", Config.CHANNEL_URL)
                ]])
            return
        warner.update_user_usage(int(event.sender_id), int(1))
    else:

        warner.add_new_user(int(event.sender_id), int(1))
        print("New User : "******":")
    await hmmw.edit(
        f"<b><u>{Config.ACCOUNT_GEN_NAME} 🤩Account Generated.🤩</u></b> \n<b>Email :</b> <code>{email}</code> \n<b>Password :</b><code>{password}</code> \n<b>You Can Check Your Limit or Info By /about<b> \n<b>Generated By @{username}</b>",
        parse_mode="HTML")
Exemplo n.º 2
0
async def hmm(event):
    if Config.JTU_ENABLE:
        starky = await check_if_subbed(Config.CHANNEL_USERNAME, event,
                                       warnerstarkbot)
        if starky is False:
            await event.reply(
                "**I am Sorry To Say That, To Access Me You Have To Be The Member Of Our Channel To Use This Bot..!**",
                buttons=[[
                    custom.Button.url("Join Channel", Config.CHANNEL_URL)
                ]])
            return
    hmmw = await event.reply("**انتظر بعد 24 ساعه.**")
    if warner.is_user_in_db(int(event.sender_id)):
        hmm = warner.get_user_info(int(event.sender_id))
        if warner.is_user_in_db(int(
                event.sender_id)) >= Config.GEN_LIMIT_PERDAY:
            await hmmw.edit(
                f"**Your Daily Limit is exhausted,By The Way Daily Limit is {Config.GEN_LIMIT_PERDAY} accounts per day**",
                buttons=[[
                    custom.Button.url("Join Channel", Config.CHANNEL_URL)
                ]])
            return
        warner.update_user_usage(int(event.sender_id), int(1))
    else:

        warner.add_new_user(int(event.sender_id), int(1))
        print("New User : "******":")
    await hmmw.edit(
        f"<b><u>{Config.ACCOUNT_GEN_NAME} Account Generated.</u></b> \n<b>Email :</b> <code>{email}</code> \n<b>Password :</b><code>{password}</code> \n<b>You Can Check Your Limit or Info By /about<b> \n<b>Generated By @{username}</b>",
        parse_mode="HTML")