-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate
40 lines (29 loc) · 1 KB
/
template
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
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/python3
import sys
if len(sys.argv) == 1:
print("template generator missing 1 argument: template filename")
exit(22)
if len(sys.argv) > 2:
print("too many arguments: template filename")
exit(23)
boiler_plate = """
\"\"\"
^ ^ NekoTPy telegram bot API wrapper v Bliss(A)
=UwU= this software is distributed as is without warranty
w w developed by @NekoMimiOfficial 2023(c) NekoLabs LTD
NekoTPy is a telegram bot API wrapper which is async ready
and feature rich to write bots in a more elegant and simple
style minimizing keystrokes
this library takes inspiration of the discord.py syntax
if you are used to it then you'll be at home since its
almost a 1to1 syntax (minus that it's telegram)
for more info and guides, please refer to the docs at:
<DOCS_PLACEHOLDER>
\"\"\"
"""
buffer = open(sys.argv[1], 'w')
data = f"import os{boiler_plate}"
buffer.write(data)
buffer.close()
print(f"Created template: {sys.argv[1]}")
exit(0)