From 276d7bcb58fef1e7c50aa2b6b7371f4e87770c7b Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 27 Mar 2021 14:55:12 -0400 Subject: [PATCH] Update database bot.py --- database bot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/database bot.py b/database bot.py index 4b019ce..9ae1085 100644 --- a/database bot.py +++ b/database bot.py @@ -17,7 +17,7 @@ def closefile(): else: pass -def closefile(): +def closefile1(): sleep(300) if os.path.exists(finalfilepath1): os.remove(finalfilepath1) @@ -108,7 +108,7 @@ async def getchrasset(ctx): filedirweburl = weburl.replace("%20", " ") if os.path.isfile('public/singlecharacter/'+str(filedirweburl)): betterweburl = weburl.replace(" ", "%20") - await ctx.send("http://fierce-push.auto.playit.gg:53368/singlecharacter/"+str(betterweburl)) + await ctx.send("http://fierce-push.auto.playit.gg:47746/singlecharacter/"+str(betterweburl)) else: await ctx.send("oops! that file does not exist make sure its spelled correctly") @@ -118,7 +118,7 @@ async def getcortasset(ctx): filedirweburl = weburl.replace("%20", " ") if os.path.isfile('public/singlecharacter/'+str(filedirweburl)): betterweburl = weburl.replace(" ", "%20") - await ctx.send("http://fierce-push.auto.playit.gg:53368/singlecourtroom/"+str(betterweburl)) + await ctx.send("http://fierce-push.auto.playit.gg:47746/singlecourtroom/"+str(betterweburl)) else: await ctx.send("oops! that file does not exist make sure its spelled correctly") @@ -128,7 +128,7 @@ async def getsound(ctx): sounddirweb = sound.replace("%20", " ") if os.path.isfile('public/singlesound/'+str(sounddirweb)): bettersound = sound.replace(" ", "%20") - await ctx.send("http://fierce-push.auto.playit.gg:53368/singlesound/"+str(bettersound)) + await ctx.send("http://fierce-push.auto.playit.gg:47746/singlesound/"+str(bettersound)) else: await ctx.send("oops! that file does not exist make sure its spelled correctly") @@ -145,7 +145,7 @@ async def downloadcharacter(ctx): urlpath = finalfilepath.replace(" ", "_") os.rename(finalfilepath,urlpath) newurlpath = finalfilepath.replace("/public", "") - await ctx.send("http://fierce-push.auto.playit.gg:53368/"+str(newurlpath)) + await ctx.send("http://fierce-push.auto.playit.gg:47746/"+str(newurlpath)) await ctx.send("note: this link will become invalid in 5 minutes") delfile = threading.Thread(target=closefile) delfile.start() @@ -171,7 +171,7 @@ async def downloadcourtroom(ctx): urlpath = finalfilepath1.replace(" ", "_") os.rename(finalfilepath1,urlpath) newurlpath = finalfilepath1.replace("/public", "") - await ctx.send("http://fierce-push.auto.playit.gg:53368/"+str(newurlpath)) + await ctx.send("http://fierce-push.auto.playit.gg:47746/"+str(newurlpath)) await ctx.send("note: this link will become invalid in 5 minutes") delfile = threading.Thread(target=closefile1) delfile.start()