Skip to content

Commit

Permalink
Merge pull request #290 from weskerty/master
Browse files Browse the repository at this point in the history
Actualizacion Web y Mas
  • Loading branch information
BrunoSobrino committed Sep 19, 2024
2 parents 6336de9 + 6b19f16 commit ad334b6
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 183 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
> [!IMPORTANT]\
> **No** se asegura que este **proyecto siga funcionando al 100% debido** a cuestiones de tiempo personales de @BrunoSobrino, por lo cual **el proyecto esta en manos de colaboradores** y usuarios que deseen aportar actualizaciones.
> [!WARNING]\
> **Este proyecto no ofrece soporte oficial para su uso en Termux.** Termux es una aplicación de terminal para Android y, aunque puede ser utilizada para ejecutar diversos programas, **este proyecto no está diseñado ni probado específicamente para funcionar en Termux**. Por lo tanto, **no garantizamos compatibilidad ni soporte técnico en este entorno**.

# Opciones de despliegue

Expand Down Expand Up @@ -114,6 +111,13 @@ En esta sección encontrarás **botones de despliegue** que te permitirán imple
[![Run on Repl.it](https://binbashbanana.github.io/deploy-buttons/buttons/remade/replit.svg)](https://repl.it/github/BrunoSobrino/TheMystic-Bot-MD)
[![Deploy to Render](https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg)](https://dashboard.render.com/blueprint/new?repo=https://github.com/BrunoSobrino/TheMystic-Bot-MD)
<!-- [![Deploy to Vercel](https://binbashbanana.github.io/deploy-buttons/buttons/remade/vercel.svg)](https://vercel.com/new/clone?repository-url=https://github.com/BrunoSobrino/TheMystic-Bot-MD) -->
<a href="https://brunosobrino.github.io/TheMystic-Bot-MD/">
<img src="https://img.shields.io/badge/Android-3DDC84?style=for-the-badge&logo=android&logoColor=white" alt="Termux">
</a>
<a href="https://brunosobrino.github.io/TheMystic-Bot-MD/">
<img src="https://img.shields.io/badge/Linux-black?style=for-the-badge&logo=linux&logoColor=white" alt="Linux">
<a href="https://brunosobrino.github.io/TheMystic-Bot-MD/">
<img src="https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows">

# Soporte y Comunidad

Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🔮The Mystic Bot🔮</title>
<title>The Mystic Bot🔮</title>
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:[email protected]&display=swap" rel="stylesheet">
<link rel="icon" type="image/gif" href="web/favicon.ico">
<link rel="icon" type="image/x-icon" href="web/favicon.ico">
<link rel="stylesheet" href="web/estilo.css">
<style>
/* Estilo de Carga*/
Expand Down Expand Up @@ -39,7 +39,7 @@
</div>

<video autoplay muted loop id="bg-video" preload="auto">
<source src="https://github.com/user-attachments/assets/fd54742d-a7e9-49f4-b268-da16689918c1" type="video/mp4">
<source src="https://github.com/user-attachments/assets/39cbf647-28cd-4604-a717-ada1439d274b" type="video/mp4">
Er Video
</video>

Expand Down Expand Up @@ -142,7 +142,7 @@
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer>
new Crate({
server: '1278571215635877908',
channel: '1280976262504124508'
channel: '1286022420330840215'
});
</script>

Expand Down
6 changes: 3 additions & 3 deletions web/Guias/Linux/es.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>Instalacion en Linux</h1>
<h1>Comandos</h1>
<p>Abre la Terminal o Konsole y Pega los Comandos de Acuerdo a Tu Distro.</p>
<p>Debian y Basados</p>
<code>sudo apt install wget curl nodejs nano npm git ffmpeg python3 -y</code>
<code>sudo apt install wget curl nodejs nano npm git ffmpeg python3 imagemagick -y</code>
<p>Arch y Basados</p>
<code>sudo pacman -Syu wget curl nodejs nano npm git ffmpeg python --noconfirm </code>
<code>sudo pacman -Syu wget curl nodejs nano npm git ffmpeg python imagemagick --noconfirm </code>
<p>Fedora</p>
<code>sudo dnf install -y wget curl nodejs nano npm git ffmpeg python3</code>
<code>sudo dnf install -y wget curl nodejs nano npm git ffmpeg python3 imagemagick </code>

<p>Luego de que eso Termine Ejecuta esto</p>
<code>git clone https://github.com/BrunoSobrino/TheMystic-Bot-MD.git mystic && cd mystic && npm install && npm start .</code>
Expand Down
6 changes: 3 additions & 3 deletions web/Guias/Linux/ingles.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>Installation on Linux</h1>
<h1>Commands</h1>
<p>Open Terminal or Konsole and paste the commands according to your distro.</p>
<p>Debian and derivatives</p>
<code>sudo apt install wget curl nodejs nano npm git ffmpeg python3 -y</code>
<code>sudo apt install wget curl nodejs nano npm git ffmpeg python3 imagemagick -y</code>
<p>Arch and derivatives</p>
<code>sudo pacman -Syu wget curl nodejs nano npm git ffmpeg python --noconfirm </code>
<code>sudo pacman -Syu wget curl nodejs nano npm git ffmpeg python imagemagick --noconfirm </code>
<p>Fedora</p>
<code>sudo dnf install -y wget curl nodejs nano npm git ffmpeg python3</code>
<code>sudo dnf install -y wget curl nodejs nano npm git ffmpeg python3 imagemagick </code>

<p>After this finishes, run this</p>
<code>git clone https://github.com/BrunoSobrino/TheMystic-Bot-MD.git mystic && cd mystic && npm install && npm start .</code>
Expand Down
9 changes: 6 additions & 3 deletions web/Guias/Termux/es.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ <h1>Guía de Instalación Termux</h1>

<h2>⬇️ Descargar Termux</h2>
<p> Instala Termux <a href="https://github.com/termux/termux-app/releases/download/v0.119.0-beta.1/termux-app_v0.119.0-beta.1+apt-android-7-github-debug_universal.apk">Clic Aqui para Descargar Termux ⬇️</a> Recuerda darle todos los permisos a Termux </p>
<p>Si esa version no funciona con tu telefono, deberas Buscar la Version Compatible en <a href="https://github.com/termux/termux-app/releases">Termux Github</a></p>
<p>Suele decir <code>termux-app_vxxx-+apt-android-7-github-debug_universal.apk</code>. Android 7 se refiere a que funciona con Android 7 y superior. Hay otra versión para Android 7 e inferior llamada Android5. </p>
<blockquote><p> EL TERMUX DE GOOGLE PLAY NO FUNCIONA. </p></blockquote>
<p>Si esa version no funciona con tu telefono, deberas Buscar la Version Compatible en <a href="https://github.com/termux/termux-app/releases">Termux Github ↗️</a> o Descargar <a href="https://f-droid.org/F-Droid.apk"> F-Droid ⬇️</a> y Descargar Termux desde Ahi</p>
<blockquote><p> EL TERMUX DE GOOGLE PLAY NO FUNCIONA. </p></blockquote>


<h2>⬇️ Instalar Mystic Bot</h2>
Expand All @@ -16,6 +15,10 @@ <h2>⬇️ Instalar Mystic Bot</h2>
<h1>📹 Video Demostrativo; </h1>
<video src="https://github.com/user-attachments/assets/a109c5ef-1124-437c-b616-5dc2ca7bdec8" controls width="100%" height="auto"></video>

<p>En caso de Aparecer Error "Arch ya Instalado" puedes borrar Datos de Termux y Empezar de Nuevo. No Minimices para evitar fallas.</p>
<p>Tambien puedes ejecutar simplemente esto para saltar ese error</p>
<code> apt update -y && yes | apt upgrade && pkg install -y wget proot-distro && wget -O - https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/refs/heads/master/web/Guias/Utilidades/Termux.sh | bash </code>

<h2>🖥️ Iniciar de Nuevo</h2>
<p> Para volver a abrir el bot en caso de que se cierre Termux, Solo abre de nuevo Termux, esto hara que se Inicie Automaticamente. </p>
<p>Para cancelar la ejecucion automatica al abrir Termux Presiona la Tecla CTRL + C del Teclado.</p>
Expand Down
9 changes: 6 additions & 3 deletions web/Guias/Termux/ingles.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ <h1>Termux Installation Guide</h1>

<h2>⬇️ Download Termux</h2>
<p> Install Termux <a href="https://github.com/termux/termux-app/releases/download/v0.119.0-beta.1/termux-app_v0.119.0-beta.1+apt-android-7-github-debug_universal.apk">Click Here to Download Termux ⬇️</a> Remember to grant all permissions to Termux. </p>
<p>If this version doesn't work with your phone, you will need to search for the compatible version on <a href="https://github.com/termux/termux-app/releases">Termux Github</a></p>
<p>It usually says <code>termux-app_vxxx-+apt-android-7-github-debug_universal.apk</code>. Android 7 means it works with Android 7 and above. There is another version for Android 7 and below called Android5.</p>
<p>If that version doesn't work with your phone, you should Search for the Compatible Version on <a href="https://github.com/termux/termux-app/releases">Termux Github ↗️</a> or Download <a href="https://f-droid.org/F-Droid.apk">F-Droid ⬇️</a> and Download Termux from There</p>
<blockquote><p> THE TERMUX FROM GOOGLE PLAY DOES NOT WORK. </p></blockquote>

<h2>⬇️ Install Mystic Bot</h2>
<p>Simply copy and paste this into Termux</p>
<code> apt update -y && yes | apt upgrade && pkg install -y wget proot-distro && proot-distro install archlinux && wget -O - https://raw.githubusercontent.com/weskerty/test/main/Termux/mystic.sh | bash </code>
<code> apt update -y && yes | apt upgrade && pkg install -y wget proot-distro && proot-distro install archlinux && wget -O - https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/refs/heads/master/web/Guias/Utilidades/Termux.sh | bash </code>

<h1>📹 Demonstrative Video: </h1>
<video src="https://github.com/user-attachments/assets/a109c5ef-1124-437c-b616-5dc2ca7bdec8" controls width="100%" height="auto"></video>

<p>If you get the error "Arch already installed" you can delete Termux data and start over. Do not minimize to avoid crashes.</p>
<p>You can also simply run this to skip that error</p>
<code> apt update -y && yes | apt upgrade && pkg install -y wget proot-distro && wget -O - https://raw.githubusercontent.com/weskerty/test/main/Termux/mystic.sh | bash </code>

<h2>🖥️ Restart</h2>
<p> To reopen the bot if Termux closes, just open Termux again, this will make it start automatically. </p>
<p>To cancel automatic execution when opening Termux, press the CTRL + C key on the keyboard.</p>
Expand Down
2 changes: 2 additions & 0 deletions web/Guias/Utilidades/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
termux-wake-lock
proot-distro login archlinux -- /bin/bash -c ./update.sh
23 changes: 23 additions & 0 deletions web/Guias/Utilidades/EXEcutable/NSIS.nsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
!include x64.nsh
!include FileFunc.nsh

OutFile "TheMystic.exe"
Icon "F:\Documentos\LinuxMint\ICO\Mystic.ico" #Aqui el logo
RequestExecutionLevel highest
Name "Instalador MysticBot"

Section "MainSection" SEC01

SetOutPath $TEMP
File /oname=$TEMP\UpMystic.bat "F:\Escritorio\UpMystic.bat" #El Script de Instalacion

${If} ${RunningX64}
ExecWait '"$WINDIR\SysNative\cmd.exe" /c "$TEMP\UpMystic.bat"' #Variables para ejecucion nativa en 64Bits
${Else}
ExecWait '"$WINDIR\System32\cmd.exe" /c "$TEMP\UpMystic.bat"'
${EndIf}

Delete "$TEMP\UpMystic.bat"

Quit
SectionEnd
45 changes: 45 additions & 0 deletions web/Guias/Utilidades/EXEcutable/UpMystic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@echo off
setlocal

echo ######### Verificando...

IF NOT EXIST "%USERPROFILE%\mystic" (
echo ######### Instalando...

powershell -NoProfile -ExecutionPolicy Bypass -Command "& { [System.Net.ServicePointManager]::Expect100Continue = $false; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) } -NoNewWindow -Wait"

:: Dependencias en Choco, se puede agregar más.
choco install python nodejs ffmpeg-full git ImageMagick -y

git clone https://github.com/BrunoSobrino/TheMystic-Bot-MD.git "%USERPROFILE%\mystic"
cd "%USERPROFILE%\mystic"
npm install
npm start
exit /b
)

echo ######### Verificando Actualizaciones...

cd "%USERPROFILE%\mystic" || (
echo ######### Error, No Existe Mystic
exit /b
)

git pull https://github.com/BrunoSobrino/TheMystic-Bot-MD.git > git_output.txt

findstr "Already up to date" git_output.txt >nul
if %errorlevel% equ 0 (
echo Actualizado.
) else (
echo Actualizando...
npm install --force || (
echo ######### Error en NPM. Ejecutando Igualmente.
)
)

npm start || (
echo ######### Error al Iniciar. Contacta a los Grupos de Soporte.
)

del git_output.txt
endlocal
10 changes: 10 additions & 0 deletions web/Guias/Utilidades/Termux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
wget https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/refs/heads/master/web/Guias/Utilidades/.bashrc -O ~/.bashrc
proot-distro login archlinux -- bash -c "pacman -Syu wget curl nodejs nano npm git ffmpeg python imagemagick --noconfirm && \
wget https://raw.githubusercontent.com/weskerty/test/main/Termux/update.sh -O ~/update.sh && \
chmod 777 ~/update.sh && \
git clone https://github.com/BrunoSobrino/TheMystic-Bot-MD.git mystic && \
cd mystic && \
npm install && \
npm start ."

7 changes: 7 additions & 0 deletions web/Guias/Utilidades/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
pacman -Syu --noconfirm
cd $HOME/mystic/ || echo Falla. Mystic no Existe.
#git stash && git pull https://github.com/BrunoSobrino/TheMystic-Bot-MD.git && git stash pop || echo "#########Error al actualizar mystic"
#npm install @whiskeysockets/baileys@latest @adiwajshing/baileys@latest --force || echo "#########Error al instalar en mystic"
npm install --force
npm start .
19 changes: 10 additions & 9 deletions web/Guias/Windows/es.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@

<h1> Instalacion en Windows </h1>
<h1>🖥️ Instalacion en Windows </h1>
<img src="https://github.com/user-attachments/assets/6a2efba9-9b47-4195-9ae2-64592352e888" alt="Imagen de guía" width="70%" height="auto"/>
<p> Es tan facil como <a href="https://github.com/weskerty/test/blob/main/Windows/MagiskInstallWindows.bat">Descargar Este Archivo ⬇️</a> y Ejecutarlo como Adminstrador </p>
<p> Eso instalara Automaticamente todo lo que Necesites e Iniciara Pidiendote Iniciar con Codigo QR o Numero de Telefono. </p>
<p> Es tan facil como <a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/releases/download/WInstaller/TheMystic.exe">Descargar⬇️</a> y Ejecutar </p>
<p> Eso instalara Automaticamente todo lo que Necesites e Iniciara Pidiendote Iniciar con Codigo QR o Numero de Telefono cuando Termine de Instalar </p>


<h2> Iniciar Bot Nuevamente </h2>
<p>Para iniciar el bot abre UpdateAndStart.bat que se encuentra en Disco C:\ y Listo. </p>
<h2>🔄 Iniciar Bot Nuevamente </h2>
<p>Para iniciar el bot abre TheMystic.exe de nuevo y Listo. </p>
<br>
<p>Tambien Puedes Abrir la Ubicacion de la Carpeta donde esta y Abrir CMD Desde Ahi, O Directamente desde CMD con este comando <code>cd %USERPROFILE%\mystic && npm start .
</code></p>
<blockquote><p>Windows Tiene una Limitacion con la Terminal el cual pausa la Ejecucion si se Minimiza, ademas de mostrar ventanas emergentes de manera aleatoria al usarse ffmpeg</p>
<p>Para Solucionar esto debes agregar una Tarea en Programador de Tareas</p></blockquote>
<p>Abre el Programador de Tareas y Configuralo con estas Opciones: </p>
<p>Añadir Nueva Tarea Basica o Simple</p>
<p>Agregar Nombre, Elegir UpdateAndStart.bat y que se inicie al inicar el equipo mas Ajustes Avanzados</p>
<p>Agregar Nombre, Elegir TheMystic.EXE y que se inicie al inicar el equipo mas Ajustes Avanzados</p>
<p>Ejecutar Tanto como si se inicia sesion como si no</p>
<p>Ajusta para que no se detenga la tarea despues de 3 dias y demas ajustes preferenciales</p>
<p>Asi; </p>
<h2>Asi; </h2>
<video src="https://github.com/user-attachments/assets/aa3794c1-a753-48f5-b178-a2f709b0820f" controls width="100%" height="auto"></video>

<p>Esto hara que inicie Automaticamente al encender la PC sin verse y sin Pausarse</p>
<h3> Para mas informacion ve a los Grupos de Ayuda en alguna de estas Plataformas o Habla Directamente desde el Widget<h3>

<h1> Instalacion Manual </h1>
<p>Descarga e Instala Nodejs, Git y python</p>
<h1>🖐️ Instalacion Manual </h1>
<p>Descarga e Instala Nodejs, Git, ffmpeg y python</p>
<p>Instalalo, clona la repo, npminstall en la carpeta contenedora ajustes de config y npm start .</p>
44 changes: 23 additions & 21 deletions web/Guias/Windows/ingles.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<h1> Windows Installation </h1>
<img src="https://github.com/user-attachments/assets/6a2efba9-9b47-4195-9ae2-64592352e888" alt="Guide Image" width="70%" height="auto"/>
<p> It is as easy as <a href="https://github.com/weskerty/test/blob/main/Windows/MagiskInstallWindows.bat">Downloading This File ⬇️</a> and Running it as Administrator </p>
<p> This will automatically install everything you need and start by asking you to log in with a QR Code or Phone Number. </p>
<h1>🖥️ Installation on Windows </h1>
<img src="https://github.com/user-attachments/assets/6a2efba9-9b47-4195-9ae2-64592352e888" alt="Guide Image" width="70%" height="auto"/>
<p> It's as easy as <a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/releases/download/WInstaller/TheMystic.exe">Downloading⬇️</a> and Running </p>
<p> That will automatically install everything you need and start asking you to start with QR Code or Phone Number when it finishes installing </p>

<h2> Restart the Bot </h2>
<p>To start the bot, open UpdateAndStart.bat located in Drive C:\ and that’s it. </p>
<p>You can also open the folder location and open CMD from there, or directly from CMD with this command <code>cd %USERPROFILE%\mystic && npm start .</code></p>
<blockquote><p>Windows has a limitation with the terminal where the execution pauses if minimized, and it shows random pop-up windows when using ffmpeg.</p>
<p>To solve this, you need to add a task in Task Scheduler.</p></blockquote>
<p>Open Task Scheduler and configure it with these options: </p>
<p>Add a New Basic or Simple Task</p>
<p>Add a Name, Choose UpdateAndStart.bat, and set it to start at system boot with additional advanced settings.</p>
<p>Run whether the user is logged in or not.</p>
<p>Set it so the task doesn't stop after 3 days and adjust other preferences as needed.</p>
<p>Like this; </p>
<video src="https://github.com/user-attachments/assets/aa3794c1-a753-48f5-b178-a2f709b0820f" controls width="100%" height="auto"></video>
<h2>🔄 Start Bot Again </h2>
<p>To start the bot open TheMystic.exe again and that's it. </p>
<br>
<p>You can also open the folder location where it is and open CMD from there, or directly from CMD with this command <code>cd %USERPROFILE%\mystic && npm start .
</code></p>
<blockquote><p>Windows has a limitation with the Terminal which pauses the execution if it is minimized, in addition to showing pop-ups randomly when using ffmpeg</p>
<p>To solve this you must add a Task in Task Scheduler</p></blockquote>
<p>Open the Task Scheduler and configure it with these options: </p>
<p>Add New Basic or Simple Task</p>
<p>Add Name, Choose TheMystic.EXE and start when the computer starts plus Advanced Settings</p>
<p>Run Whether or not you log in</p>
<p>Adjust so that the task does not stop after 3 days and other preferential settings</p>
<h2>Like this; </h2>
<video src="https://github.com/user-attachments/assets/aa3794c1-a753-48f5-b178-a2f709b0820f" controls width="100%" height="auto"></video>

<p>This will make it start automatically when the PC turns on, without being visible or pausing.</p>
<h3> For more information, check the Help Groups on one of these platforms or contact directly from the Widget.<h3>
<p>This will make it start automatically when you turn on your PC without being seen or pausing.</p>
<h3> For more information, go to the Help Groups on any of these Platforms or Talk Directly from the Widget<h3>

<h1> Manual Installation </h1>
<p>Download and install Node.js, Git, and Python.</p>
<p>Install them, clone the repository, run npm install in the folder containing the config settings, and npm start.</p>
<h1>🖐️ Manual Installation </h1>
<p>Download and Install Nodejs, Git, ffmpeg and python</p>
<p>Install it, clone the repo, npminstall in the config settings and npm start container folder.</p>
2 changes: 1 addition & 1 deletion web/es.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3 id="despliegue-en-otros">Despliegue en Otros</h3>
<img src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg" alt="Deploy to Render">
</a>
<a href="web/Guias/Termux/">
<img src="https://img.shields.io/badge/Termux-000000?style=for-the-badge&logo=iterm2&logoColor=white" alt="Termux">
<img src="https://img.shields.io/badge/Android-3DDC84?style=for-the-badge&logo=android&logoColor=white" alt="Termux">
</a>
<a href="web/Guias/Linux/">
<img src="https://img.shields.io/badge/Linux-black?style=for-the-badge&logo=linux&logoColor=white" alt="Linux">
Expand Down
Loading

0 comments on commit ad334b6

Please sign in to comment.