INNER CODE UNIT · Go

Stop

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

func Stop(ctx *Instance) {
	ctx.input <- ("save " + autosave(ctx))
	log.Printf("%s\n", <-ctx.output)
	ctx.input <- "quit"
	log.Printf("%s\n", <-ctx.output)
	Purge(ctx)
}

func Lookup(id int64) *Instance {
	for k, v := range servers {
		if v.id == id {
			return servers[k]
		}
	}
	return nil
}

func Spawn(id int64) (*Instance, string) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…