A Scalping Bot implemented in Python.
- PC with Poetry installed
- Run:
git clone https://github.com/TomJansen25/scalbot.git
cd scalbot
poetry install --no-dev- Fill in required environment variables like in
.env.examplein a.envfile - Run the following to run the example script to run a bot:
poetry shell
python run_bot.py$TOPICNAME = scalbot-topic-123
$JOBNAME = scalbot-job-123
gcloud pubsub topics create $TOPICNAME
gcloud scheduler jobs create pubsub $JOBNAME --schedule "* * * * *" --topic $TOPICNAME --message-body "EARN MONEY" --location europe-west3
gcloud functions deploy FUNCTIONNAME --entry-point ENTRYFUNCTION --region europe-west3 --runtime python39 --trigger-topic $TOPICNAME
gcloud scheduler jobs run $JOBNAME --location europe-west3 # run schedule to test functiongcloud scheduler jobs pause $JOBNAME
gcloud functions deploy scalbot-init-func --entry-point ENTRYFUNCTION --runtime python39 --trigger-topic $TOPICNAME
gcloud scheduler jobs resume $JOBNAMEContributors names and contact info