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

Suggestion #109

Closed BlamoThePollo closed 3 years ago

BlamoThePollo commented 3 years ago

So I think it would be a cool implementation if there was a way to check which user is running the mudae command and if it is a certain user, your bot doesn't attempt to claim from them.. maybe this is too specific but I think it would be useful. If you don't want to implement this, would you mind giving me the syntax for this check (if possible) ?

vivinano commented 3 years ago

Possible yes but not as easy as you might think so you have to tie the message id of 2 separate entities which I’ve saved in message buff

Basically you have to tie let’s say user id or X person and match it with the message id of the mudae message so basically making a “dictionary” of Message id : user id and this will be technically be assumption based where the exact next or previous message in the buffer is a mudae message

TLDR it’s complicated enough that an average user would not need it and would also add more processing as now you have to Match user id of $wg to message id from mudae with embeds(complete separate) > make a discord search message call > check user id of search message if any > repeat for every user id in list of user ids

Vs current

Snipe appears > check if self or other > wait > snipe

Sent from my iPhone

On Oct 3, 2021, at 4:42 PM, BlamoThePollo @.***> wrote:

 So I think it would be a cool implementation if there was a way to check which user is running the mudae command and if it is a certain user, your bot doesn't attempt to claim from them.. maybe this is too specific but I think it would be useful. If you don't want to implement this, would you mind giving me the syntax for this check (if possible) ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

BlamoThePollo commented 3 years ago

Oh wow that does seem a bit more complicated than how id imagine.. Thanks for the feedback though!