Skip to content

Commit

Permalink
remove some await
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN authored Apr 2, 2021
1 parent 3d74d04 commit 0b2964a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions krypton/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ async def donation(_, message):
@app.on_message(filters.text & cmd_filter('join'))
async def join(_, message):
await group_calls.start(message.chat.id)
await group_calls.set_is_mute(False)
group_calls.set_is_mute(False)
await message.reply_text('Succsessfully joined!')

@app.on_message(filters.text & cmd_filter('mute'))
async def join(_, message):
await group_calls.set_is_mute(True)
group_calls.set_is_mute(True)
await message.reply_text('Succsessfully muted bot!')

@app.on_message(filters.text & cmd_filter('unmute'))
async def join(_, message):
await group_calls.set_is_mute(False)
group_calls.set_is_mute(False)
await message.reply_text('Succsessfully unmuted bot!')

@app.on_message(filters.text & cmd_filter('stop'))
async def join(_, message):
await group_calls.stop_playout()
group_calls.stop_playout()
playing = False
await message.reply_text('Succsessfully stopped song!')

Expand Down

0 comments on commit 0b2964a

Please sign in to comment.