mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
dnd improvements
This commit is contained in:
parent
9ee8346d98
commit
78e61b45a5
3 changed files with 13 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
|
11
to_pypi.sh
Executable file
11
to_pypi.sh
Executable 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"
|
Loading…
Reference in a new issue