INNER CODE UNIT · Go

Input

instead-hub/instead · src/tiny/ifbot/ifbot/server.go:26

func Input(id int64, str string) string {
	var msg string
	var new bool
	var ctx *Instance
	if ctx = Lookup(id); ctx == nil {
		new = true
		ctx, msg = Spawn(id)
	}

	if ctx == nil {
		return msg
	}

	ctx.last_time = time.Now().Unix()

	if msg != "" {
		msg += "\n"
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…