From 9827f4a5dcacf73019f48335c8181d3560b86b4a Mon Sep 17 00:00:00 2001 From: c3b2a <62082214+c3b2a@users.noreply.github.com> Date: Sun, 7 Feb 2021 12:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ranstr=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyword_func/ranstr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyword_func/ranstr.py b/keyword_func/ranstr.py index acc3343..23c80b4 100644 --- a/keyword_func/ranstr.py +++ b/keyword_func/ranstr.py @@ -1,7 +1,7 @@ import random import string -def main(context): +async def main(context): try: length = int(context.text.split()[1]) except: @@ -11,4 +11,4 @@ def main(context): s = "" for i in range(length): s += random.choice(string.ascii_letters + string.digits) - return f"`{s}`" \ No newline at end of file + return f"`{s}`"