From d292407dc7c4be6dfe38a6e03af8ad02ddf5edcb Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 11 Apr 2019 00:56:27 +0100 Subject: [PATCH] Give penguin class a __repr__ method --- Houdini/Penguin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Houdini/Penguin.py b/Houdini/Penguin.py index 2594815..019e0a2 100644 --- a/Houdini/Penguin.py +++ b/Houdini/Penguin.py @@ -34,3 +34,8 @@ class Penguin(Spheniscidae): async def add_inbox(self, postcard): pass + + def __repr__(self): + if self.data is not None: + return ''.format(self.data.ID, self.data.Username) + return super().__repr__()