disable empty db check
This commit is contained in:
parent
cb0ee37d91
commit
76347bfc48
1 changed files with 7 additions and 10 deletions
|
@ -44,16 +44,13 @@ async def epg(ctx):
|
||||||
content = response.text
|
content = response.text
|
||||||
await ctx.channel.send('epg:')
|
await ctx.channel.send('epg:')
|
||||||
|
|
||||||
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')
|
||||||
await ctx.channel.send('x')
|
continue
|
||||||
continue
|
else:
|
||||||
else:
|
await ctx.channel.send('y')
|
||||||
await ctx.channel.send('y')
|
await ctx.channel.send(item['start_at'])
|
||||||
await ctx.channel.send(item['start_at'])
|
|
||||||
else:
|
|
||||||
await ctx.channel.send('Empty database!')
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue