Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thestoryshack = ["fake","thai","japanese","indonesian","korean","chinese","human","boy","girl","baby","first","last","anime","dog","cat","dragon","ship","funny","country","city","island","planet","company","kingdom","superhero","team","clan","brand","band","character","elf","star wars","pirate","stripper","nord","dwarf","demon","rap"]
- def generateName(to,tipe):
- tipenist,kelamin = tipe,random.choice(["male","female"])
- theName = ""
- a = requests.get(f"https://story-shack-cdn-v2.glitch.me/generators/{tipenist}-name-generator/{kelamin}?count=6").json()["data"]
- try:
- theName += f"{a[0]['name']}"+"\n"
- theName += f"{a[1]['name']}"+"\n"
- theName += f"{a[2]['name']}"+"\n"
- theName += f"{a[3]['name']}"+"\n"
- theName += f"{a[4]['name']}"+"\n"
- theName += f"{a[5]['name']}"
- except Exception as e:
- theName += f"{e}"
- self.sendMessage(to, theName)
- if pesan.lower() == "apilist":
- van ="𝐀𝐩𝐢𝐋𝐢𝐬𝐭:\n"
- no = 0
- for i in Thestoryshack:
- no +=1
- van += f"{no}. {i}\n"
- van += "____________________\n"
- van += f"ทั้งหมด {len(Thestoryshack)} รายการ"
- self.reply(msg.id,to, van)
- if pesan.lower().startswith('reqname '):
- sep = str(pesan.split(' ')[1])
- peoplesian = sep
- generateName(to,peoplesian)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement