Fixed stuff
This commit is contained in:
parent
97a1d455e3
commit
5d713b1a90
|
|
@ -86,7 +86,7 @@ def signoff_callback(slack: SlackClient, msg: dict, match: Match) -> None:
|
||||||
name = match.group(1)
|
name = match.group(1)
|
||||||
|
|
||||||
# Also, who just signed us off?
|
# Also, who just signed us off?
|
||||||
signer = identifier.lookup_msg_brother(msg)["name"]
|
signer = identifier.lookup_msg_brother(msg).name
|
||||||
|
|
||||||
# Try giving the person a point
|
# Try giving the person a point
|
||||||
try:
|
try:
|
||||||
|
|
@ -109,7 +109,7 @@ def punish_callback(slack: SlackClient, msg: dict, match: Match) -> None:
|
||||||
name = match.group(2)
|
name = match.group(2)
|
||||||
|
|
||||||
# Also, who just signed us off?
|
# Also, who just signed us off?
|
||||||
signer = identifier.lookup_msg_brother(msg)["name"]
|
signer = identifier.lookup_msg_brother(msg).name
|
||||||
|
|
||||||
# Try giving the person a point
|
# Try giving the person a point
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ def count_work_callback(slack: SlackClient, msg: dict, match: Match) -> None:
|
||||||
# Couple things to work through.
|
# Couple things to work through.
|
||||||
# One: Who sent the message?
|
# One: Who sent the message?
|
||||||
who_wrote = identifier.lookup_msg_brother(msg)
|
who_wrote = identifier.lookup_msg_brother(msg)
|
||||||
who_wrote_label = "{} [{}]".format(who_wrote["name"], who_wrote["scroll"])
|
who_wrote_label = "{} [{}]".format(who_wrote.name, who_wrote.scroll)
|
||||||
|
|
||||||
# Two: What work did they do?
|
# Two: What work did they do?
|
||||||
new_work = {}
|
new_work = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue