Add an /upgraderoom command to make upgrading easier for development
This commit is contained in:
parent
23e7811f33
commit
9b6ef8af72
2 changed files with 13 additions and 0 deletions
|
@ -86,6 +86,18 @@ export const CommandMap = {
|
||||||
hideCompletionAfterSpace: true,
|
hideCompletionAfterSpace: true,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
upgraderoom: new Command({
|
||||||
|
name: 'upgraderoom',
|
||||||
|
args: '<new_version>',
|
||||||
|
description: _td('Upgrades a room to a new version'),
|
||||||
|
runFn: function(roomId, args) {
|
||||||
|
if (args) {
|
||||||
|
return success(MatrixClientPeg.get().upgradeRoom(roomId, args));
|
||||||
|
}
|
||||||
|
return reject(this.getUsage());
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
nick: new Command({
|
nick: new Command({
|
||||||
name: 'nick',
|
name: 'nick',
|
||||||
args: '<display_name>',
|
args: '<display_name>',
|
||||||
|
|
|
@ -130,6 +130,7 @@
|
||||||
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
||||||
"/ddg is not a command": "/ddg is not a command",
|
"/ddg is not a command": "/ddg is not a command",
|
||||||
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
||||||
|
"Upgrades a room to a new version": "Upgrades a room to a new version",
|
||||||
"Changes your display nickname": "Changes your display nickname",
|
"Changes your display nickname": "Changes your display nickname",
|
||||||
"Changes colour scheme of current room": "Changes colour scheme of current room",
|
"Changes colour scheme of current room": "Changes colour scheme of current room",
|
||||||
"Sets the room topic": "Sets the room topic",
|
"Sets the room topic": "Sets the room topic",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue