-
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
3021fa5
commit f5dc762
Showing
3 changed files
with
108 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
from arclet.letoderea import STOP | ||
from satori import Channel, ChannelType | ||
from satori import ChannelType | ||
|
||
from ..session import Session | ||
|
||
async def direct_message(channel: Channel): | ||
if channel.type != ChannelType.DIRECT: | ||
|
||
async def direct_message(sess: Session): | ||
if sess.channel.type != ChannelType.DIRECT: | ||
return STOP | ||
|
||
|
||
async def public_message(channel: Channel): | ||
if channel.type == ChannelType.DIRECT: | ||
async def public_message(sess: Session): | ||
if sess.channel.type == ChannelType.DIRECT: | ||
return STOP | ||
|
||
|
||
async def reply_me(is_reply_me: bool = False): | ||
def reply_me(is_reply_me: bool = False): | ||
if not is_reply_me: | ||
return STOP | ||
|
||
|
||
async def notice_me(is_notice_me: bool = False): | ||
def notice_me(is_notice_me: bool = False): | ||
if not is_notice_me: | ||
return STOP | ||
|
||
|
||
async def to_me(is_reply_me: bool = False, is_notice_me: bool = False): | ||
def to_me(is_reply_me: bool = False, is_notice_me: bool = False): | ||
if not is_reply_me and not is_notice_me: | ||
return STOP |