Skip to content

Fixed issue with naming and added support for update - #14

Merged
Tsubashi merged 8 commits into
Tsubashi:devfrom
ArturMarschal:stable
Jan 12, 2026
Merged

Fixed issue with naming and added support for update#14
Tsubashi merged 8 commits into
Tsubashi:devfrom
ArturMarschal:stable

Conversation

@ArturMarschal

Copy link
Copy Markdown
  • fixed special charachter issue with reminder and role token naming
  • added new features to update
    • added built-in json instead of normal url, as BotC webpage changed
    • added bloodstar-url option, to be able to use tool with homebrew scripts easily
  • added small change to name and ability texts, to be able to handle special charcters better, now only ő and ű
  • added id for roles, to avoid issue with naming, from now on id is used for token names, not the name, so it is possible to keep id in english but name in localized text

Tsubashi and others added 4 commits February 23, 2025 11:22
* fixed special charachter issue with reminder and role token naming
* added new features to update
  * added built-in json instead of normal url, as BotC webpage changed
  * added bloodstar-url option, to be able to use tool with homebrew
    scripts easily
* added small change to name and ability texts, to be able to handle
  special charcters better, now only ő and ű
* added id for roles, to avoid issue with naming, from now on id is used
  for token names, not the name, so it is possible to keep id in english
  but name in localized text
Comment thread src/botc_tokens/data/known_roles.json Outdated
Comment thread src/botc_tokens/commands/update.py Outdated
Comment thread src/botc_tokens/commands/update.py Outdated
Comment thread src/botc_tokens/helpers/text_tools.py Outdated
@Tsubashi

Tsubashi commented Nov 19, 2025

Copy link
Copy Markdown
Owner

Would fix #11 and #12. Mentioning here so they get linked.

@Tsubashi

Copy link
Copy Markdown
Owner

Also, could you target the dev branch instead of stable? I use stable to track releases.

Thanks for your submission!

@ArturMarschal
ArturMarschal changed the base branch from stable to dev November 20, 2025 23:43
@Tsubashi

Copy link
Copy Markdown
Owner

Awesome, I'll review these tomorrow and merge it in if everything looks good.

@Tsubashi Tsubashi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to run the linter as well. Right now there are a few linter issues (line length, import order, etc).

Thanks for your contribution, and thanks for being cool with my nitpicks. If it gets to be too much just let me know and I can merge it and clean it up myself.

Again, thanks for making this tool even better!

Comment thread src/botc_tokens/helpers/wiki_soup.py Outdated
if meta_data:
version_name = meta_data.get('name')
else:
print(f"[yellow]Warning:[/] Could not find metadata for the script")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we are missing test coverage on this line. Please add a test that attempts to load a script without metadata.

f"\n\nI will continue, but [yellow]be warned that it might not work[/].")
wiki.role_data = custom_list
if custom_list.startswith("https://"):
wiki.load_from_web_json(custom_list)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should still apply validation whether using local files or URLs. Right now it is being bypassed when using URLs.

@ArturMarschal

Copy link
Copy Markdown
Author

Sorry, but I did not have time to complete it, but now I think everything has been addressed. Only thing is, that when I added validation to the schema, it already warns, that _meta must be there, so I have removed redundant warning message. Please review. (Btw Im not a python guy, so I'm just trying my best)

@Tsubashi
Tsubashi merged commit bf5e084 into Tsubashi:dev Jan 12, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants