test
This commit is contained in:
parent
049c2cb0db
commit
cb0ee37d91
1 changed files with 3 additions and 0 deletions
|
@ -42,12 +42,15 @@ async def epg(ctx):
|
||||||
response = requests.get(db_url)
|
response = requests.get(db_url)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
content = response.text
|
content = response.text
|
||||||
|
await ctx.channel.send('epg:')
|
||||||
|
|
||||||
if content != {}:
|
if content != {}:
|
||||||
for item in content:
|
for item in content:
|
||||||
if item['start_at'] == 'now' or item['start_at'] == 'never':
|
if item['start_at'] == 'now' or item['start_at'] == 'never':
|
||||||
|
await ctx.channel.send('x')
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
await ctx.channel.send('y')
|
||||||
await ctx.channel.send(item['start_at'])
|
await ctx.channel.send(item['start_at'])
|
||||||
else:
|
else:
|
||||||
await ctx.channel.send('Empty database!')
|
await ctx.channel.send('Empty database!')
|
||||||
|
|
Loading…
Reference in a new issue