-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claiming the First Character and more issues #259
Comments
If it is helpful, these are the server settings: `🛠️ Server Settings 🛠️ · Prefix: $ ($prefix) · Ranking: enabled ($toggleclaimrank/$togglelikerank) · Kakera trading: enabled ($togglekakeratrade) |
It cause you have series list searching for a space so it’s snipping via the space in all series Sent from my iPhoneOn Aug 11, 2023, at 2:30 PM, Sergio Larios ***@***.***> wrote:
If it is helpful, these are the server settings:
`🛠️ Server Settings 🛠️
(Server not premium)
· Prefix: $ ($prefix)
· Lang: en ($lang)
· Claim reset: every 180 min. ($setclaim)
· Exact minute of the reset: xx:48 ($setinterval)
· Reset shifted: by +0 min. ($shifthour)
· Rolls per hour: 10 ($setrolls)
· Time before the claim reaction expires: 45 sec. ($settimer)
· Spawn rarity multiplicator for already claimed characters: 1 ($setrare)
· % kakera bonus: +0 ($setkakerabonus)
· Game mode: 1 ($gamemode)
· This channel instance: 1 ($channelinstance)
· Slash commands: enabled ($toggleslash)
· Ranking: enabled ($toggleclaimrank/$togglelikerank)
· Ranks displayed during rolls: disabled ($togglerolls)
· Hentai series: enabled ($togglehentai)
· Disturbing imagery series: enabled ($toggledisturbing)
· Child characters: enabled ($togglechildtag)
· Rolls sniping: 0 ($togglesnipe)
· Kakera sniping: 0 ($togglekakerasnipe)
· Limit of characters per harem: 8100 ($haremlimit)
· Reacts: for public wishes only ($togglereact)
· Custom reactions: no ($claimreact)
· Kakera reactions more recognizable: no ($kakerareact switchset)
· Kakera trading: enabled ($togglekakeratrade)
· Kakera calculation: claim and like ranks (and number of claimed characters) ($togglekakeraclaim/$togglekakeralike)
· Kakera value displayed during rolls: enabled ($togglekakerarolls)
· $kakeraloot wishprotect: enabled ($togglewishprotect)`
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
So I would have to add the series of the characters I want to snipe to "series_list":[ |
Each is a seperate check but leaving series blank makes it look for spaces Sent from my iPhoneOn Aug 11, 2023, at 3:11 PM, Sergio Larios ***@***.***> wrote:
So I would have to add the series of the characters I want to snipe to series_list? And then it would search for the characters from namelist on series_list and snipe them, is that right? Something like this:
"series_list":[ "DARLING in the FRANXX", "Fate/Grand Order", "JoJo", "Kanojo, Okarishimasu", "Kono Subarashii Sekai ni Shukufuku wo!", "One Piece", "One Punch Man", "Overlord", "Re:Zero kara Hajimeru Isekai Seikatsu", "Shingeki no Kyojin", "SPY×FAMILY" ], "namelist":[ "Yor Forger", "Johnny Joestar", "Diego Brando from Another Universe", "Tusk","Jotaro Kujo", "Ai Hoshino", "Mai Sakurajima", "Zero Two", "Rem", "Ram", "Megumin", "Nezuko Kamado", "Nezuko Kamado", "Power", "Albedo", "Nami", "Nino Nakano", "2B", "Fubuki", "Dio Brando", "Hatsune Miku", "Power", "Albedo", "Miku Nakano", "Hange Zoë", "Chika Fujiwara", "Kaguya Shinomiya", "Ai Hayasaka", "Raphtalia", "Eren Jaeger", "Naruto Uzumaki", "Ichika Nakano" ]
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I see, so, how could I make it so it only claims the characters from |
Why does kakera claim not work? |
I'm not very sure, mine does not work either and I don't want to mess the code up, I have only uncommented a few lines for the claim to work |
can you send your settings? |
Do you mean the server settings or the mudaeAutoBot.py file? |
MudaeAutoBot |
` -- coding: utf-8 --import discum class CacheDict(OrderedDict):
msg_buf = CacheDict(max=50) jsonf = open("Settings_Mudae.json") bot = discum.Client(token=settings["token"],log={"console":False, "file":False}) with open("cmds.txt","r") as f: series_list = settings["series_list"] ready = bot.gateway.READY mention_finder = re.compile(r'<@(?:!)?(\d+)>') kak_finder = re.compile(r'**??([0-9]+)**<:kakera:469835869059153940>') KakeraVari = [kakerav.lower() for kakerav in settings["emoji_list"]] #Last min Claims kakera_wall = {} #logging settings def get_kak(text): def get_wait(text): def get_pwait(text): _resp = dict()
def mudae_warning(tide,StartwithUser=True): def get_server_settings(guild_id,channel_id):
def parse_settings_message(message):
def get_snipe_time(channel,rolled,message):
def next_claim(channel):
def next_reset(channel): def poke_roll(tide): def daily_roll(tide): def waifu_roll(tide,slashed,slashguild):
def snipe(recv_time,snipe_delay): def snipe_intent(messagechunk,mreacter,buttonspres): def is_rolled_char(m): @bot.gateway.command
def empty(*args,**kwargs): #bot.sendMessage = empty bot.gateway.run(auto_reconnect=True)` |
To resolve the first claiming I put some strange characters on series_list then it stop claiming random characters. |
Thank you, seems that putting a non-existing series or characters that it does not recognize solves the claiming issue. |
Nope, we're all on the same page xD |
The code as it the end of the on_message if you guys wanna figure it out Sent from my iPhoneOn Aug 11, 2023, at 6:29 PM, JuliaYuki ***@***.***> wrote:
Nope, we're all on the same page xD
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I thinking maybe the naming convention of buttons were changed I haven't checked |
I assume the lines for claiming are 728 -750, since they are commented, but I have not tried to use them |
635 actually |
Oh I see, so, those lines are not commented, but it does not work at this moment right? |
Hi, I've been using the bot and so far it showed sign of working, doing tests in a private Discord server.
First kind of issue I got was it claimed Rei even though she was not in the
namelist
nor Evangelion was in theseries_list
and themin_kak
was set at 700Now, trying with these values for the lists:
It claims the first character that is rolled
Do I have to enter the name of the series of the characters from
namelist
inseries_list
? Or will that claim every character from that series?This is my JSON file (without the token and channel ids):
In mudaeAutoBot.py the only lines I left commented are:
470 - 479
650
728 - 753
768, 769
826
The text was updated successfully, but these errors were encountered: