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 @@