I noticed that in command handlers, after a call to self.bot.get_context_type, a new variable called author is defined depending on the return type of the former call. I propose making a new function called unbox_context which is essentially self.bot.get_context_type but with an additional code to grab the author.
Proposed unbox_content method that is linked to AdamBot as get_context_type is...
this is definitely something i was slightly concerned about but i wasn't entirely sure on the best way to fully tidy it up - your idea looks cool if you can make it work it would certainly help to tidy up the code
I noticed that in command handlers, after a call to
self.bot.get_context_type
, a new variable calledauthor
is defined depending on the return type of the former call. I propose making a new function calledunbox_context
which is essentiallyself.bot.get_context_type
but with an additional code to grab the author.Proposed
unbox_content
method that is linked toAdamBot
asget_context_type
is...Then instead of doing...
we could have...
or even...