-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
187ff8f
commit 9a9c9aa
Showing
20 changed files
with
335 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
from dataclasses import dataclass | ||
from typing import Any, Optional | ||
|
||
from arclet.letoderea import es | ||
from arclet.letoderea import make_event | ||
|
||
|
||
@dataclass | ||
@make_event(name="entari.event/config_reload") | ||
class ConfigReload: | ||
scope: str | ||
key: str | ||
value: Any | ||
old: Optional[Any] = None | ||
|
||
__publisher__ = "entari.event/config_reload" | ||
__result_type__: type[bool] = bool | ||
|
||
|
||
pub = es.define(ConfigReload.__publisher__, ConfigReload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,30 @@ | ||
from dataclasses import dataclass | ||
|
||
from arclet.letoderea import es | ||
from arclet.letoderea import make_event | ||
from satori.client import Account | ||
from satori.model import LoginStatus | ||
|
||
|
||
@dataclass | ||
@make_event(name="entari.event/startup") | ||
class Startup: | ||
pass | ||
|
||
__publisher__ = "entari.event/startup" | ||
|
||
|
||
@dataclass | ||
@make_event(name="entari.event/ready") | ||
class Ready: | ||
pass | ||
|
||
__publisher__ = "entari.event/ready" | ||
|
||
|
||
@dataclass | ||
@make_event(name="entari.event/cleanup") | ||
class Cleanup: | ||
pass | ||
|
||
__publisher__ = "entari.event/cleanup" | ||
|
||
|
||
@dataclass | ||
@make_event(name="entari.event/account_update") | ||
class AccountUpdate: | ||
account: Account | ||
status: LoginStatus | ||
|
||
__publisher__ = "entari.event/account_update" | ||
|
||
|
||
es.define("entari.event/startup", Startup) | ||
es.define("entari.event/ready", Ready) | ||
es.define("entari.event/cleanup", Cleanup) | ||
es.define("entari.event/account_update", AccountUpdate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.