diff --git a/royalnet/packs/rpg/commands/dndactive.py b/royalnet/packs/rpg/commands/dndactive.py index cd9cb71a..876b1369 100644 --- a/royalnet/packs/rpg/commands/dndactive.py +++ b/royalnet/packs/rpg/commands/dndactive.py @@ -22,7 +22,7 @@ class DndactiveCommand(Command): if author.dnd_active_character is None: await data.reply("ℹ️ You have no active characters.") else: - await data.reply(f"ℹ️ You currently have [b]{author.dnd_active_character}[/b] as active character.") + await data.reply(f"ℹ️ You currently active character is [b]{author.dnd_active_character}[/b].") return try: identifier = int(identifier) diff --git a/royalnet/packs/rpg/commands/dndroll.py b/royalnet/packs/rpg/commands/dndroll.py index 09fdc63a..2daf07f1 100644 --- a/royalnet/packs/rpg/commands/dndroll.py +++ b/royalnet/packs/rpg/commands/dndroll.py @@ -116,7 +116,7 @@ class DndrollCommand(Command): else: raise InvalidInputError("Invalid modifier value or advantage string (second parameter).") - skill_short_name = first + skill_short_name = first.lower() for root in self._skill_names: if skill_short_name.startswith(root): skill_name = self._skill_names[root] diff --git a/to_pypi.sh b/to_pypi.sh new file mode 100755 index 00000000..e3ddbe7c --- /dev/null +++ b/to_pypi.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Royalnet must be installed with `develop` +VERSION=$(python3.7 -m royalnet.version) + +rm -rf dist +python setup.py sdist bdist_wheel +twine upload "dist/royalnet-$VERSION"* +hub commit -m "$VERSION" +hub push +hub release create -m "Royalnet $VERSION" "$VERSION"