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
150 stars 49 forks source link

help with slash rolling #201

Closed CriticalMomento closed 1 year ago

CriticalMomento commented 2 years ago

will it claim if reaction is like this? image

CriticalMomento commented 2 years ago

also how do i get slash id and slash guild id?

CriticalMomento commented 2 years ago

ok confirmed that it doesnt so can i request you to make i so it claims button hearts? 🥺

vivinano commented 2 years ago

It claims buttons on claim just not on kakera also you have to set up slash rolling options like slash id and slash guild for button snipes

Sent from my iPhone

On Aug 27, 2022, at 11:28 AM, CriticalMomento @.***> wrote:

 ok confirmed that it doesnt so can i request you to make i so it claims button hearts? 🥺

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

CriticalMomento commented 2 years ago

It claims buttons on claim just not on kakera also you have to set up slash rolling options like slash id and slash guild for button snipes Sent from my iPhone On Aug 27, 2022, at 11:28 AM, CriticalMomento @.***> wrote:  ok confirmed that it doesnt so can i request you to make i so it claims button hearts? 🥺 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

like this? image

and set prefix like this? image

CriticalMomento commented 2 years ago

hmm i get this error image

vivinano commented 2 years ago

No set prefix back to normal also make sure you have the new version of the repo some changes were made

CriticalMomento commented 2 years ago

No set prefix back to normal also make sure you have the new version of the repo some changes were made

i set the prefix back to normal which is "$". downloaded your latest repo which is mudae main image still get this

CriticalMomento commented 2 years ago

i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but image

vivinano commented 2 years ago

Slashget wasn’t getting assigned properly though discum as you see that I made a pull request with changes on the latest discum repo to fix it so I made 2 code variations I think of slashget for the code prefix and after the fix so try to print out the slashget variable and see if it is empty

Sent from my iPhone

On Aug 28, 2022, at 1:55 AM, CriticalMomento @.***> wrote:

 i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

CriticalMomento commented 2 years ago

Slashget wasn’t getting assigned properly though discum as you see that I made a pull request with changes on the latest discum repo to fix it so I made 2 code variations I think of slashget for the code prefix and after the fix so try to print out the slashget variable and see if it is empty Sent from my iPhone On Aug 28, 2022, at 1:55 AM, CriticalMomento @.***> wrote:  i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

soo i just have to wait for now?

vivinano commented 2 years ago

No It still works with button claiming just need configuration

Sent from my iPhone

On Aug 28, 2022, at 4:18 AM, CriticalMomento @.***> wrote:

 Slashget wasn’t getting assigned properly though discum as you see that I made a pull request with changes on the latest discum repo to fix it so I made 2 code variations I think of slashget for the code prefix and after the fix so try to print out the slashget variable and see if it is empty … Sent from my iPhone On Aug 28, 2022, at 1:55 AM, CriticalMomento @.***> wrote:  i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

soo i just have to wait for now?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

CriticalMomento commented 2 years ago

No It still works with button claiming just need configuration Sent from my iPhone On Aug 28, 2022, at 4:18 AM, CriticalMomento @.> wrote:  Slashget wasn’t getting assigned properly though discum as you see that I made a pull request with changes on the latest discum repo to fix it so I made 2 code variations I think of slashget for the code prefix and after the fix so try to print out the slashget variable and see if it is empty … Sent from my iPhone On Aug 28, 2022, at 1:55 AM, CriticalMomento @.> wrote:  i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented. soo i just have to wait for now? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

and what are those config that i need to do?

CriticalMomento commented 2 years ago

image welll.....it logs ppl rolling stuff but not doing the rolls or claiming

CriticalMomento commented 2 years ago

i tried everything still getting same erros might just give up using main and cope with v4

vivinano commented 2 years ago

You won't have button support I don't think 🤔 I'll try when I get home with my personal and see if there is an issue I need to fix

CriticalMomento commented 2 years ago

You won't have button support I don't think 🤔 I'll try when I get home with my personal and see if there is an issue I need to fix

🙏 🙏 🙏 🙏 🙏

CriticalMomento commented 2 years ago

@vivinano image do i need to install this i havent touched it

vivinano commented 2 years ago

image

still works for me So unsure what is going on on your end atleast

CriticalMomento commented 2 years ago

image

still works for me So unsure what is going on on your end atleast Code_wKLLv0FYTi i configered it like that guild slash is is basically server id right? and slash id is basically channel id correct?

