-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
20 lines (19 loc) 路 673 Bytes
/
Copy pathapp.py
File metadata and controls
20 lines (19 loc) 路 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import modules
from modules.listner import ListenerLOG
from modules.bot import BotLOG
import os
from glob import glob
print("Welcome to BotLogger! 馃憢")
print("What are you looking for ?")
while True:
c = int(input("\t1. To record\n\t2.To play\n"))
if c == 1:
filename = str(input("Alright! Drop a file name: "))
llog = ListenerLOG(filename)
llog.run()
else:
print("JSON FILE LIST")
print(*[ "{0}\n".format(pos_json) for pos_json in os.listdir('.logs/') if pos_json.endswith('.json')])
filename = str(input("Alright! Drop a file name from the above list: \n"))
blog = BotLOG(filename)
blog.run()