English Update

This commit is contained in:
Thomas
2025-10-05 14:36:22 +02:00
parent 2992bda898
commit ea091488bc
4 changed files with 379 additions and 115 deletions

View File

@@ -56,3 +56,90 @@ node ws_server.js
```
Dashboardet skifter automatisk til WebSocket, hvis tilgængelig.
---
#English
Installation Guide Twitch PHP Bot
##1⃣ Download
Clone or download the ZIP from GitHub:
```
git clone https://github.com/<your-username>/twitch-php-bot.git
```
Place it in your web server directory, for example:
```
C:\xampp\htdocs\bot\
```
<br>
2⃣ Requirements
PHP 8.1+
Enabled extensions:
```
pdo_sqlite
curl
mbstring
json
```
Check your php.ini file and make sure these are not commented out.
3⃣ Configuration
Create a file named .env in the project root:
.env
```
TWITCH_CHANNEL=yourchannelname
TWITCH_OAUTH=oauth:xxxxxxxxxxxxxxxxxxxx
TWITCH_CLIENT_ID=your_client_id
TWITCH_CLIENT_SECRET=your_client_secret
```
Get your OAuth token here: https://twitchapps.com/tmi/
4⃣ Database & Admin
Open:
```
http://localhost/bot/web/migrate_users.php
```
→ ensures correct table columns
Then open:
```
http://localhost/bot/web/create_admin.php
```
→ creates your admin user
Login credentials:
```
Username: admin
Password: demo
```
5⃣ Start the Bot
Go to:
```
http://localhost/bot/web/login.php
```
Log in and click Start
The bot runs in PHP behind the scenes and responds to chat commands.
6⃣ (Optional) Live Log via WebSocket
Install Node.js, then run:
```
npm install ws
node ws_server.js
```
The dashboard will automatically switch to WebSocket mode if available.