Skip to content

Commit 2a71007

Browse files
authored
Merge pull request #12 from botcity-dev/main
Update Legacy to include warning.
2 parents 0cec956 + da2441f commit 2a71007

File tree

8 files changed

+69
-1
lines changed

8 files changed

+69
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Getting Started
2323

24-
This repository contains a cookiecutter template for generating a Bot using
24+
This repository contains a cookiecutter template for generating a Bot using
2525
BotCity's Python Framework.
2626

2727
To create a templated project all you need to do is:

hooks/pre_gen_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import re
22
import sys
33

4+
45
bot_id = '{{ cookiecutter.bot_id }}'
56

67
pattern = re.compile("^[a-z|A-Z]+[a-z|A-Z|_]*[a-z|A-Z]$")

hooks/pre_prompt.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import sys
2+
3+
print("*"*80)
4+
print("*" + "WARNING".center(78) + "*")
5+
print("*"*80)
6+
print("")
7+
print("You are using an outdated version of the template which is no longer recommended.")
8+
print("While this template works and is valid, it is strongly recommended to create a new project with the latest template version.")
9+
print("")
10+
print("Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/")
11+
print("")
12+
13+
try:
14+
input(f"Press any key to continue or use Ctrl+C to cancel.")
15+
except KeyboardInterrupt:
16+
sys.exit("Interrupted by the user")
17+
pass

{{ cookiecutter.bot_id.replace(' ', '_') }}/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22

33
{{ cookiecutter.project_short_description}}
44

5+
## WARNING
6+
7+
You are using an outdated version of the template which is no longer recommended.
8+
9+
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
10+
11+
Please refer to our [documentation page](https://documentation.botcity.dev/tutorials/python-automations/desktop/).

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/bot.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
Please refer to the documentation for more information at https://documentation.botcity.dev/
2121
"""
2222

23+
"""
24+
********************************************************************************
25+
* WARNING *
26+
********************************************************************************
27+
28+
You are using an outdated version of the template which is no longer recommended.
29+
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
30+
31+
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
32+
"""
2333
from botcity.core import DesktopBot
2434
# Uncomment the line below for integrations with BotMaestro
2535
# Using the Maestro SDK

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/bothbot.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
Please refer to the documentation for more information at https://documentation.botcity.dev/
2121
"""
2222

23+
"""
24+
********************************************************************************
25+
* WARNING *
26+
********************************************************************************
27+
28+
You are using an outdated version of the template which is no longer recommended.
29+
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
30+
31+
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
32+
"""
33+
2334
from botcity.web import WebBot, Browser
2435
from botcity.core import DesktopBot
2536
# Uncomment the line below for integrations with BotMaestro

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/custombot.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
Please refer to the documentation for more information at https://documentation.botcity.dev/
2121
"""
2222

23+
"""
24+
********************************************************************************
25+
* WARNING *
26+
********************************************************************************
27+
28+
You are using an outdated version of the template which is no longer recommended.
29+
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
30+
31+
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
32+
"""
33+
2334
from botcity.base import BaseBot
2435
# Uncomment the line below for integrations with BotMaestro
2536
# Using the Maestro SDK

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/webbot.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
Please refer to the documentation for more information at https://documentation.botcity.dev/
2121
"""
2222

23+
"""
24+
********************************************************************************
25+
* WARNING *
26+
********************************************************************************
27+
28+
You are using an outdated version of the template which is no longer recommended.
29+
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
30+
31+
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
32+
"""
33+
2334
from botcity.web import WebBot, Browser
2435
# Uncomment the line below for integrations with BotMaestro
2536
# Using the Maestro SDK

0 commit comments

Comments
 (0)