ChatGPT Sports Betting Bot
This is the code for the "ChatGPT Sports Betting Bot" Video by Siraj Raval on Youtube. This repository is a starter template for you to build your own sports betting bot.
Setup Instructions (easy mode)
If you just want to run a sports betting bot in the cloud without having to install any dependencies or deploy your own version, run either of the two colab notebooks below.
And get API keys from
Make Bets with Predictions here:
Setup Instructions (hard mode)
If you want to deploy your own sports betting bot and have it make predictions consistently, follow the setup instructions below to initialize your firebase app template for vercel deployment. The app still needs to fetch predictions from the python back-end and display it on the react front end, I just did it manually for the video. It also doesn't yet make bets programmatically, I have to do that manually. It was difficult for me to find a programmatic betting API.
Credits
Ryankrumenacker, kyleskom, React Native Market, OpenAI, Twitter
How to use
-
Download or clone this repo.
-
Install dependencies.
npm install
// or
yarn install
- Go to
src/core/config.js
and replaceFIREBASE_CONFIG
with your own firebase config.
export const FIREBASE_CONFIG = {
apiKey: 'xxx-yyy-zzz', // etc.
// rest of your firebase config
}
-
Turn on Google and Facebook Providers inside your Firebase Project:
-
Google Sign In configuration:
- Follow official Expo docs on Google Sign In: https://docs.expo.io/versions/latest/sdk/google/#using-it-inside-of-the-expo-app
- Go to
src/core/config.js
and replaceANDROID_GOOGLE_CLIENT_ID
andIOS_GOOGLE_CLIENT_ID
with your own generated IDs. - Before submitting your app to Google Play, make sure to follow these docs: https://docs.expo.io/versions/latest/sdk/google/#deploying-to-a-standalone-app-on-android
- Before submitting your app to App Store, make sure to follow these docs: https://docs.expo.io/versions/latest/sdk/google/#deploying-to-a-standalone-app-on-ios
-
Facebook Login configuration:
- Follow official Expo docs on Facebook Login: https://docs.expo.io/versions/latest/sdk/facebook/#registering-your-app-with-facebook
- Go to
app.json
and replacefacebookScheme
,facebookAppId
andfacebookDisplayName
with your own generated IDs/names.
-
Run project on iOS / Android.
npm run ios // npm run android
// or
yarn ios // yarn android