1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

dnd improvements

This commit is contained in:
Steffo 2019-10-25 14:31:41 +02:00
parent 9ee8346d98
commit 78e61b45a5
3 changed files with 13 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class DndactiveCommand(Command):
if author.dnd_active_character is None: if author.dnd_active_character is None:
await data.reply(" You have no active characters.") await data.reply(" You have no active characters.")
else: 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 return
try: try:
identifier = int(identifier) identifier = int(identifier)

View file

@ -116,7 +116,7 @@ class DndrollCommand(Command):
else: else:
raise InvalidInputError("Invalid modifier value or advantage string (second parameter).") 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: for root in self._skill_names:
if skill_short_name.startswith(root): if skill_short_name.startswith(root):
skill_name = self._skill_names[root] skill_name = self._skill_names[root]

11
to_pypi.sh Executable file
View file

@ -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"