Skip to content

Commit

Permalink
Rename MemberEvent to JoinEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
isaackogan committed Feb 23, 2024
1 parent bb0b794 commit 98557cd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
25 changes: 12 additions & 13 deletions TikTokLive/events/proto_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
from typing import Union


class JoinEvent(BaseEvent, WebcastMemberMessage):
"""
JoinEvent
"""

operator: ExtendedUser
user: ExtendedUser


class BarrageEvent(BaseEvent, WebcastBarrageMessage):
"""
BarrageEvent
Expand Down Expand Up @@ -174,16 +183,6 @@ class LiveIntroEvent(BaseEvent, WebcastLiveIntroMessage):
host: ExtendedUser


class MemberEvent(BaseEvent, WebcastMemberMessage):
"""
MemberEvent
"""

operator: ExtendedUser
user: ExtendedUser


class MessageDetectEvent(BaseEvent, WebcastMsgDetectMessage):
"""
MessageDetectEvent
Expand Down Expand Up @@ -295,7 +294,7 @@ class UnauthorizedMemberEvent(BaseEvent, WebcastUnauthorizedMemberMessage):
"WebcastSocialMessage": SocialEvent,
"WebcastSubNotifyMessage": SubscribeEvent,
"WebcastRankUpdateMessage": RankUpdateEvent,
"WebcastMemberMessage": MemberEvent,
"WebcastMemberMessage": JoinEvent,
"WebcastPollMessage": PollEvent,
"WebcastQuestionNewMessage": QuestionNewEvent,
"WebcastRankTextMessage": RankTextEvent,
Expand Down Expand Up @@ -330,7 +329,7 @@ class UnauthorizedMemberEvent(BaseEvent, WebcastUnauthorizedMemberMessage):
SocialEvent,
SubscribeEvent,
RankUpdateEvent,
MemberEvent,
JoinEvent,
PollEvent,
QuestionNewEvent,
RankTextEvent,
Expand Down Expand Up @@ -365,7 +364,7 @@ class UnauthorizedMemberEvent(BaseEvent, WebcastUnauthorizedMemberMessage):
"SocialEvent",
"SubscribeEvent",
"RankUpdateEvent",
"MemberEvent",
"JoinEvent",
"PollEvent",
"QuestionNewEvent",
"RankTextEvent",
Expand Down
4 changes: 2 additions & 2 deletions scripts/events/__build__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from TikTokLive.client.logger import TikTokLiveLogHandler, LogLevel
from TikTokLive.proto import User, ExtendedUser
from events.overrides import InsertOverrides
from events.transcribe import EventsTranscriber
from overrides import InsertOverrides
from transcribe import EventsTranscriber

if __name__ == '__main__':

Expand Down
3 changes: 2 additions & 1 deletion scripts/events/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
MESSAGE_OVERRIDES: Dict[str, str] = {
"WebcastMsgDetectMessage": "MessageDetectEvent",
"WebcastChatMessage": "CommentEvent",
"WebcastSubNotifyMessage": "SubscribeEvent"
"WebcastSubNotifyMessage": "SubscribeEvent",
"WebcastMemberMessage": "JoinEvent"
}

BASE_IMPORTS: List[str] = [
Expand Down
2 changes: 2 additions & 0 deletions scripts/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

API_KEY: str = os.environ["PYPI_TOKEN"]

input("Press any key to upload...")

subprocess.Popen(
f'python -m twine upload --username __token__ --password "{API_KEY}" --repository pypi ../dist/*',
shell=True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# PyPi upload Command
# rm -r dist ; python setup.py sdist ; python -m twine upload dist/*
version: str = "6.0.0-pre1"
version: str = "6.0.0-post1"

setuptools.setup(
name="TikTokLive",
Expand Down

0 comments on commit 98557cd

Please sign in to comment.