a big-brained Twitter bot that replies to mentions with Rick and Morty quotes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
394 B

8 months ago
# NOTE: Each pasta tweet should be no more than 263 characters long!
8 months ago
def get_pastas() -> list:
pfile = open("pastas.txt", mode="r")
pastas = pfile.read().split("\n\n")
for n in range(len(pastas)):
pastas[n] = pastas[n].split("\n")
return pastas
PASTAS = get_pastas()
def concat_pasta(sep: str = " "):
return sep.join(random.choice(PASTAS))