diff --git a/pseudbot/bot.py b/pseudbot/bot.py index a8f17c4..fc87b06 100644 --- a/pseudbot/bot.py +++ b/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) diff --git a/pseudbot/pastas.py b/pseudbot/pastas.py new file mode 100644 index 0000000..87212b3 --- /dev/null +++ b/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()