Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
Aftermathic committed May 15, 2022
1 parent 3612aea commit f0a0f3d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions error.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Event loop is closed
Binary file modified images/levelstemplate_edited.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/tokenstemplate_edited.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions keep_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def home():
while True:
errors = open("error.txt", "r")
if os.stat("error.txt").st_size == 0:
return f"<h1>Bizim Bot Status: </h1>Errors: None"
return f"<h1>Bizim Bot Status: </h1>Startup Errors: None"
else:
return f"<h1>Bizim Bot Status: </h1>Errors: {errors.read()}"
return f"<h1>Bizim Bot Status: </h1>Startup Errors: {errors.read()}"

def run():
app.run(host='0.0.0.0',port=8080)
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async def jeton(ctx):
@bot.command()
async def rastgelemetin(ctx):
num = random.randint(0, getNumTexts() - 1)
await ctx.send(f"{num}. {getText(num)}")
await ctx.send(f"Random Text Number: {num}\n{getText(num)}")

@bot.command()
async def addRandomText(ctx):
Expand All @@ -380,7 +380,7 @@ async def showAllRandText(ctx):
text = ""
num = 0
while num < getNumTexts():
string = f"{num}. {getText(num)}"
string = f"Random Text Number: {num}\n{getText(num)}"
string += "\n\n"

text += string
Expand Down

0 comments on commit f0a0f3d

Please sign in to comment.