Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- app.py +3 -0
- index.html +8 -8
app.py
CHANGED
|
@@ -95,6 +95,8 @@ async def on_message(message):
|
|
| 95 |
except BaseException:
|
| 96 |
pass
|
| 97 |
await message.channel.send('```' + answer + '```')
|
|
|
|
|
|
|
| 98 |
elif message.content == '.help':
|
| 99 |
await message.channel.send(
|
| 100 |
'.hello : Say hello to the bot (You will get a hello back)\n'
|
|
@@ -103,6 +105,7 @@ async def on_message(message):
|
|
| 103 |
'.florrmap : Show the florr.io map\n'
|
| 104 |
'.florrserver : Get florr.io server info\n'
|
| 105 |
'.tetriouser <username> : Get tetr.io user info\n'
|
|
|
|
| 106 |
'.help : Show this message'
|
| 107 |
)
|
| 108 |
else:
|
|
|
|
| 95 |
except BaseException:
|
| 96 |
pass
|
| 97 |
await message.channel.send('```' + answer + '```')
|
| 98 |
+
elif message.content == '.stats':
|
| 99 |
+
await message.channel.send("[UptimeRobot: xcx0902's services status](https://stats.uptimerobot.com/pZsa4c0nwJ)")
|
| 100 |
elif message.content == '.help':
|
| 101 |
await message.channel.send(
|
| 102 |
'.hello : Say hello to the bot (You will get a hello back)\n'
|
|
|
|
| 105 |
'.florrmap : Show the florr.io map\n'
|
| 106 |
'.florrserver : Get florr.io server info\n'
|
| 107 |
'.tetriouser <username> : Get tetr.io user info\n'
|
| 108 |
+
'.stats : Get my services status\n'
|
| 109 |
'.help : Show this message'
|
| 110 |
)
|
| 111 |
else:
|
index.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
<html>
|
| 2 |
-
<head>
|
| 3 |
-
<title>HF-Space xcx0902's discord bot</title>
|
| 4 |
-
</head>
|
| 5 |
-
<body>
|
| 6 |
-
<p
|
| 7 |
-
<a href="https://stats.uptimerobot.com/pZsa4c0nwJ"
|
| 8 |
-
</body>
|
| 9 |
</html>
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<title>HF-Space xcx0902's discord bot</title>
|
| 4 |
+
</head>
|
| 5 |
+
<body>
|
| 6 |
+
<p>This is the space for my discord bot (@xcx0902-bot)</p>
|
| 7 |
+
<a href="https://stats.uptimerobot.com/pZsa4c0nwJ">UptimeRobot</a>
|
| 8 |
+
</body>
|
| 9 |
</html>
|