From cb0ee37d9146af7b6aa434569676ea0d1d397fee Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 16 Jan 2024 18:37:34 +0200 Subject: [PATCH] test --- src/discordbot/discordbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 399ab8c..40717ce 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -42,12 +42,15 @@ async def epg(ctx): response = requests.get(db_url) response.raise_for_status() content = response.text + await ctx.channel.send('epg:') if content != {}: for item in content: if item['start_at'] == 'now' or item['start_at'] == 'never': + await ctx.channel.send('x') continue else: + await ctx.channel.send('y') await ctx.channel.send(item['start_at']) else: await ctx.channel.send('Empty database!')