Skip to content

Commit

Permalink
Set bot flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Issei Horie committed Jun 23, 2019
1 parent 9f6b6d0 commit c92e0c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typetalk/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class Bot(Client):
"""Represents a Typetalk bot"""

def __init__(self, token=None, run_async=False):
super().__init__(token=token, run_async=run_async)
super().__init__(token=token, run_async=run_async, is_bot=True)
self.is_bot = True
self.run_async = run_async
3 changes: 2 additions & 1 deletion typetalk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def __init__(self, loop=None, token=None, run_async=False, is_bot=False):
loop=loop,
token=token,
run_async=run_async,
is_bot=is_bot)
is_bot=is_bot
)
self.http.loop = asyncio.get_event_loop()

def post_message(self, topic_id, message):
Expand Down

0 comments on commit c92e0c6

Please sign in to comment.