Add __unload to the special cog method list.
This commit is contained in:
parent
df90aaa610
commit
3cb680159e
@ -887,6 +887,9 @@ The final addition is cog-local error handler, ``__error``, that is run on every
|
|||||||
An example cog with every special method registered is as follows: ::
|
An example cog with every special method registered is as follows: ::
|
||||||
|
|
||||||
class Cog:
|
class Cog:
|
||||||
|
def __unload(self):
|
||||||
|
print('cleanup goes here')
|
||||||
|
|
||||||
def __global_check(self, ctx):
|
def __global_check(self, ctx):
|
||||||
print('cog global check')
|
print('cog global check')
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user