File size: 530 Bytes
268818d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from flask import Flask
import threading
import time

app = Flask(__name__)

@app.route('/')
def home():
    return '''
    <html>
    <head><title>Ultroid Status</title></head>
    <body>
        <h1>πŸ€– Ultroid Userbot</h1>
        <p>Status: Running on Hugging Face Spaces</p>
        <p>Bot is active in the background!</p>
    </body>
    </html>
    '''

@app.route('/status')
def status():
    return {"status": "running", "message": "Ultroid is active"}

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=7860)