Changes to stuff

This commit is contained in:
NikolajDanger
2020-03-31 19:39:44 +02:00
parent 436d0443dd
commit bdb011cfc5
9 changed files with 111 additions and 22 deletions

View File

@ -80,6 +80,16 @@ def resultToEmoji(result : str):
return emoji
def emojiToResult(emoji : str):
result = ""
for char in emoji:
if char == "<:light:691010089905029171>":
emoji += 'L'
if char == "<:dark:691010101901000852>":
emoji += 'B'
return result
def diceToEmoji(dice : list):
emoji = ""
@ -112,7 +122,7 @@ def obligationRoll():
for character in data:
for obligation in data[character]["Obligations"]:
for x in range(data[character]["Obligations"][obligation]):
table.append(obligation)
table.append(data[character]["Name"]+", "+obligation)
while len(table) < 100:
table.append("Nothing")
@ -124,7 +134,6 @@ def parseRoll(user : str,cmd : str = ""):
if cmd[0] == " ":
cmd = cmd[1:]
cmd = swchar.replaceSpaces(cmd.capitalize())
print(cmd)
commands = cmd.split(" ")
if commands[0] == "":
rollParameters = [1,0,3,0,0,0,0]