mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +00:00
feat(irc): improve reconnect and add notifications (#315)
* refactor(irc): nickserv and methods * feat(notifications): add new events and refactor send * feat(irc): handle disconnect reconnect and connect * feat(irc): update config for ergo local irc server * feat(irc): retry initial connect * feat(irc): show nickserv errors
This commit is contained in:
parent
41eef4e8be
commit
f63ace662a
16 changed files with 1343 additions and 133 deletions
1
web/src/types/Irc.d.ts
vendored
1
web/src/types/Irc.d.ts
vendored
|
@ -53,6 +53,7 @@ interface IrcNetworkWithHealth {
|
|||
channels: IrcChannelWithHealth[];
|
||||
connected: boolean;
|
||||
connected_since: string;
|
||||
connection_errors: string[];
|
||||
}
|
||||
|
||||
interface NickServ {
|
||||
|
|
3
web/src/types/Notification.d.ts
vendored
3
web/src/types/Notification.d.ts
vendored
|
@ -1,11 +1,12 @@
|
|||
type NotificationType = "DISCORD" | "TELEGRAM";
|
||||
type NotificationEvent = "PUSH_APPROVED" | "PUSH_REJECTED" | "PUSH_ERROR" | "IRC_DISCONNECTED" | "IRC_RECONNECTED";
|
||||
|
||||
interface Notification {
|
||||
id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
type: NotificationType;
|
||||
events: string[];
|
||||
events: NotificationEvent[];
|
||||
webhook?: string;
|
||||
token?: string;
|
||||
channel?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue