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

Slash rolling not working [Fixed] #151

Closed Qearlax closed 2 years ago

Qearlax commented 2 years ago

Hello I am using the bot it helped me so many times so I thank you a lot of making this but I didn't managed to get slash rolling working I am putting the channel ID as slash_idand Server ID as slash_guild_id but it just not rolling and on the console it shows me blank screen but if someone rolls a char that I want it snipes it but just not rolling with slash commands btw normal rolling works fine but I want that extra %10 and %5 chances.

vivinano commented 2 years ago

There was a recent release to fix slash rolling if you didn't download the latest changes

As for which is which I think my read me lists them and what goes in which

Qearlax commented 2 years ago

I already read everything but it just not working for some reason I am trying on different servers too but sadly not working and I downloaded most newest version which you published 15 days ago

vivinano commented 2 years ago

Alright so guild id are the server that it is in and it must have a match

So example

If server 1 it must match with server 1 Channel 1

[sever1 , sever1 , server 2]

[sever 1 channel 1 , server 1 channel 2 , server 2 channel 1]

Qearlax commented 2 years ago

I am sorry but I didn't understand I don't know how these things are working so I need your help again 😕 So to put correct ids should I do like this?

   "channel_ids":[
      111111111111111111 > The channel we playing mudae
   ],
   "slash_ids":[
      111111111111111111 > The channel that i want to use slash rolling
   ],
   "slash_guild_ids":[
      222222222222222222 > The server that my bot is in
   ],

And if i understand correctly im sorry if i didn't so slashid+channelid must match with each other and they need to match with guildid right but the problem is even if they match still bot is not rolling with slash 😢

vivinano commented 2 years ago

The guild id must be the id of the server the channel resides in

Also side note that mudae must also be set to take slash interactions ie I have slash commands turned off on my server so slash commands will not work

Qearlax commented 2 years ago

Slash commands are enabled but still i just can't do it please show me a way that i can understand cuz im gonna lose my mind while trying to make this to work :(

Qearlax commented 2 years ago
   "channel_ids":[
      857565456465456415
   ],
   "slash_ids":[
      857565456465456415
   ],
   "slash_guild_ids":[
      901654564654564154
   ],

I created a test server and these are the ids what am i doing wrong?

Qearlax commented 2 years ago

I also found a weird issue if i put nothing on "channel_ids":[1], like this but if i put the actual channel id on "slash_ids":[857565456465456415], it says could not found this channel ¯_(ツ)_/¯ imma lose my mind and i'm really sorry if i look like a dumb rn

vivinano commented 2 years ago

There should also be a safety code to not slash roll and normal roll at the same time

Qearlax commented 2 years ago

Okay i solved the problem by doing this i installed git bash and installed discum with that way and when i tried it worked lol

vivinano commented 2 years ago

ah yes discum had some changes with their code which enabled slash rolling again.

currently their code for slash get it broken which it what my change 23 days ago was for to implement the code again in my own way to allow it to work

Qearlax commented 2 years ago

Okay everything is working right now but now i want to use custom emoji and i didn't found the line for (custom emoji only) i mean there is nothing the uncomment there is something on 658 but idk what is that for

kirk33120 commented 2 years ago

I met with this problem Screenshot_20220322-003751~2

vivinano commented 2 years ago

if slashget is not obtaining anythign which is why your getting the error

kirk33120 commented 2 years ago

idk either everything is there, I tried it on my 2 server works perfectly well but except this server which is not mine has to do with perms?

vivinano commented 2 years ago

The server might not have permissions set to enable slash commands try to do slash commands normally

Sent from my iPhone

On Mar 22, 2022, at 10:31 AM, kirk33120 @.***> wrote:

 idk either everything is there, I tried it on my 2 server works perfectly well but except this server which is not mine has to do with perms?

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

kirk33120 commented 2 years ago

it has slash perms

vivinano commented 2 years ago

have you updated both discum and my repo ?

kirk33120 commented 2 years ago

slr oh! maybe thats the problem

vivinano commented 2 years ago

Did you update both the discum repo and mine ?

Sent from my iPhone

On Mar 22, 2022, at 1:11 PM, kirk33120 @.***> wrote:

 tried to do it normally it works normally

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