Skip to content

Commit ecbc82c

Browse files
fix sleep tool stuff
1 parent c464368 commit ecbc82c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doggo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def call_robot(self, api_id, params=None):
6262
if params:
6363
args["parameter"] = params
6464

65-
async def _call():
65+
def _call():
6666
await self.dog.maybe_reconnect()
6767
await self.dog.robot.datachannel.pub_sub.publish_request_new(
6868
RTC_TOPIC["SPORT_MOD"], args
@@ -181,13 +181,13 @@ def __init__(self, voice="michael", alive=True, output_sample_rate=48000, echo=F
181181
"Wake up the doggo",
182182
"tools/awake.json",
183183
lambda _: self.toggle_sleep(False),
184+
awake=False,
184185
),
185186
Tool(
186187
"sleep",
187188
"Put the doggo to sleep",
188189
"tools/sleep.json",
189-
lambda _: self.toggle_sleep(True),
190-
awake=False,
190+
lambda _: self.toggle_sleep(True)
191191
)
192192
]
193193
self.tools.extend(trick_tools(self))

0 commit comments

Comments
 (0)