Skip to content

Commit

Permalink
Merge pull request #12 from botcity-dev/main
Browse files Browse the repository at this point in the history
Update Legacy to include warning.
  • Loading branch information
hhslepicka authored Oct 3, 2024
2 parents 0cec956 + da2441f commit 2a71007
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Getting Started

This repository contains a cookiecutter template for generating a Bot using
This repository contains a cookiecutter template for generating a Bot using
BotCity's Python Framework.

To create a templated project all you need to do is:
Expand Down
1 change: 1 addition & 0 deletions hooks/pre_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re
import sys


bot_id = '{{ cookiecutter.bot_id }}'

pattern = re.compile("^[a-z|A-Z]+[a-z|A-Z|_]*[a-z|A-Z]$")
Expand Down
17 changes: 17 additions & 0 deletions hooks/pre_prompt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sys

print("*"*80)
print("*" + "WARNING".center(78) + "*")
print("*"*80)
print("")
print("You are using an outdated version of the template which is no longer recommended.")
print("While this template works and is valid, it is strongly recommended to create a new project with the latest template version.")
print("")
print("Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/")
print("")

try:
input(f"Press any key to continue or use Ctrl+C to cancel.")
except KeyboardInterrupt:
sys.exit("Interrupted by the user")
pass
7 changes: 7 additions & 0 deletions {{ cookiecutter.bot_id.replace(' ', '_') }}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

{{ cookiecutter.project_short_description}}

## WARNING

You are using an outdated version of the template which is no longer recommended.

While this template works and is valid, it is strongly recommended to create a new project with the latest template version.

Please refer to our [documentation page](https://documentation.botcity.dev/tutorials/python-automations/desktop/).
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
Please refer to the documentation for more information at https://documentation.botcity.dev/
"""

"""
********************************************************************************
* WARNING *
********************************************************************************
You are using an outdated version of the template which is no longer recommended.
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
"""
from botcity.core import DesktopBot
# Uncomment the line below for integrations with BotMaestro
# Using the Maestro SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
Please refer to the documentation for more information at https://documentation.botcity.dev/
"""

"""
********************************************************************************
* WARNING *
********************************************************************************
You are using an outdated version of the template which is no longer recommended.
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
"""

from botcity.web import WebBot, Browser
from botcity.core import DesktopBot
# Uncomment the line below for integrations with BotMaestro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
Please refer to the documentation for more information at https://documentation.botcity.dev/
"""

"""
********************************************************************************
* WARNING *
********************************************************************************
You are using an outdated version of the template which is no longer recommended.
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
"""

from botcity.base import BaseBot
# Uncomment the line below for integrations with BotMaestro
# Using the Maestro SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
Please refer to the documentation for more information at https://documentation.botcity.dev/
"""

"""
********************************************************************************
* WARNING *
********************************************************************************
You are using an outdated version of the template which is no longer recommended.
While this template works and is valid, it is strongly recommended to create a new project with the latest template version.
Please refer to our documentation: https://documentation.botcity.dev/tutorials/python-automations/desktop/
"""

from botcity.web import WebBot, Browser
# Uncomment the line below for integrations with BotMaestro
# Using the Maestro SDK
Expand Down

0 comments on commit 2a71007

Please sign in to comment.