vivinano / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
143 stars 47 forks source link

Suggestions #206

Closed pingu6 closed 1 year ago

pingu6 commented 1 year ago
vivinano commented 1 year ago

What would be the purpose of using all rolls from your kakeraloot ? If there a purpose I'll consider the addition

Random time between rolls would make it more suspicious that you are a bot which defeats the goal currently the bot wait for a quiet moment in the channel before making all rolls If you were to add a random wait time for a user with 50 rolls or a bigger number than it will annoy other users that you are taking way to long etc etc

I don't know that the divorce reclaim function existed would you care to elaborate on the use of this function ?

pingu6 commented 1 year ago
vivinano commented 1 year ago

I can technically tell you that the changes you want are in the realm of possibility but these are more tailored to your personal needs and wants

The code is technically available if you need to change or amend the code to fit your needs

And you can do more specialized testing in your server to fine tune the program to you as I don't have access to any disposable kakera I want to use on kakeraloots for testing

pingu6 commented 1 year ago

random sleep

                bot.sendMessage(tides,roll_cmd)
                time_to_sleep = random.uniform(2.5, 3.2)
                time.sleep(time_to_sleep)

loop $us 20

            if rolls_left == 0:
                # Ran out of rolls
                bot.sendMessage(tides,"$us 20")
                waifuwait = False
                time.sleep(.5)
            if varwait != None and varwait['content'].startswith(f"**{bot.gateway.session.user['username']}") and "$ku" not in varwait['content']:
                # We over-rolled.
                bot.sendMessage(tides,"$us 20")
                waifuwait = False
                waifu_roll(tide,slashed,slashguild)

before i add random sleep: image

when i add random sleep: image

vivinano commented 1 year ago

Rolls are handled by a different thread so you have to make changes to that thread and then claiming is handled by the main thread which you would have to set to never set the wait variable to true that is what you would want to do

pingu6 commented 1 year ago

ty and how can i do this + divorce only if char name in divorce_list

                    # Successful claim, mark waifu claim window as used
                    waifu_wall[rchannelid] = next_claim(rchannelid)[0]
                    bot.sendMessage(divorce_channel,"$divorce "+ divorce_name)
                    time.sleep(0.5)
                    bot.sendMessage(divorce_channel,"y")
                    print(divorce_name," deceived")
vivinano commented 1 year ago

I would do a conditional to check if the name is in the "divorce_list" which would claim the char like usual and then afterwards would be a lot of fun verification stuff so if this was a feature after a successful claim That I would check for the message afterwards if the message so happens to be displayed then I would send the divorce string of said "Waifu" and then do another verification for the confirmation string