MudaRemote icon indicating copy to clipboard operation
MudaRemote copied to clipboard

Could not find recent $tu reponse

Open Daniel2662662 opened this issue 8 months ago • 23 comments

This is the most updated code as of testing on 4/24/2025. Ran the command and got the error of not being able to find recent $tu response. Screenshot provided. $tu was made and the bot responded in the channel I was running bot on too.

Image

Daniel2662662 avatar Apr 24 '25 07:04 Daniel2662662

I updated the code, can you try again with the new code?

misutesu-desu avatar Apr 24 '25 11:04 misutesu-desu

Image

Daniel2662662 avatar Apr 24 '25 17:04 Daniel2662662

having the same problem it did roll in the first but its always like this

deathfx6-a avatar Apr 24 '25 18:04 deathfx6-a

Hi i have the same problem :/ I just download but that doesnt work

indy1323 avatar Apr 25 '25 07:04 indy1323

the code works normally for me tu can you send me your tu output?

misutesu-desu avatar Apr 25 '25 11:04 misutesu-desu

Image note: it worked the first time , i tried another tokens and it works on the first rolls but the error come back every single time the i tried running various versions of python /12/13/10/11/9/8 did not work either i also tried to solve it with ChatGPT but is dose not seem to help tried various types of $tu and arrange it alot but it also did not help tried to delete everything and it came back after the first roll i dont get it at that point

deathfx6-a avatar Apr 25 '25 12:04 deathfx6-a

if you want to see the problem i can share my screen to you in discord [f0.ol]

deathfx6-a avatar Apr 25 '25 12:04 deathfx6-a

Friends, try with the latest code and if there is a problem, let me know with the logs and tu output.

misutesu-desu avatar Apr 26 '25 18:04 misutesu-desu

Still having the same issues.

Image

Image

Daniel2662662 avatar Apr 26 '25 22:04 Daniel2662662

@Daniel2662662 @deathfx6-a @indy1323 please use the latest code and try again

misutesu-desu avatar May 27 '25 14:05 misutesu-desu

Same issue here's my $tu and the bot response

Image

Image

DOMZHAN avatar May 29 '25 03:05 DOMZHAN

Same issue here.

uwuSym avatar Jun 09 '25 16:06 uwuSym

Same issue here.

@uwuSym try again

misutesu-desu avatar Jun 09 '25 18:06 misutesu-desu

@misutesu-desu seems to be working just fine now 👍

uwuSym avatar Jun 10 '25 02:06 uwuSym

Facing the same problem, but with the PT version of Mudae

Image

victormagatsukami avatar Jun 10 '25 20:06 victormagatsukami

@VictorMagatsukami @DOMZHAN @Daniel2662662 @deathfx6-a @indy1323

just to be sure, does your problem persist in the latest version of the code?

misutesu-desu avatar Jun 17 '25 06:06 misutesu-desu

no everything’s good

On Tue, Jun 17, 2025 at 02:45 Mystes @.***> wrote:

