cog_unload, not __unload, whoops.
This commit is contained in:
		
							parent
							
								
									477364f9bf
								
							
						
					
					
						commit
						5fffaf4893
					
				@ -793,7 +793,7 @@ class PlantTycoon(commands.Cog):
 | 
				
			|||||||
                            pass
 | 
					                            pass
 | 
				
			||||||
            await asyncio.sleep(self.defaults["timers"]["notification"] * 60)
 | 
					            await asyncio.sleep(self.defaults["timers"]["notification"] * 60)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __unload(self):
 | 
					    def cog_unload(self):
 | 
				
			||||||
        self.completion_task.cancel()
 | 
					        self.completion_task.cancel()
 | 
				
			||||||
        # self.degradation_task.cancel()
 | 
					        # self.degradation_task.cancel()
 | 
				
			||||||
        self.notification_task.cancel()
 | 
					        self.notification_task.cancel()
 | 
				
			||||||
 | 
				
			|||||||
@ -56,7 +56,7 @@ class Werewolf(Cog):
 | 
				
			|||||||
        """Nothing to delete"""
 | 
					        """Nothing to delete"""
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __unload(self):
 | 
					    def cog_unload(self):
 | 
				
			||||||
        log.debug("Unload called")
 | 
					        log.debug("Unload called")
 | 
				
			||||||
        for game in self.games.values():
 | 
					        for game in self.games.values():
 | 
				
			||||||
            del game
 | 
					            del game
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user