ScratchGPT / main.py
SFP's picture
Rename yourserver.py to main.py
b263642 verified
raw
history blame
265 Bytes
import SpaceFace as sf
class GreetingEndpoint:
def receivedMessage(self, message, user: sf.User, responder: sf.Responder):
responder.respond(f"Hello {user.name}, you told me \"{message}\"")
responder.close()
sf.start_server([GreetingEndpoint()])