misutesu-desu left a comment (misutesu-desu/MudaRemote#25) https://github.com/misutesu-desu/MudaRemote/issues/25#issuecomment-2979138670

@VictorMagatsukami https://github.com/VictorMagatsukami @DOMZHAN https://github.com/DOMZHAN @Daniel2662662 https://github.com/Daniel2662662 @deathfx6-a https://github.com/deathfx6-a @indy1323 https://github.com/indy1323

just to be sure, does your problem persist in the latest version of the code?

— Reply to this email directly, view it on GitHub https://github.com/misutesu-desu/MudaRemote/issues/25#issuecomment-2979138670, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQ3SYFQ3SIQM6JC7UHABJ4L3D62PNAVCNFSM6AAAAAB3YGGHBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZZGEZTQNRXGA . You are receiving this because you were mentioned.Message ID: @.***>

DOMZHAN avatar Jun 17 '25 12:06 DOMZHAN

I just updated but the problem persists

Image Image

victormagatsukami avatar Jun 17 '25 16:06 victormagatsukami

I don't know if it helps, but I use an older (still functional) version of the bot that I modified to work with the PT version, these are the modifications I made so that it could find the message

                    if "você __pode__ se" in content_lower:
                        client.claim_right_available = True
                        match_claim = re.search(r"a próxima reinicialização é em \*\*(\d+h)?\s*(\d+)\*\* min", content_lower)
                        if match_claim:
                            hours = int(match_claim.group(1)[:-1]) if match_claim.group(1) else 0
                            minutes = int(match_claim.group(2))
                            remaining_seconds = (hours * 60 + minutes) * 60
                            if remaining_seconds <= 3600:
                                if client.snipe_mode and client.snipe_ignore_min_kakera_reset:
                                    log_function(f"[{client.muda_name}] Claim right available (<1h) and snipe override active; ignoring min_kakera limit.", preset_name, "INFO")
                                    await check_rolls_left_tu(client, channel, mudae_prefix, ignore_limit=True)
                                else:
                                    log_function(f"[{client.muda_name}] Claim right available (<1h) but snipe override inactive; applying claim limit.", preset_name, "INFO")
                                    await check_rolls_left_tu(client, channel, mudae_prefix, ignore_limit=False)
                            else:
                                log_function(f"[{client.muda_name}] Claim right available (>1h remaining); applying claim limit.", preset_name, "INFO")
                                await check_rolls_left_tu(client, channel, mudae_prefix, ignore_limit=False)
                            return
                        else:
                            raise ValueError("Claim time information could not be parsed from $tu output.")
                    elif "calma aí, falta um tempo antes que você possa se casar novamente" in content_lower:
                        client.claim_right_available = False
                        match_claim_wait = re.search(r"calma aí, falta um tempo antes que você possa se casar novamente \*\*(\d+h)?\s*(\d+)\*\* min", content_lower)
                        if match_claim_wait:
                            hours = int(match_claim_wait.group(1)[:-1]) if match_claim_wait.group(1) else 0
                            minutes = int(match_claim_wait.group(2))
                            total_seconds = (hours * 60 + minutes) * 60

and

        if tu_message:
            content_lower = tu_message.content.lower()
            # Updated regex to handle optional text like "(+++X** $mk)" before "left"
            match_rolls = re.search("você tem \*\*(\d+)\*\* rolls?(?: \(.+?\))? restantes", content_lower)

            if match_rolls:
                rolls_left = int(match_rolls.group(1))
                reset_match = re.search(r"a próxima reinicialização é em \*\*(\d+)\*\* min", content_lower)
                reset_time = int(reset_match.group(1)) if reset_match else 0 

victormagatsukami avatar Jun 17 '25 17:06 victormagatsukami

@victormagatsukami Are you still able to use the bot normally? I also use PT-BR, but I'm still trying to get it to start up.

BellaDona007 avatar Aug 11 '25 07:08 BellaDona007

does not recognize $TU, and I would also like to know how I can choose which kakera I want: yellow, orange, red, rainbow. Also, how do I disable it from using the commands when it starts up: $limroul 1 1 1 1 $dk $daily

BellaDona007 avatar Aug 11 '25 07:08 BellaDona007

does not recognize $TU, and I would also like to know how I can choose which kakera I want: yellow, orange, red, rainbow. Also, how do I disable it from using the commands when it starts up: $limroul 1 1 1 1 $dk $daily

Please share a screenshot of your $tu command's output so I can fix that issue.

You can edit this in the code. Go to line ~46 and modify the KAKERA_EMOJIS list. Just remove the ones you don't want to claim.

# Original (line ~46)
KAKERA_EMOJIS = ['kakeraY', 'kakeraO', 'kakeraR', 'kakeraW', 'kakeraL', 'kakeraP']

# Example:
KAKERA_EMOJIS = ['kakeraY', 'kakeraO', 'kakeraR']

Go to the on_ready function around line ~209. Add a # at the beginning of the command lines to disable them.

# Find this section starting at line ~209
await channel.send(f"{client.mudae_prefix}limroul 1 1 1 1"); await asyncio.sleep(1.0)
await channel.send(f"{client.mudae_prefix}dk"); await asyncio.sleep(1.0)
await channel.send(f"{client.mudae_prefix}daily"); await asyncio.sleep(1.0)

# Change it to this:
# await channel.send(f"{client.mudae_prefix}limroul 1 1 1 1"); await asyncio.sleep(1.0)
# await channel.send(f"{client.mudae_prefix}dk"); await asyncio.sleep(1.0)
# await channel.send(f"{client.mudae_prefix}daily"); await asyncio.sleep(1.0)

Hope this helps

misutesu-desu avatar Aug 15 '25 15:08 misutesu-desu