aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2018-03-09 21:59:22 +0100
committerTollef Fog Heen <tfheen@err.no>2018-03-09 21:59:22 +0100
commit603801db24c083c88ca434b479c7ba79a3d005fb (patch)
tree4df00060145f3768b9ddd5b33c7a2152d89ca2d6
parent2c24613266668c68c95ce775dd26a398beaab638 (diff)
downloadwee-slack-603801db24c083c88ca434b479c7ba79a3d005fb.tar.gz
Make string formatting of Slack Teams be more useful
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index a344be6..9ebe788 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -999,6 +999,9 @@ class SlackTeam(object):
self.set_highlight_words(kwargs.get('highlight_words', ""))
self.load_emoji_completions()
+ def __repr__(self):
+ return "domain={} nick={}".format(self.subdomain, self.nick)
+
def __eq__(self, compare_str):
if compare_str == self.token or compare_str == self.domain or compare_str == self.subdomain:
return True