vivinano commented 2 years ago

uh could you name it better ? all these short hand terms are confusing me.

CriticalMomento commented 2 years ago

uh could you name it better ? all these short hand terms are confusing me.

basically what i named channel 1 different server (1) is but a channel of a server 1 and channel 1 different server (2 ) is a channel of server 2

vivinano commented 2 years ago

as long as it the same match and the 1st server has slash commands enabled

CriticalMomento commented 2 years ago

as long as it the same match and the 1st server has slash commands enabled

yea it has slash enabled i think they do match i cant see any errors in my settings files so i dont even know if i am doing anything wrong

CriticalMomento commented 2 years ago

let get this correct then slash id = channel id slash guild id = server id of the server in which the channel resides in right?

vivinano commented 2 years ago

Yes I think that what it is

Sent from my iPhone

On Aug 31, 2022, at 9:53 PM, CriticalMomento @.***> wrote:

 let get this correct then slash id = channel id slash guild id = server id of the server in which the channel resides in right?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

CriticalMomento commented 2 years ago

Yes I think that what it is Sent from my iPhone On Aug 31, 2022, at 9:53 PM, CriticalMomento @.***> wrote:  let get this correct then slash id = channel id slash guild id = server id of the server in which the channel resides in right? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

yep idk what the problem is then

CriticalMomento commented 2 years ago

image well the error says it has something do with this ( your code ^ ) image gateway ^ image error ^

vivinano commented 2 years ago

image

only way you will get unbound error is that your servers do not have the slash commands enabled hence it has nothing to query and pull data from

the original way for getting "slashget" was commented out due to discum error but it was recently fixed so you could go back for the originally method instead of my workaround

image

and all sniping including button presses for claims are here

CriticalMomento commented 2 years ago

image

only way you will get unbound error is that your servers do not have the slash commands enabled hence it has nothing to query and pull data from

the original way for getting "slashget" was commented out due to discum error but it was recently fixed so you could go back for the originally method instead of my workaround

image

and all sniping including button presses for claims are here

however slash cmds are enabled.... image

CriticalMomento commented 2 years ago

@vivinano by previous workaround you mean this? image

vivinano commented 2 years ago

originally it was only s.get(wa) for example but due to the library only bringing back the 1st entry nothing happened so I had to change my code to go thru each entry manually after my pull request was approved you could go back to the way with s.get() or use the work around with the for loop

CriticalMomento commented 2 years ago

originally it was only s.get(wa) for example but due to the library only bringing back the 1st entry nothing happened so I had to change my code to go thru each entry manually after my pull request was approved you could go back to the way with s.get() or use the work around with the for loop

uhhh um i dont know python so i am totally lost on what to do

vivinano commented 2 years ago

Which are you trying to roll Wg , hg ?

CriticalMomento commented 2 years ago

Which are you trying to roll Wg , hg ?

wg or wa

vivinano commented 2 years ago

And when you type in /wg you get a whole list of option right ?

Sent from my iPhone

On Sep 2, 2022, at 6:17 AM, CriticalMomento @.***> wrote:

 Which are you trying to roll Wg , hg ?

wg

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

CriticalMomento commented 2 years ago

And when you type in /wg you get a whole list of option right ? Sent from my iPhone On Sep 2, 2022, at 6:17 AM, CriticalMomento @.***> wrote:  Which are you trying to roll Wg , hg ? wg — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

image yes

vivinano commented 2 years ago

At this point you might have to trouble shoot the issue at the code level specifically what is being slashget being set do and if it's not then trying to let me know what the issue is or trying to fix it yourself

CriticalMomento commented 2 years ago

aaa sounds like something which i can't do... oh well i will still notify you if i get it working or get another error

CriticalMomento commented 2 years ago

@vivinano btw i see ppl reacting on kakera faster than me i saw some previous threads which said to remove the .5 wait in mudae.py code and i did that and yet ppl still do it faster than me i have it on 0 btw

vivinano commented 2 years ago

Depends is the kakera on button sniping also ?

Sent from my iPhone

On Sep 8, 2022, at 12:29 PM, CriticalMomento @.***> wrote:

 @vivinano btw i see ppl reacting on kakera faster than me i saw some previous threads which said to remove the .5 wait in mudae.py code and i did that and yet ppl still do it faster than me i have it on 0 btw

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

