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

How to use? #173

Closed BeyBAN closed 2 years ago

BeyBAN commented 2 years ago

Since I have nothing to do with the software, I did not understand how to use it.

I would be very grateful if you could teach me.

I have installed the python version 3.9.0 required for Discum. I downloaded Discum 1.4.0 and M_Auto_v4 files I have no idea what to do with the rest...

There may be typos as I am using the translation.

BeyBAN commented 2 years ago

+) I made the necessary adjustments to the Settings_Mudae.json file

BeyBAN commented 2 years ago

image

Doesn't work even though I made "settings"

+ error applies to subheadings image

vivinano commented 2 years ago

Unsure what you mean ?

BeyBAN commented 2 years ago

I need to make sure it works in subheadings. Is the problem caused by me?

vivinano commented 2 years ago

It should work in any channel

BeyBAN commented 2 years ago

What could be causing the problem? i think i tried all the ways If you don't mind, can you try

vivinano commented 2 years ago

So if you updated settings_mudae then you also have to have a channel data instance

BeyBAN commented 2 years ago

image

There is if that's what you mean by channel data. I can't run it on sub-title channels only

BeyBAN commented 2 years ago

I copy it because it has the same setting as the normal channel, but it still doesn't work

vivinano commented 2 years ago

Add the necessary bold symbols where they belong so that it can be parsed correctly

BeyBAN commented 2 years ago

image Is it true that I opened a new document and wrote it this way? Excuse my stupidity if it's wrong I really don't understand

image it keeps giving this error

vivinano commented 2 years ago

Seems correct , is it existing error code or a new one ? And it seems like your channel doesn't exist to the user or you misconfigured something

BeyBAN commented 2 years ago

current error code. I have no idea what's wrong... why does it give an error in sub-titles when working on normal channels

Let me explain to you what I've done so that we can conclude the matter. First I downloaded the file and opened it with python. Then I installed discum to fix the errors and made the necessary adjustments for Settings_Mudae.json as follows:

image

+ in addition, there is a 3 second delay between detecting and receiving kakera, why is this? image

going back to what i did, i ran the bot and found it working fine on normal channels (applies to rolls and pokerolls) image

Is there something missing in the Python content?

vivinano commented 2 years ago

There are delays because in a perfect world therewould be none but you are still sending a command to an API so there various factors that come into play like network speed or network traffic

Ping as you will in terms of games

BeyBAN commented 2 years ago

that's not our main problem If I'm the only one with the problem, can you tell me where I went wrong? I need to be able to fully use the bot by summer

vivinano commented 2 years ago

No one is reporting any issue with the bot not working

BeyBAN commented 2 years ago

then what exactly am i experiencing? maybe users haven't discovered how to play mudae in sub-title yet.

I will ask you to try. if it works, in the settings you made

BeyBAN commented 2 years ago

If my internet wasn't limited, I would like to take a video and explain the error fully, but unfortunately I can't.

HentaiRyuu commented 2 years ago

sub-title? you mean thread? but why would you use thread in the first place? you say it works on normal channel, just use normal channel then.

maybe users haven't discovered how to play mudae in sub-title yet.

i didnt see any public server that use thread to play this yet

i did try to use it in thread, it seem to working fine but it have some problem with load setting so i need to trigger $settings before it can start roll and doing stuff. ps. i have created setting file but i still need to do $settings

TL;DR if you want to use in thread you need to modify script first

No one is reporting any issue with the bot not working

it's working fine just slash rolling is broken from discum update? #166 so i just dont use slash rolling for time being

vivinano commented 2 years ago

Hmm so threads are working I thought I had to make actually code edits

But yeah currently discum broke with slash rolling I made a fix on my end to the discum files but that a different monster and technically outside the scope of my bot but

If you need slash rolling to work that might be an option

BeyBAN commented 2 years ago

@HentaiRyuu Bro, because I use translation, there may be word mistakes, I said it at first. i mean sub channels image

What's the point if I can't use it on the other three channels?

BeyBAN commented 2 years ago

i know i'm wasting your time i'm sorry but i need to figure this out

HentaiRyuu commented 2 years ago

in case you don't know, that sub channel you talking about is called "thread" on discord image

Hmm so threads are working I thought I had to make actually code edits

you need to edit for it to works without need you to do $settings everytime you run. but you can just ignore this if it feels troublesome to fix

HentaiRyuu commented 2 years ago

i did edited only this part to made it won't remove channel and try to load settings again.

if int(channelid) not in channel_settings:
    logger.error(f"Could not find settings for {channelid}, please trigger the '$settings' command in the server and run the bot again.")
    logger.info(f"Try to load settings for {channelid}")
    gs_settings = get_server_settings(guildid,channelid)
    if gs_settings:
        cp_settings = parse_settings_message(gs_settings)
        channel_settings[int(channelid)] = cp_settings
        logger.info(f"Loaded settings for {channelid}")
    else:
        mhids.remove(int(channelid))
        logger.error(f"Could not find settings for {channelid}, Removed channel.")
    return
c_settings = channel_settings[int(channelid)]

when you start run it, you need to send any message in that thread to let it load settings (idk why i made it this way)

image image

as you can see, it's working

vivinano commented 2 years ago

I could add sending a randomize message to a thread or channel if it's what needed but maybe as like an option

HentaiRyuu commented 2 years ago

I could add sending a randomize message to a thread or channel if it's what needed but maybe as like an option

that would be nice, but i don't know where to put that send msg maybe i should put it after done add settings (for gid, guild in guilds.items(): after this for?)

vivinano commented 2 years ago

It would depend on when you need that message to trigger