Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
chore: improve chat message (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
leohgc authored and moliva committed Jul 23, 2019
1 parent 4373aed commit 00f76d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 9 additions & 5 deletions packages/shared/apis/ChatController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,15 @@ export class ChatController extends ExposableAPI implements IChatController {
id: uuid(),
isCommand: true,
sender: 'Decentraland',
message: `Available commands:\n${Object.keys(this.chatCommands)
.filter(name => name !== 'help')
.map(name => `\t'${name}': ${this.chatCommands[name].description}`)
.concat('\thelp: Show this list of commands')
.join('\n')}`
message:
`Click on the screen to lock the cursor, later you can unlock it with the [ESC] key.` +
`\n\nYou can move with the [WASD] keys and jump with the [SPACE] key.` +
`\n\nYou can toggle the chat with the [ENTER] key.` +
`\n\nAvailable commands:\n${Object.keys(this.chatCommands)
.filter(name => name !== 'help')
.map(name => `\t'${name}': ${this.chatCommands[name].description}`)
.concat('\thelp: Show this list of commands')
.join('\n')}`
}
})
}
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/avatar/chatWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,7 @@ const instructionsMessage = {
id: '',
isCommand: true,
sender: 'Decentraland',
message:
`Welcome to Decentraland!` +
`\n\nClick on the screen to lock the cursor, later you can unlock it with the [ESC] key.` +
`\n\nYou can move with the [WASD] keys and jump with the [SPACE] key.` +
`\n\nYou can toggle the chat with the [ENTER] key.` +
`\n\nType /help for a full list of commands. Enjoy the metaverse!`
message: 'Type /help for info about controls'
}
addMessage(instructionsMessage as MessageEntry)

Expand Down

0 comments on commit 00f76d8

Please sign in to comment.