CriticalMomento commented 2 years ago

Depends is the kakera on button sniping also ? Sent from my iPhone On Sep 8, 2022, at 12:29 PM, CriticalMomento @.***> wrote:  @vivinano btw i see ppl reacting on kakera faster than me i saw some previous threads which said to remove the .5 wait in mudae.py code and i did that and yet ppl still do it faster than me i have it on 0 btw — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

nah its emoji reacting like this image

HentaiRyuu commented 2 years ago

image

only way you will get unbound error is that your servers do not have the slash commands enabled hence it has nothing to query and pull data from

the original way for getting "slashget" was commented out due to discum error but it was recently fixed so you could go back for the originally method instead of my workaround

image

and all sniping including button presses for claims are here

if i use slashget = s.get([roll_prefix]), i get this error image

if i use

for sli in range(len(s.commands.get("options"))):
    if s.commands.get("options")[sli].get("name") == roll_prefix:
        slashget = s.commands.get("options")[sli]

this happen because nothing is assign to slashget image

ps. i updated discum to 1.4.1 (lasted one)

i think i know problem now, it because slashCmds = resp.parsed.auto()['application_commands'] only get first 100 slash cmd. so if my server have other bot (many bots) it will break. then what should i do to get more than first 100 slash cmd?

Edit: ok, i fix it. just change slashCmds = resp.parsed.auto()['application_commands'] to slashCmds = bot.getSlashCommands("432610292342587392").json() and use slashget = s.get([roll_prefix])

Edit2: in some server where it have too many bots, i have this error, any idea for fix?

Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x0000018983A76FC0>>
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Python\Python310\site-packages\discum\gateway\gateway.py", line 299, in _response_loop
    func(resp)
  File "D:\ETC\MudaeAuto\Acc0\Bot2v4.py", line 916, in on_message
    bot.gateway.request.searchSlashCommands(str(ghids[0]), limit=100, command_ids=[])
IndexError: list index out of range
vivinano commented 2 years ago

You could see if application commands takes another param and limit the search parse

Sent from my iPhone

On Sep 13, 2022, at 6:28 AM, HentaiRyuu @.***> wrote:



only way you will get unbound error is that your servers do not have the slash commands enabled hence it has nothing to query and pull data from

the original way for getting "slashget" was commented out due to discum error but it was recently fixed so you could go back for the originally method instead of my workaround

and all sniping including button presses for claims are here

if i use slashget = s.get([roll_prefix]), i get this error

if i use

for sli in range(len(s.commands.get("options"))): if s.commands.get("options")[sli].get("name") == roll_prefix: slashget = s.commands.get("options")[sli] this happen because nothing is assign to slashget

ps. i updated discum to 1.4.1 (lasted one)

i think i know problem now, it because slashCmds = resp.parsed.auto()['application_commands'] only get first 100 slash cmd. so if my server have other bot (many bots) it will break. then what should i do to get more than first 100 slash cmd?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

vivinano commented 2 years ago

They are the slash variables as it’s a whole discord interaction instead of just doing a reaction But you don’t have to set slash rolling to true but the variables must be set

Sent from my iPhone

On Aug 29, 2022, at 6:26 AM, CriticalMomento @.***> wrote:

 No It still works with button claiming just need configuration … Sent from my iPhone On Aug 28, 2022, at 4:18 AM, CriticalMomento @.> wrote:  Slashget wasn’t getting assigned properly though discum as you see that I made a pull request with changes on the latest discum repo to fix it so I made 2 code variations I think of slashget for the code prefix and after the fix so try to print out the slashget variable and see if it is empty … Sent from my iPhone On Aug 28, 2022, at 1:55 AM, CriticalMomento @.> wrote:  i checked some closed tickets and saw 1 guy managed to solve it by installing discum through git i tried it but — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented. soo i just have to wait for now? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

and what are those config that i need to do?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

vivinano commented 2 years ago

Slash rolling doesn’t have the be enabled but also it could be uh the discum needed to be updated

I put a pull request that was recently accepted by the discum dev so you will have to update that gateway.py

Sent from my iPhone

On Aug 31, 2022, at 9:37 PM, CriticalMomento @.***> wrote:

 as long as it the same match and the 1st server has slash commands enabled

yea it has slash enabled i think they do match i cant see any errors in my settings files so i dont even know if i am doing anything wrong

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.