Changes to stuff
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user