-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.py
29 lines (25 loc) · 1.06 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# | |
# --+----------------------------------------------------------+--
# | Code by : yasserbdj96 |
# | Email : [email protected] |
# | Github : https://github.com/yasserbdj96 |
# | BTC : bc1q2dks8w8uurca5xmfwv4jwl7upehyjjakr3xga9 |
# --+----------------------------------------------------------+--
# | all posts #yasserbdj96 ,all views my own. |
# --+----------------------------------------------------------+--
# | |
#START{
from asciitext import *
import sys
try:
font=sys.argv[1]
color=sys.argv[2]
bg=sys.argv[3]
text=sys.argv[4]
if bg.upper()=="FALSE":
print(asciii.asciitext(font,text,color))
else:
print(asciii.asciitext(font,text,color,bg))
except:
print(f"USAGE : python3 {sys.argv[0]} '<FONT_PATH/FONT_URL>' '<COLOR>' '<BACKGROUND/FALSE>' '<TEXT>'")
#}END.