Not intended for installation, only used with @require
Provides class AutomatedElementTextNotifier
Example usage:
const notificationConfig = [];
notificationConfig.push({
includes: ['claim'],
excludes: ['claimed'],
notificationText: 'You have at least one adventure to claim'
});
notificationConfig.push({
includes: ['reload adventures'],
notificationText: 'You can reload adventures'
});
const automatedElementTextNotifier = new AutomatedElementTextNotifier({
icon: 'https://play.arenaofglory.io/favicon.ico',
title: 'Arena of Glory',
selector: '.button label',
config: notificationConfig,
interval: 60000,
});
await automatedElementTextNotifier.init();