mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix importing node-notifier
This commit is contained in:
parent
99423f263b
commit
4cdc2adc30
|
|
@ -104,7 +104,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
|||
|
||||
const i = new ZncNotifications(storage, token, nso, data);
|
||||
|
||||
i.notifications = new TerminalNotificationManager(await import('node-notifier'));
|
||||
const notifier = (await import('node-notifier')).default;
|
||||
i.notifications = new TerminalNotificationManager(notifier);
|
||||
i.user_notifications = argv.userNotifications;
|
||||
i.friend_notifications = argv.friendNotifications;
|
||||
i.update_interval = argv.updateInterval;
|
||||
|
|
|
|||
|
|
@ -191,7 +191,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
|||
|
||||
const i = new ZncDiscordPresence(storage, token, nso, data);
|
||||
|
||||
i.notifications = new TerminalNotificationManager(await import('node-notifier'));
|
||||
const notifier = (await import('node-notifier')).default;
|
||||
i.notifications = new TerminalNotificationManager(notifier);
|
||||
i.user_notifications = argv.userNotifications;
|
||||
i.friend_notifications = argv.friendNotifications;
|
||||
i.update_interval = argv.updateInterval;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user