Fixing what Rémy told me wrong.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -11,9 +11,9 @@ from .basehandler import BaseHandler | ||||
|  | ||||
| MEDIA_DIR = Path(os.getenv("MEDIA_DIR")) | ||||
| GIF_LOCATION = MEDIA_DIR / "advent" / "gifs" | ||||
| GIFS = list(GIF_LOCATION.glob("*.mp4")) | ||||
| # GIFS = list(GIF_LOCATION.glob("*.mp4")) | ||||
| STICKER_LOCATION = MEDIA_DIR / "advent" / "stickers" | ||||
| STICKERS = list(STICKER_LOCATION.glob("*.tgs")) | ||||
| # STICKERS = list(STICKER_LOCATION.glob("*.tgs")) | ||||
| PICTURE_LOCATION = MEDIA_DIR / "advent" / "pretty_pictures" | ||||
| PICTURES = list(PICTURE_LOCATION.glob("*.jpg")) | ||||
|  | ||||
| @@ -80,7 +80,6 @@ class AdventsHandler(BaseHandler): | ||||
|  | ||||
|         return ACTION | ||||
|  | ||||
|  | ||||
|     async def kuesschen(self, update: Update, context: CallbackContext): | ||||
|         query = update.callback_query | ||||
|         await query.answer() | ||||
| @@ -128,7 +127,7 @@ class AdventsHandler(BaseHandler): | ||||
|          | ||||
|         #if tuer_nummer <= int(date.today().strftime("%d")): | ||||
|         if (tuer_nummer <= int(date.today().strftime("%d"))) and (int(date.today().strftime("%m"))==12): | ||||
|             await update.message.reply_document(document=GIFS[tuer_nummer-1], caption=f"Türchen für den {tuer_nummer}. Dezember: \n" + self.tuerchen_texte[tuerchen], reply_markup=reply_markup) | ||||
|             await update.message.reply_document(document=GIF_LOCATION/ f"gif{tuer_nummer}.mp4", caption=f"Türchen für den {tuer_nummer}. Dezember: \n" + self.tuerchen_texte[tuerchen], reply_markup=reply_markup) | ||||
|         else: | ||||
|             await update.message.reply_sticker(sticker=STICKER_LOCATION/"stickerangry.tgs") | ||||
|             await update.message.reply_text(text="Hey, nicht schummeln! Dieses Türchen darfst du noch nicht sehen.", reply_markup=reply_markup) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user