mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 18:46:21 +00:00
15 lines
307 B
Python
15 lines
307 B
Python
import random
|
|
import string
|
|
|
|
async def main(context):
|
|
try:
|
|
length = int(context.text.split()[1])
|
|
except:
|
|
length = 8
|
|
if length > 1000:
|
|
length = 100
|
|
s = ""
|
|
for i in range(length):
|
|
s += random.choice(string.ascii_letters + string.digits)
|
|
return f"`{s}`"
|