auto end plan on /newplan
This commit is contained in:
		
							parent
							
								
									f6aba9c47f
								
							
						
					
					
						commit
						994def8565
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -33,10 +33,7 @@ class DudleBot:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def tg_newplan(self, update, context):
 | 
					    def tg_newplan(self, update, context):
 | 
				
			||||||
        if context.chat_data.get("plan", None):
 | 
					        if context.chat_data.get("plan", None):
 | 
				
			||||||
            update.message.reply_text(
 | 
					            self.tg_end(update, context)
 | 
				
			||||||
                "There's a plan unresolved still! (Speak /endplan to fix it.)"
 | 
					 | 
				
			||||||
            )
 | 
					 | 
				
			||||||
            return
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        today = datetime.today()
 | 
					        today = datetime.today()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue