mirror of
https://github.com/jeantoulza/scplanner-discord
synced 2024-11-23 11:45:37 +01:00
Removed stupid return op
This commit is contained in:
parent
5bc4d08b03
commit
f75b32acce
5
bot.py
5
bot.py
@ -80,9 +80,7 @@ def auto(track_url):
|
|||||||
soundcloud_id = resolve(user_url).id
|
soundcloud_id = resolve(user_url).id
|
||||||
except:
|
except:
|
||||||
raise Exception("Could not determine logged in user...")
|
raise Exception("Could not determine logged in user...")
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
rep = br.open(BASE+"schedule")
|
rep = br.open(BASE+"schedule")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -155,6 +153,7 @@ def start_bot():
|
|||||||
await bot.say("You do not have the required role to repost or use this bot.")
|
await bot.say("You do not have the required role to repost or use this bot.")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
print("Autoscheduling "+url)
|
||||||
calendar_link = auto(url)
|
calendar_link = auto(url)
|
||||||
await bot.say(calendar_link)
|
await bot.say(calendar_link)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user