mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
refactor: Migrate bot core and modules from talia_bot to bot directory, update start_bot.sh and Dockerfile, and modify README.md.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
# Get the directory of the script
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Set PYTHONPATH to include the parent directory
|
||||
export PYTHONPATH="$PYTHONPATH:$DIR/.."
|
||||
# Ensure the project root is on PYTHONPATH so absolute imports resolve
|
||||
export PYTHONPATH="$DIR:${PYTHONPATH}"
|
||||
|
||||
# Run the bot
|
||||
python3 "$DIR/talia_bot/main.py"
|
||||
# Run the bot using the package entrypoint
|
||||
python3 -m bot.main
|
||||
|
||||
Reference in New Issue
Block a user