diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..773ff90 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "pip" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 100 \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..8090e26 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,71 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ main ] + schedule: + - cron: '44 4 * * 4' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] + # Learn more: + # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file diff --git a/.github/workflows/py-check.yml b/.github/workflows/py-check.yml new file mode 100644 index 0000000..fb3dfee --- /dev/null +++ b/.github/workflows/py-check.yml @@ -0,0 +1,29 @@ +name: Check Python Package's (pre-requirements) + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index fdddb29..0000000 --- a/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to diff --git a/README.md b/README.md index c15f596..c7e674e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,44 @@ -# pyBot -Bot for Tibia +# Tibia Python Bot + +Um bot simples para automação de tarefas no jogo Tibia, desenvolvido em Python. + +## Descrição + +Este bot foi criado para ajudar na automação de tarefas repetitivas no jogo Tibia. Ele utiliza a biblioteca PyAutoGUI para interagir com a interface do usuário. + +**AVISO:** O uso de bots no Tibia pode violar os Termos de Serviço do jogo e resultar em penalidades, incluindo o banimento da conta. Use este bot por sua conta e risco. + +## Recursos + +- **Auto-Hunt:** Configure locais de caça e deixe o bot caçar automaticamente monstros. +- **Auto-Heal:** Configure o bot para curar automaticamente o personagem em determinadas condições. +- **Loot Automático:** Permita que o bot colete automaticamente itens deixados pelos monstros. + +## Pré-requisitos + +- Python 3.x instalado +- Dependências Python instaladas (`pip install -r requirements.txt`) + +## Configuração + +1. Clone o repositório: `git clone https://github.com/seu-usuario/tibia-python-bot.git` +2. Navegue até o diretório: `cd tibia-python-bot` +3. Instale as dependências: `pip install -r requirements.txt` +4. Configure as opções no arquivo `config.py` +5. Execute o bot: `python tibia_bot.py` + +## Contribuições + +Contribuições são bem-vindas! Se você quiser melhorar este bot, sinta-se à vontade para enviar um pull request. + +## Aviso Legal + +Este bot é fornecido apenas para fins educacionais e de teste. O uso deste bot no Tibia pode violar os Termos de Serviço do jogo. + +## Autor + +[Seu Nome] + +## Licença + +Este projeto está licenciado sob a [Licença MIT](LICENSE). diff --git a/main.py b/main.py new file mode 100644 index 0000000..f957816 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +print("Hellow") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f849cd6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +annotated-types==0.6.0 +anyio==3.7.1 +asgiref==3.7.2 +certifi==2023.11.17 +colorama==0.4.6 +distro==1.8.0 +Django==4.2.6 +h11==0.14.0 +httpcore==1.0.2 +httpx==0.25.2 +idna==3.6 +openai==1.3.6 +Pillow==10.1.0 +pydantic==2.5.2 +pydantic_core==2.14.5 +sniffio==1.3.0 +sqlparse==0.4.4 +tk==0.1.0 +tqdm==4.66.1 +typing_extensions==4.8.0 +tzdata==2023.3