Browse Source

add pasta getter

canonical
Andrew Rogers 7 months ago
parent
commit
6fb0fc3a75
  1. 2
      pseudbot/bot.py
  2. 12
      pseudbot/pastas.py

2
pseudbot/bot.py

@ -4,6 +4,8 @@ import json as j
import tweepy as t
import typing
from .pastas import PASTAS
def parse_args(args: [str], name: str):
parser = argparse.ArgumentParser(prog=name)

12
pseudbot/pastas.py

@ -0,0 +1,12 @@
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()
Loading…
Cancel
Save