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.
|
|
|
# NOTE: Each pasta tweet should be no more than 263 characters long!
|
|
|
|
|
|
|
|
|
|
|
|
def get_pastas() -> list:
|
|
|
|
pfile = open("pastas.txt", mode="r")
|
|
|
|
pastas = pfile.read().split("\n\n")
|
|
|
|
pfile.close()
|
|
|
|
|
|
|
|
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))
|