PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Nidoran F or M

Open LuckyMe4Evers opened this issue 10 years ago • 8 comments

Is there a possibility to truncate the space from Nidoran F and Nidoran M? Because i use "nickname_template":"{name:.8s}-{iv_pct}" and they are both named Nidoran -000. If the space could be trucated then it would become NidoranF-000 or NidoranM-000. I'm not a programmer and thats why i'm asking it.

LuckyMe4Evers avatar Aug 12 '16 10:08 LuckyMe4Evers

Can't we just use ♀ and ♂ directly? According to this Reddit post the game supports Unicode in nicknames.

lambda-fairy avatar Aug 13 '16 01:08 lambda-fairy

@jrjhealey is this possible now?

k4n30 avatar Aug 23 '16 13:08 k4n30

I'm not sure. I don't recall seeing any PRs to fix this (though I also didn't really look that hard).

I never bother to define rename rules, so I don't know if it's possible but perhaps you just need to define a slightly different renaming rule/different syntax to cope with the space in the name? Not sure if this is required to be integrated directly in to the bot code.

@TheSavior do you happen to know if this can be done already?

jrjhealey avatar Aug 23 '16 13:08 jrjhealey

Adding a string replace in nickname_pokemon.py should do it, around line 334.

Eg.

    pokemon.name.replace(" ","")

Gobberwart avatar Aug 24 '16 02:08 Gobberwart

@Gobberwart PR?

k4n30 avatar Aug 24 '16 03:08 k4n30

I would but my current fork has a bunch of changes in it related to another PR, and I have no clue how to work on two simultaneous forks. Sorry, new to github.

Gobberwart avatar Aug 24 '16 03:08 Gobberwart

Branches :p

Not urgent, feel free to wait until you have finished on the current work

k4n30 avatar Aug 24 '16 03:08 k4n30

This was done and can be closed now

Gobberwart avatar Aug 28 '16 01:08 Gobberwart