From b0b2b65ca4a5de7b55fd3e8269d445d88d1c3190 Mon Sep 17 00:00:00 2001 From: udf Date: Sat, 24 Nov 2018 23:22:44 +0200 Subject: [PATCH] add short descriptions to kbass plugins --- stdplugins/kbass_core.py | 3 +++ stdplugins/kbass_edit.py | 5 +++++ stdplugins/kbass_file_to_photo.py | 3 +++ stdplugins/kbass_save.py | 4 ++++ stdplugins/kbass_toggle_preview.py | 3 +++ stdplugins/kbass_yank.py | 5 ++++- 6 files changed, 22 insertions(+), 1 deletion(-) diff --git a/stdplugins/kbass_core.py b/stdplugins/kbass_core.py index ef9979f..cfa3738 100644 --- a/stdplugins/kbass_core.py +++ b/stdplugins/kbass_core.py @@ -1,3 +1,6 @@ +""" +Contains code used by other kbass_* plugins +""" from uniborg import util diff --git a/stdplugins/kbass_edit.py b/stdplugins/kbass_edit.py index 121b4c7..970716d 100644 --- a/stdplugins/kbass_edit.py +++ b/stdplugins/kbass_edit.py @@ -1,3 +1,8 @@ +""" +Reply to a message with .e to make a draft of it (with '\n.e' appended) +Reply to your own message with .e to edit the message to +if is ".", the message is edited to empty/deleted +""" import asyncio from telethon.errors import MessageEmptyError diff --git a/stdplugins/kbass_file_to_photo.py b/stdplugins/kbass_file_to_photo.py index 9a8c666..e999e92 100644 --- a/stdplugins/kbass_file_to_photo.py +++ b/stdplugins/kbass_file_to_photo.py @@ -1,3 +1,6 @@ +""" +Reply to a file with .f to send it as a photo +""" from io import BytesIO from stdplugins.kbass_core import self_reply_cmd diff --git a/stdplugins/kbass_save.py b/stdplugins/kbass_save.py index 913dd51..617f5eb 100644 --- a/stdplugins/kbass_save.py +++ b/stdplugins/kbass_save.py @@ -1,3 +1,7 @@ +""" +Reply to a message with .s to forward messages from that point to your +saved messages (negative values of go backwards in history) +""" import asyncio from stdplugins.kbass_core import self_reply_selector diff --git a/stdplugins/kbass_toggle_preview.py b/stdplugins/kbass_toggle_preview.py index 6b6554a..8d2a454 100644 --- a/stdplugins/kbass_toggle_preview.py +++ b/stdplugins/kbass_toggle_preview.py @@ -1,3 +1,6 @@ +""" +Reply to a message with .p to toggle the webpage preview of a message +""" from telethon.errors import MessageNotModifiedError from telethon.tl.functions.messages import EditMessageRequest diff --git a/stdplugins/kbass_yank.py b/stdplugins/kbass_yank.py index 098415e..e902ad4 100644 --- a/stdplugins/kbass_yank.py +++ b/stdplugins/kbass_yank.py @@ -1,4 +1,7 @@ - +""" +Like save but makes a draft in your chat of all the messages concatenated with +two newlines +""" import html from telethon.tl.functions.messages import SaveDraftRequest