add short descriptions to kbass plugins

This commit is contained in:
udf 2018-11-24 23:22:44 +02:00
parent 4f05e252be
commit b0b2b65ca4
Signed by: kate
GPG Key ID: E40724BAD73AF77B
6 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,6 @@
"""
Contains code used by other kbass_* plugins
"""
from uniborg import util from uniborg import util

View File

@ -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 <text>.e to edit the message to <text>
if <text> is ".", the message is edited to empty/deleted
"""
import asyncio import asyncio
from telethon.errors import MessageEmptyError from telethon.errors import MessageEmptyError

View File

@ -1,3 +1,6 @@
"""
Reply to a file with .f to send it as a photo
"""
from io import BytesIO from io import BytesIO
from stdplugins.kbass_core import self_reply_cmd from stdplugins.kbass_core import self_reply_cmd

View File

@ -1,3 +1,7 @@
"""
Reply to a message with .s <n> to forward <n> messages from that point to your
saved messages (negative values of <n> go backwards in history)
"""
import asyncio import asyncio
from stdplugins.kbass_core import self_reply_selector from stdplugins.kbass_core import self_reply_selector

View File

@ -1,3 +1,6 @@
"""
Reply to a message with .p <y/n> to toggle the webpage preview of a message
"""
from telethon.errors import MessageNotModifiedError from telethon.errors import MessageNotModifiedError
from telethon.tl.functions.messages import EditMessageRequest from telethon.tl.functions.messages import EditMessageRequest

View File

@ -1,4 +1,7 @@
"""
Like save but makes a draft in your chat of all the messages concatenated with
two newlines
"""
import html import html
from telethon.tl.functions.messages import SaveDraftRequest from telethon.tl.functions.messages import SaveDraftRequest