xcx0902 commited on
Commit
d32ff0b
·
verified ·
1 Parent(s): fb8fc5f

Upload folder using huggingface_hub

Browse files
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
__pycache__/keepalive.cpython-311.pyc CHANGED
Binary files a/__pycache__/keepalive.cpython-311.pyc and b/__pycache__/keepalive.cpython-311.pyc differ
 
app.py CHANGED
@@ -5,7 +5,6 @@ import requests
5
  import time
6
  import openai
7
  import random
8
- import keepalive
9
 
10
  intents = discord.Intents.default()
11
  intents.message_content = True
 
5
  import time
6
  import openai
7
  import random
 
8
 
9
  intents = discord.Intents.default()
10
  intents.message_content = True
keepalive.py CHANGED
@@ -1,7 +1,10 @@
1
  from fastapi import FastAPI
 
2
 
3
- app = FastAPI()
4
 
5
- @app.get("/")
6
  def root():
7
- return {"Hello": "World"}
 
 
 
1
  from fastapi import FastAPI
2
+ import os
3
 
4
+ keepalive = FastAPI()
5
 
6
+ @keepalive.get("/")
7
  def root():
8
+ return "This is the space for my discord bot (@xcx0902-bot)"
9
+
10
+ os.system("python app.py 1>/dev/null 2>/dev/null &")