Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 6159d8b

Browse files
Add the RTFD (rude) command
1 parent 8e496a7 commit 6159d8b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎assistant/plugins/commands.py‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,26 @@ async def faq(_, message: Message):
296296

297297
@Assistant.on_message(command("rtd"))
298298
async def rtd(_, message: Message):
299-
"""Tell to Read the Docs"""
299+
"""Tell to RTD (gentle)"""
300300
await reply_and_delete(message, RTD)
301301

302302

303303
################################
304304

305305

306+
RTFD = "Go read the fscking docs: https://docs.pyrogram.org"
307+
308+
309+
@Assistant.on_message(command("rtfd"))
310+
@admins_only
311+
async def rtfd(_, message: Message):
312+
"""Tell to RTFD (rude)"""
313+
await reply_and_delete(message, RTFD)
314+
315+
316+
################################
317+
318+
306319
DEV = (
307320
"The fix for this issue has already been pushed to the `develop` branch on "
308321
"[GitHub](https://github.com/pyrogram/pyrogram). You can now upgrade Pyrogram with:\n\n"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /