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
142 stars 46 forks source link

fix parsing the wrong setting #241

Closed Veirt closed 1 year ago

Veirt commented 1 year ago
// settings_p value
[
    "**$** ($prefix)", // 0
    "**en** ($lang)", // 1
    "every **180** min. ($setclaim)", // 2
    "xx:**52** ($setinterval)", // 3
    "by +**0** min. ($shifthour)", // 4
    "**10** ($setrolls)", // 5
    "**30** sec. ($settimer)", // 6
    "**2** ($setrare)", // 7
    "**1** ($gamemode)", // 8
    "**1** ($channelinstance)", // 9
    "enabled ($toggleslash)", // 10
    "enabled ($toggleclaimrank/$togglelikerank)", // 11
    "claims only ($togglerolls)", // 12
    "enabled ($togglehentai)", // 13
    "enabled ($toggledisturbing)", // 14
    "enabled ($togglechildtag)", // 15
    "0 ($togglesnipe)", // 16
    "0 ($togglekakerasnipe)", // 17
    "**8100** ($haremlimit)",
    "****for all your rolls**** ($togglereact)",
    "no ($claimreact)",
    "no ($kakerareact switchset)",
    "enabled ($togglekakeratrade)",
    "claim and like ranks (and number of claimed characters) ($togglekakeraclaim/$togglekakeralike)",
    "enabled ($togglekakerarolls)",
    "enabled ($togglewishprotect)"
]

Fix #237. Pretty sure the error happens because of the new settings. (togglechildtag) 2023-05-29-1685367320_grim

In the new settings, for the settings_p, the claim_snipe and kak_snipe index become 16 and 17 respectively.