From b3d697eaf7f0aa38ef63449fbeae2ea606d05eb5 Mon Sep 17 00:00:00 2001 From: Docker VM Date: Fri, 19 Jul 2024 20:15:50 -0400 Subject: [PATCH] Update README --- .env.example | 4 ++ README.md | 125 ++++++++++++++++++++++++++++++++------------------- package.json | 2 +- 3 files changed, 83 insertions(+), 48 deletions(-) diff --git a/.env.example b/.env.example index 2a4a8b7..6a18842 100644 --- a/.env.example +++ b/.env.example @@ -62,3 +62,7 @@ AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false VITE_APP_NAME="${APP_NAME}" + +MIX_TWITCH_BOT_USERNAME= +MIX_TWITCH_BOT_OAUTH_TOKEN= +MIX_TWITCH_CHANNEL= \ No newline at end of file diff --git a/README.md b/README.md index 1a4c26b..5748758 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,97 @@ -

Laravel Logo

+# Pixel Placer Bot -

-Build Status -Total Downloads -Latest Stable Version -License -

+This README provides an overview of the Pixel Placer Bot, a simple bot designed to read Twitch chat and modify the colors of cells on a 16 x 16 grid. -## About Laravel +## Introduction -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +The Pixel Placer Bot is a fun project that allows Twitch chat users to interact with a virtual grid by sending commands. Each command corresponds to a specific cell on the grid, and when a command is received, the bot changes the color of the corresponding cell. -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). +## Features -Laravel is accessible, powerful, and provides tools required for large, robust applications. +- Twitch chat integration: The bot connects to a Twitch channel's chat and listens for commands from viewers. +- Grid manipulation: The bot modifies the colors of cells on a 16 x 16 grid based on the received commands. +- Command parsing: The bot parses the commands received from Twitch chat and maps them to specific cells on the grid. +- Color customization: The bot supports a variety of colors, allowing viewers to create unique pixel art on the grid. -## Learning Laravel +## Getting Started -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. +To use the Pixel Placer Bot, follow these steps: -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. +1. Clone the repository to your local machine. +2. Install the required dependencies using `npm install`. +3. Configure the Twitch channel and bot credentials in the `.env` file. +4. Run the bot using `npm run dev`. +5. Open the web browser and navigate to http://localhost:5173/ (You can open this with OBS using the Browser Source) +6. Join the Twitch channel and start sending commands to modify the grid. -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. +## Command Syntax -## Laravel Sponsors +To interact with the Pixel Placer Bot, use the following command syntax: -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). +``` +!place +``` -### Premium Partners +- ``: The x-coordinate of the cell on the grid (A-P). +- ``: The y-coordinate of the cell on the grid (1-16). +- ``: The color to assign to the cell (e.g., red, blue, green). -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[WebReinvent](https://webreinvent.com/)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Jump24](https://jump24.co.uk)** -- **[Redberry](https://redberry.international/laravel/)** -- **[Active Logic](https://activelogic.com)** -- **[byte5](https://byte5.de)** -- **[OP.GG](https://op.gg)** +### Default Colors + +!place A 1 white + + +!place B 2 lightGray + + +!place C 3 mediumGray + + +!place D 4 darkGray + + +!place E 5 pink + + +!place F 6 red + + +!place G 7 orange + + +!place H 8 brown + + +!place I 9 yellow + + +!place J 10 lightGreen + + +!place K 11 green + + +!place L 12 cyan + + +!place M 13 blue + + +!place N 14 darkBlue + + +!place O 15 purple + + +!place P 16 darkPurple + + +!place A 1 black ## Contributing -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. +Contributions to the Pixel Placer Bot are welcome! If you have any ideas, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository. ## License -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +This project is licensed under the [MIT License](LICENSE). diff --git a/package.json b/package.json index 88df6bc..30b8ef2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "type": "module", "scripts": { - "dev": "vite build", + "dev": "vite", "build": "vite build" }, "devDependencies": {