Group notice event
Added group notice event for Issue #15 Includes a little tidy-up by Casper
This commit is contained in:
@@ -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}));
|
||||
|
||||
Reference in New Issue
Block a user