Spaces:
Sleeping
Sleeping
Rename yourserver.py to main.py
Browse files- main.py +6 -0
- yourserver.py +0 -0
main.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import SpaceFace as sf
|
2 |
+
class GreetingEndpoint:
|
3 |
+
def receivedMessage(self, message, user: sf.User, responder: sf.Responder):
|
4 |
+
responder.respond(f"Hello {user.name}, you told me \"{message}\"")
|
5 |
+
responder.close()
|
6 |
+
sf.start_server([GreetingEndpoint()])
|
yourserver.py
DELETED
File without changes
|