Skip to content

Commit

Permalink
Update 4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 5, 2023
1 parent 534d46e commit 6f3610a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tlg_bot/kreacher/plugins/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def _human_time_duration(seconds):
return ", ".join(parts)


@kreacher.on(events.NewMessage(pattern="^/ping"))
@kreacher.on(events.NewMessage(pattern="[!?/]ping"))
async def _(event):
start = time()
current_time = datetime.utcnow()
Expand Down
2 changes: 1 addition & 1 deletion tlg_bot/kreacher/plugins/play_song.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def skip_item(chat_id: int, x: int):
return 0


@kreacher.on(events.NewMessage(pattern="^[?!/]play_song"))
@kreacher.on(events.NewMessage(pattern="[!?/]play_song"))
async def play_song(event):
title = ' '.join(event.text[5:])
replied = await event.get_reply_message()
Expand Down
2 changes: 1 addition & 1 deletion tlg_bot/kreacher/plugins/play_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ydl = YoutubeDL(ydl_opts)


@kreacher.on(events.NewMessage(pattern="^[?!/]play_video"))
@kreacher.on(events.NewMessage(pattern="[!?/]play_video"))
async def play_video(event):
chat = await event.get_chat()
msg = await event.reply("🔄 <i>Processing...</i>", parse_mode="HTML")
Expand Down
2 changes: 1 addition & 1 deletion tlg_bot/kreacher/plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def PM_START_TEXT(name):
)


@kreacher.on(events.NewMessage(pattern="^[?!/]start$"))
@kreacher.on(events.NewMessage(pattern="[!?/]start"))
async def start(event):
if config.MANAGEMENT_MODE == "ENABLE":
return
Expand Down

0 comments on commit 6f3610a

Please sign in to comment.