Group notice event

Added group notice event for Issue #15

Includes a little tidy-up by Casper
This commit is contained in:
hintswen
2018-12-22 12:05:17 +11:00
committed by Casper Warden
parent 647eb083ab
commit 7c60ecfc27
4 changed files with 33 additions and 1 deletions

View File

@@ -161,6 +161,13 @@ bot.clientEvents.onGroupChat.subscribe(async (GroupChatEvent) =>
}
});
bot.clientEvents.onGroupNotice.subscribe(async(GroupNoticeEvent) =>
{
console.log('Group notice from ' + GroupNoticeEvent.fromName + ' (' + GroupNoticeEvent.from + '), from group ID ' + GroupNoticeEvent.groupID);
console.log('Subject: ' + GroupNoticeEvent.subject);
console.log('Message: ' + GroupNoticeEvent.message);
});
bot.clientEvents.onGroupInvite.subscribe(async (GroupInviteEvent) =>
{
@@ -364,4 +371,4 @@ process.on('SIGUSR1', exitHandler.bind(null, {exit:true}));
process.on('SIGUSR2', exitHandler.bind(null, {exit:true}));
//catches uncaught exceptions
process.on('uncaughtException', exitHandler.bind(null, {exit:true}));
process.on('uncaughtException', exitHandler.bind(null, {exit:true}));