mirror of
https://github.com/pseudbot/pseudbot.git
synced 2026-05-26 14:05:07 +00:00
add pasta getter
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user