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

Add emoji to dnditem

This commit is contained in:
Steffo 2019-09-02 00:53:48 +02:00
parent ad4aa25c97
commit a4229b0724

View file

@ -43,12 +43,12 @@ class DnditemCommand(Command):
return return
search = args.joined().lower() search = args.joined().lower()
result = self._dnddata[self._dnddata.bisect_key_left(search)] result = self._dnddata[self._dnddata.bisect_key_left(search)]
string = f'[b]{result["name"]}[/b]\n' string = f'📦 [b]{result["name"]}[/b]\n'
if "source" in result: if "source" in result:
string += f'[i]{result["source"]}, page {result["page"]}[/i]\n' string += f'[i]{result["source"]}, page {result["page"]}[/i]\n'
string += f'\n' \ string += f'\n' \
f'Type: [b]{result.get("type", "None")}[/b]\n' \ f'Type: [b]{result.get("type", "None")}[/b]\n' \
f'Value: [b]{result.get("value", "Priceless")}[/b]\n' \ f'Value: [b]{result.get("value", "-")}[/b]\n' \
f'Weight: [b]{result.get("weight", "0")} lb[/b]\n' \ f'Weight: [b]{result.get("weight", "0")} lb[/b]\n' \
f'Rarity: [b]{result["rarity"] if result.get("rarity", "None") != "None" else "Mundane"}[/b]\n' \ f'Rarity: [b]{result["rarity"] if result.get("rarity", "None") != "None" else "Mundane"}[/b]\n' \
f'\n' f'\n'