MCPcopy
hub / github.com/brunosimon/keppler / createUser

Method createUser

lib/chat.js:137–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 createUser()
138 {
139 const user = {}
140 user.name = this.getRandomName()
141 user.color = this.getRandomColor()
142 user.id = ids.getId()
143
144 this.users[user.id] = user
145
146 return user
147 }
148
149 shuffle(a)
150 {

Callers 2

setSocketMethod · 0.95
addTestContentsMethod · 0.95

Calls 3

getRandomNameMethod · 0.95
getRandomColorMethod · 0.95
getIdMethod · 0.80

Tested by

no test coverage detected