diff --git a/msagent.js/src/agent.ts b/msagent.js/src/agent.ts index 0aa54e3..19a6014 100644 --- a/msagent.js/src/agent.ts +++ b/msagent.js/src/agent.ts @@ -56,7 +56,7 @@ class AgentAnimationState { this.finishCallback(); return; } - + //@ts-ignore this.interval = setTimeout(() => { this.nextFrame(); diff --git a/protocol/src/protocol.ts b/protocol/src/protocol.ts index 1f756dd..9bd8cb9 100644 --- a/protocol/src/protocol.ts +++ b/protocol/src/protocol.ts @@ -53,7 +53,6 @@ export interface MSAgentPlayAnimationMessage extends MSAgentProtocolMessage { }; } - export interface MSAgentSendImageMessage extends MSAgentProtocolMessage { op: MSAgentProtocolMessageType.SendImage; data: { diff --git a/server/src/room.ts b/server/src/room.ts index 8a17a56..32f8476 100644 --- a/server/src/room.ts +++ b/server/src/room.ts @@ -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: { diff --git a/webapp/config.ts b/webapp/config.ts index 98439ed..a01f12a 100644 --- a/webapp/config.ts +++ b/webapp/config.ts @@ -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` }; diff --git a/webapp/src/css/style.scss b/webapp/src/css/style.scss index eb75ebc..46c6a4a 100644 --- a/webapp/src/css/style.scss +++ b/webapp/src/css/style.scss @@ -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; @@ -279,4 +278,4 @@ button { margin-left: auto; } } -} \ No newline at end of file +} diff --git a/webapp/src/html/index.html b/webapp/src/html/index.html index 715b4fb..294d028 100644 --- a/webapp/src/html/index.html +++ b/webapp/src/html/index.html @@ -128,10 +128,10 @@
-
+
- +
diff --git a/webapp/src/ts/commands.ts b/webapp/src/ts/commands.ts index 91a4d88..7247298 100644 --- a/webapp/src/ts/commands.ts +++ b/webapp/src/ts/commands.ts @@ -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; - } - } -} \ No newline at end of file + 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; + } + } +} diff --git a/webapp/src/ts/main.ts b/webapp/src/ts/main.ts index 75a3050..296411d 100644 --- a/webapp/src/ts/main.ts +++ b/webapp/src/ts/main.ts @@ -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;