SFP commited on
Commit
b263642
β€’
1 Parent(s): 677a50a

Rename yourserver.py to main.py

Browse files
Files changed (2) hide show
  1. main.py +6 -0
  2. 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