run the formatter
This commit is contained in:
parent
f2a8946e3f
commit
b78d596c9d
8 changed files with 23 additions and 27 deletions
|
@ -53,7 +53,6 @@ export interface MSAgentPlayAnimationMessage extends MSAgentProtocolMessage {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
export interface MSAgentSendImageMessage extends MSAgentProtocolMessage {
|
||||
op: MSAgentProtocolMessageType.SendImage;
|
||||
data: {
|
||||
|
|
|
@ -52,7 +52,7 @@ export class MSAgentChatRoom {
|
|||
}
|
||||
});
|
||||
client.on('join', () => {
|
||||
let agent = this.agents.find(a => a.filename === client.agent)!;
|
||||
let agent = this.agents.find((a) => a.filename === client.agent)!;
|
||||
let initmsg: MSAgentInitMessage = {
|
||||
op: MSAgentProtocolMessageType.Init,
|
||||
data: {
|
||||
|
@ -66,7 +66,7 @@ export class MSAgentChatRoom {
|
|||
username: c.username!,
|
||||
agent: c.agent!,
|
||||
admin: c.admin,
|
||||
animations: this.agents.find(a => a.filename === c.agent)!.animations
|
||||
animations: this.agents.find((a) => a.filename === c.agent)!.animations
|
||||
};
|
||||
})
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ export class MSAgentChatRoom {
|
|||
}
|
||||
this.discord?.logMsg(client.username!, message);
|
||||
});
|
||||
client.on('animation', async anim => {
|
||||
client.on('animation', async (anim) => {
|
||||
let msg: MSAgentAnimationMessage = {
|
||||
op: MSAgentProtocolMessageType.PlayAnimation,
|
||||
data: {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const Config = {
|
||||
// The server address for the webapp to connect to. The below default is the same address the webapp is hosted at.
|
||||
serverAddress: `${window.location.protocol}//${window.location.host}`
|
||||
serverAddress: `https://msagent.chat`
|
||||
};
|
||||
|
|
|
@ -84,7 +84,7 @@ html {
|
|||
min-width: 250px;
|
||||
@media screen and (min-width: 500px) {
|
||||
min-width: 500px;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#logonWindowLogo {
|
||||
|
@ -269,7 +269,6 @@ button {
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
#animWindow {
|
||||
#animSelectContainer {
|
||||
display: flex;
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="window-body">
|
||||
<label for="animSelect">Animation:</label><br>
|
||||
<label for="animSelect">Animation:</label><br />
|
||||
<div id="animSelectContainer">
|
||||
<select id="animSelect"></select>
|
||||
<button id="animPlayBtn">Play</button>
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
import { MSAgentClient } from "./client.js";
|
||||
import { MSAgentClient } from './client.js';
|
||||
|
||||
export function InitCommands() {
|
||||
|
||||
}
|
||||
export function InitCommands() {}
|
||||
|
||||
export function RunCommand(command: string, room: MSAgentClient) {
|
||||
let arr = command.split(' ');
|
||||
let cmd = arr[0];
|
||||
let args = arr.slice(1);
|
||||
switch (cmd) {
|
||||
case '/anim': {
|
||||
let anim = args.join(' ');
|
||||
room.animation(anim);
|
||||
break;
|
||||
}
|
||||
}
|
||||
let arr = command.split(' ');
|
||||
let cmd = arr[0];
|
||||
let args = arr.slice(1);
|
||||
switch (cmd) {
|
||||
case '/anim': {
|
||||
let anim = args.join(' ');
|
||||
room.animation(anim);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -24,7 +24,7 @@ const elements = {
|
|||
roomSettingsWindow: document.getElementById('roomSettingsWindow') as HTMLDivElement,
|
||||
animWindow: document.getElementById('animWindow') as HTMLDivElement,
|
||||
animSelect: document.getElementById('animSelect') as HTMLSelectElement,
|
||||
animPlayBtn: document.getElementById('animPlayBtn') as HTMLButtonElement,
|
||||
animPlayBtn: document.getElementById('animPlayBtn') as HTMLButtonElement
|
||||
};
|
||||
|
||||
let Room: MSAgentClient;
|
||||
|
|
Loading…
Reference in a new issue