Small maintainance update #22

Merged
Dandellion merged 1 commits from develop into master 2020-07-16 19:31:47 +02:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 70fad99e71 - Show all commits

View File

@ -24,6 +24,7 @@ async function handle(roomId, event) {
if (event.unsigned.age > 1000 * 60) { console.log("Message was old!"); return; };
if (event.sender === await myself) { console.log("Wait a minute... That's me!"); return;};
if (event.content.msgtype === "m.notice") { return; };
if (event.content.body === "!xhelp" || event.content.body === (await client.getUserProfile(await myself)).displayname + ": help") {help(roomId); return;};
if (event.content.body === "!xik") {xik(roomId); return;};