From 758af2b0c4e58d4f219e91232a52c5aaf269de00 Mon Sep 17 00:00:00 2001 From: Jason Lunder Date: Wed, 30 Jul 2025 17:16:27 -0700 Subject: [PATCH 1/3] fix readme formatting --- README.md | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 66d2d8a..0c1fe2f 100644 --- a/README.md +++ b/README.md @@ -1,58 +1,58 @@ -SETTING UP THE PROJECT: +SETTING UP THE PROJECT: # Installing Python -https://www.python.org/downloads/release/python-392/ -Download the "Windows installer (64-bit)" version +https://www.python.org/downloads/release/python-392/ +Download the "Windows installer (64-bit)" version When you run the installer, be sure to check "Add to Path" button # Install VSCode -Download: https://code.visualstudio.com/ -Hit next -Browse for extensions +Download: https://code.visualstudio.com/ +Hit next +Browse for extensions Download the Python extension # Twitch Moderation Auth Key -Go to https://twitchtokengenerator.com/ -Click Custom Scope Token -Enable the following: -channel:moderate -channel:read:subscriptions -moderation:read -moderator:manage:banned_users -Then hit Generate Token! at the bottom +Go to https://twitchtokengenerator.com/ +Click Custom Scope Token +Enable the following: +channel:moderate +channel:read:subscriptions +moderation:read +moderator:manage:banned_users +Then hit Generate Token! at the bottom Save the Access Key # OpenAI API Key -Create an OpenAI Account -Go to Billing section, add $5 to balance +Create an OpenAI Account +Go to Billing section, add $5 to balance Set up API key # Create Auth key env variables -Hit windows key, look for "Edit the system environment variables" -Press Environment Variables -In "User Variables..." window, hit new: -Name: TWITCH_MOD_ACCESS_TOKEN -Value: (copied key) -Name: OPENAI_API_KEY -Value: (copied key) +Hit windows key, look for "Edit the system environment variables" +Press Environment Variables +In "User Variables..." window, hit new: +Name: TWITCH_MOD_ACCESS_TOKEN +Value: (copied key) +Name: OPENAI_API_KEY +Value: (copied key) # OBS Websockets setup -In OBS, click Tools -> WebSocket Server Settings -Make sure “Enable WebSocket server” is checked -Set Server Port as 4455 +In OBS, click Tools -> WebSocket Server Settings +Make sure “Enable WebSocket server” is checked +Set Server Port as 4455 Set Server Password as TwitchChat9 # OBS new sources (e.g. text elements) -Create a new Text GDI(+) source +Create a new Text GDI(+) source Name it "BANNED USER" # Download this project's files Dropbox link # Pip install python modules -Open the window with the project files above -Click in the folder address bar, type cmd, hit enter -In the terminal, run "pip install -r requirements.txt" +Open the window with the project files above +Click in the folder address bar, type cmd, hit enter +In the terminal, run "pip install -r requirements.txt" # Quest test run -Make sure that they can run level_0_code in their VSCode \ No newline at end of file +Make sure that they can run level_0_code in their VSCode From 443293f75a5c99270d780ddc84714078ef044c76 Mon Sep 17 00:00:00 2001 From: Jason Lunder Date: Wed, 30 Jul 2025 17:17:02 -0700 Subject: [PATCH 2/3] add chat read and chat edit permissions in auth token instructions (required) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0c1fe2f..46f1935 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Download the Python extension Go to https://twitchtokengenerator.com/ Click Custom Scope Token Enable the following: +chat:read +chat:edit channel:moderate channel:read:subscriptions moderation:read From d30f1ecbcc23ab75be9d926f88ab771831a0b8c8 Mon Sep 17 00:00:00 2001 From: Jason Lunder Date: Wed, 30 Jul 2025 17:17:33 -0700 Subject: [PATCH 3/3] fix formatting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 46f1935..022e44a 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ Download the Python extension Go to https://twitchtokengenerator.com/ Click Custom Scope Token Enable the following: -chat:read -chat:edit +chat:read +chat:edit channel:moderate channel:read:subscriptions moderation:read