mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 18:04:12 +00:00
更新 ranstr 函数
This commit is contained in:
parent
156d20864c
commit
9827f4a5dc
@ -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}`"
|
||||
return f"`{s}`"
|
||||
|
Loading…
Reference in New Issue
Block a user