fddf
This commit is contained in:
parent
cef9edd4eb
commit
20a8a81f9f
2 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,8 @@ def upload_file(file=None, resize=False, png=False):
|
||||||
|
|
||||||
om = next(frames)
|
om = next(frames)
|
||||||
om.info = i.info
|
om.info = i.info
|
||||||
om.save("image.gif", save_all=True, append_images=list(frames), loop=0)
|
try: om.save("image.gif", save_all=True, append_images=list(frames), loop=0)
|
||||||
|
except: return(None)
|
||||||
|
|
||||||
if png: filedir = "image.png"
|
if png: filedir = "image.png"
|
||||||
else: filedir = "image.gif"
|
else: filedir = "image.gif"
|
||||||
|
|
|
@ -16,6 +16,7 @@ WELCOME_CHANNEL="846509313941700618"
|
||||||
def join_discord(v):
|
def join_discord(v):
|
||||||
|
|
||||||
if v.is_banned != 0: return "You're banned"
|
if v.is_banned != 0: return "You're banned"
|
||||||
|
|
||||||
if 'rdrama' in request.host and v.admin_level == 0 and v.patron == 0 and v.coins < 150: return f"You must earn 150 {COINS_NAME} before entering the Discord server. You earn {COINS_NAME} by making posts/comments and getting upvoted."
|
if 'rdrama' in request.host and v.admin_level == 0 and v.patron == 0 and v.coins < 150: return f"You must earn 150 {COINS_NAME} before entering the Discord server. You earn {COINS_NAME} by making posts/comments and getting upvoted."
|
||||||
|
|
||||||
now=int(time.time())
|
now=int(time.time())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue