├── pt-BR'
├── .flake8
├── deps.txt
├── finalizar_bot_windows.bat
├── comands_list.sh
├── executar_bot_windows.bat
├── .isort.cfg
├── config.example.ini
├── pyproject.toml
├── files
├── texto_bans.txt
├── commands.json
├── texto_moderacao_bans.txt
├── blacklist_piadas.txt
├── texto_engajamento.txt
└── counters.json
├── CONTRIBUTING.md
├── .github
└── workflows
│ └── ci.yml
├── .pre-commit-config.yaml
├── README.md
├── .gitignore
├── bot.py
├── poetry.lock
└── LICENSE
/pt-BR':
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.flake8:
--------------------------------------------------------------------------------
1 | [flake8]
2 | max-line-length = 120
3 |
--------------------------------------------------------------------------------
/deps.txt:
--------------------------------------------------------------------------------
1 | requests >= 2.24.0
2 | twitchio >= 1.1.0
3 | requests-html == 0.10.0
4 | pyttsx3
--------------------------------------------------------------------------------
/finalizar_bot_windows.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | @echo finalizando bot ...
3 | echo %time%
4 | taskkill /IM "python.exe" /F
5 | timeout 5 > NUL
6 | echo %time%
--------------------------------------------------------------------------------
/comands_list.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | cat bot.py | egrep -oE "@bot.command\(name=.*[a-z]" | sed "s/^@bot.command(name=\|name)/\!/" | sed "s/'\|\!name//" > files/commands.txt
4 |
5 | exit 0
--------------------------------------------------------------------------------
/executar_bot_windows.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | @echo iniciando o bot ...
3 | echo %time%
4 | timeout 3 > NUL
5 | echo %time%
6 | d:
7 | cd D:\CODES\BACKEND\PYTHON\bot-twitch-python\
8 | @echo Bot iniciado!
9 | python.exe bot.py
--------------------------------------------------------------------------------
/.isort.cfg:
--------------------------------------------------------------------------------
1 | [settings]
2 | force_single_line = True
3 | include_trailing_comma = True
4 | known_third_party = requests,requests_html,twitchio
5 | line_length = 99
6 | multi_line_output = 3
7 | order_by_type = False
8 | use_parentheses = True
9 |
--------------------------------------------------------------------------------
/config.example.ini:
--------------------------------------------------------------------------------
1 | [bot]
2 | # Nome do usuário do bot.
3 | username=casadodevbot
4 |
5 | # Canal que o bot estará ativo.
6 | channel=casadodev
7 |
8 | # Token de acesso (obtenha um aqui: https://twitchapps.com/tmi/).
9 | oauth_token=
10 |
11 | # Prefixo dos comandos, ex: !ban.
12 | command_prefix=!
--------------------------------------------------------------------------------
/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool.poetry]
2 | name = "bot-twitch-python"
3 | version = "0.1.0"
4 | description = ""
5 | authors = ["Casa do Dev"]
6 |
7 | [tool.poetry.dependencies]
8 | python = "^3.8"
9 | requests = "^2.24.0"
10 | twitchio = "^1.1.0"
11 | requests-html = "^0.10.0"
12 |
13 | [tool.poetry.dev-dependencies]
14 | pre-commit = "^2.7.1"
15 |
16 | [build-system]
17 | requires = ["poetry-core>=1.0.0"]
18 | build-backend = "poetry.core.masonry.api"
19 |
--------------------------------------------------------------------------------
/files/texto_bans.txt:
--------------------------------------------------------------------------------
1 | foi banido por não usar js
2 | foi banido por não gostar de pão
3 | foi banido por usar php
4 | foi banido por usar tema branco no vscode
5 | foi banido por esquecer o ponto e virgula
6 | foi banido por não ler a documentação
7 | foi banido por chegar atrasado na live
8 | foi banido por não gostar do @pokemaobr
9 | foi banido por não programar em deno
10 | foi banido por ser desumilde
11 | foi banido por preguiça excessiva
12 | foi banido por usar dark mode
13 | foi banido por usar windows
14 | foi banido por falar biscoito
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Colaborem com nosso projeto
2 |
3 | Você pode aprender e testar suas habilidades, ou criar algo que seja legal para a galera utilizar durante as lives.
4 |
5 | Inicialmente, o bot está sendo construido em Python, mas os planos são grandes. #MandaJava #MandaNode #MandaDotNet #MandaGo
6 |
7 | - Fiquem a vontade para enviar Issues com sugestões, ou PRs com suas constribuições :)
8 |
9 | Veja nossas lives, sempre à noite por volta das 19h, em [https://www.twitch.tv/casadodev](https://www.twitch.tv/casadodev)
10 |
11 | - Cirino, @CasaDoDev
12 |
--------------------------------------------------------------------------------
/files/commands.json:
--------------------------------------------------------------------------------
1 | {
2 | "rt": "Deixa o RT lá por favor :) -> https://twitter.com/casadodev/status/1331374095661936640",
3 | "hm": "https://www.twitch.tv/casadodev/clip/SullenAssiduousCiderBigBrother",
4 | "fmirele": "Projeto devolver a Mirele -> https://clips.twitch.tv/ObedientBigQuailRickroll",
5 | "hype": "GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat GlitchCat",
6 | "barbeiro": "https://clips.twitch.tv/SarcasticPlumpJuiceAMPEnergy",
7 | "bração": "/me OLHA O BRAÇÃO PepeLaugh"
8 | }
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: Build
2 | on:
3 | push:
4 | branches:
5 | - master
6 |
7 | pull_request:
8 | branches:
9 | - master
10 | jobs:
11 | bootstrap:
12 | strategy:
13 | matrix:
14 | os:
15 | - ubuntu-20.04
16 | - macos-latest
17 | - windows-latest
18 |
19 | name: run-precommit
20 | runs-on: ${{ matrix.os }}
21 | steps:
22 | - uses: actions/checkout@v2.3.3
23 |
24 | - uses: actions/setup-python@v2.1.3
25 | with:
26 | python-version: "3.8"
27 |
28 | - name: install dependencies
29 | run: |
30 | pip install poetry
31 | poetry install
32 |
33 | - name: run pre-commit
34 | run: |
35 | poetry run pre-commit run --all-files --show-diff-on-failure
36 |
--------------------------------------------------------------------------------
/.pre-commit-config.yaml:
--------------------------------------------------------------------------------
1 | repos:
2 | - repo: https://github.com/pre-commit/pre-commit-hooks
3 | rev: v4.6.0
4 | hooks:
5 | - id: check-merge-conflict
6 | - id: check-yaml
7 | - id: trailing-whitespace
8 | - repo: https://github.com/PyCQA/flake8
9 | rev: 7.1.0
10 | hooks:
11 | - id: flake8
12 | additional_dependencies:
13 | - flake8-bugbear==20.1.4
14 | - flake8-builtins==1.5.3
15 | - flake8-comprehensions==3.2.3
16 | - flake8-tidy-imports==4.1.0
17 | - repo: https://github.com/hhatto/autopep8
18 | rev: v2.3.1
19 | hooks:
20 | - id: autopep8
21 | - repo: https://github.com/asottile/add-trailing-comma
22 | rev: v3.1.0
23 | hooks:
24 | - id: add-trailing-comma
25 | args: [--py36-plus]
26 | - repo: https://github.com/PyCQA/isort
27 | rev: 5.13.2
28 | hooks:
29 | - id: isort
30 |
--------------------------------------------------------------------------------
/files/texto_moderacao_bans.txt:
--------------------------------------------------------------------------------
1 | foi banido por usar php
2 | foi banido por usar tema branco no vscode
3 | foi banido por não gostar de pão
4 | foi banido por esquecer o ponto e virgula
5 | foi banido por não ler a documentação
6 | foi banido por não usar php
7 | foi banido por não trocar o tema do vs code que eu comprei
8 | foi banido por não ler o guia do mochileiro das galáxias
9 | foi banido por chegar atrasado na live
10 | foi banido por não gostar do @pokemaobr
11 | foi banido por não programar em deno
12 | foi banido por copiar e colar
13 | foi banido por não acertar nenhum desenho.
14 | foi banido por ser um bot.
15 | foi banido por preguiça excessiva
16 | foi banido por ter escondido o Um Anel foi banido por ser desumilde.
17 | foi banido por não dar comida pro bichinho.
18 | banido por não dar comida pro bichinho
19 | foi banido por usar dark mode
20 | foi banido por usar windows
21 | foi banido por não gostar de codar e enviado para banhamas.
22 |
--------------------------------------------------------------------------------
/files/blacklist_piadas.txt:
--------------------------------------------------------------------------------
1 | Quantas bichas são necessárias para se trocar uma lâmpada?
2 | O que dá a mistura de um burro com uma tartaruga?
3 | Como é que a loira acende a luz depois de fazer sexo?
4 | Aqui em casa tem 5 bolas de futebol na sala, 9 no quintal e 3 no quarto. Quantas bolas eu tenho?
5 | Por que a loira sufocada saiu da fábrica de tecidos?
6 | Qual a diferença entre a loira e o pão?
7 | O Pinto e a Pinta foram para o motel, quem pagou a conta?
8 | Como saber se o homem é padre ou se é pastor?
9 | O que o laxante disse para a merda?
10 | Por que a loira colocou o dicionario na panela com água quente?
11 | O que um canibal disse para o outro ao ver uma mulher só com a metade do braço andando no meio da tribo?
12 | Qual é a diferença entre uma pizza e uma prostituta?
13 | Qual é a diferença entre a puta e o sábio?
14 | Que ator a namorada do Damon Hill chama quando eles estão transando?
15 | Como se faz para afogar uma loira?
16 | O que você obtém quando dá para uma loira um centavo pelos pensamentos dela?
17 |
--------------------------------------------------------------------------------
/files/texto_engajamento.txt:
--------------------------------------------------------------------------------
1 | Faça uma doação de R$6,66 (Sustinho), ou R$66,66 (Sustão), para ajudar no Cha de Bebê da Melinda :)
2 | você já se hidratou hoje?
3 | usem mascaras para ir ao mercado!
4 | hoje é um grande dia para aprender flash.
5 | hoje está um lindo dia!
6 | Nenhuma dúvida é idiota!!
7 | Já agradeceu o Linus Torvald hoje !?
8 | Faça uma doação de R$6,66 (Sustinho), ou R$66,66 (Sustão), para ajudar no Cha de Bebê da Melinda :)
9 | Android ou IOS?
10 | Windows ou Linux !?
11 | Biscoito ou Bolacha !?
12 | qual foi a primeira linguagem de programação que você aprendeu?
13 | já fez um update sem where?
14 | Deseja ajudar na construção do bot ? totalmente open source , acesse "https://github.com/casadodev/bot-twitch-python"
15 | café é melhor que chocolate!
16 | Faça uma doação de R$6,66 (Sustinho), ou R$66,66 (Sustão), para ajudar no Cha de Bebê da Melinda :)
17 | testei em produção e deu pal
18 | o floquino mandou você beber agua agora!
19 | gambiarra: grande artifício da mecânica brasileira inventada para arrumar, recuperar ou realizar algo
20 | segue o canal do @casadodev
21 | o princípio principal do príncipe principiava principalmente no princípio principesco da princesa.
22 | vai ser difícil, vai ser cansativo, vai levar tempo e não vai valer a pena
23 | quer saber sobre as regras do canal? não perca tempo e digite agora mesmo !regraslive e tenha uma boa relação com todos da live, além de ser bem visto por todos ;)
24 | “uma vez que você elimina o impossível, tudo o que resta, não importa o quão improvável seja, pode ser verdade.” por arthur conan doyle
25 | Faça uma doação de R$6,66 (Sustinho), ou R$66,66 (Sustão), para ajudar no Cha de Bebê da Melinda :)
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
DE MIM, DELE, DELA, DE TODO MUNDO
2 |
3 |
4 |
5 |
6 |
21 | Nosso bot sempre foi open source.
22 |
23 |
24 |
25 |
26 | ### Nosso bot sempre foi open source.
27 |
28 |
29 | Nosso bot sempre foi open source.
30 | Usem, ajudem a desenvolver novas "features"
31 |
32 |
33 | Mandem Issues, PRs, salves nas lives.
34 |
35 | - [Issues](https://github.com/casadodev/bot-twitch-python/issues) :question:
36 | - [Live Twitch](https://www.twitch.tv/casadodev) :tv:
37 |
38 |
39 | > Chat bot desenvolvido em python durante as lives, com todos os comandos sugeridos pela galera show, e portado 100% para open source!
40 |
41 | ### Configurações inicias.
42 |
43 | Renomeie o arquivo [`config.example.ini`](https://github.com/casadodev/bot-twitch-python/blob/master/config.example.ini) na raiz do projeto para `config.ini` e edite-o conforme os comentários de instruções presentes no próprio arquivo.
44 |
45 | **Instalar dependências do projeto.**
46 |
47 | > caso não queira instalar as dependências globalmente utilize um ambiente virtual Exemplo virtualenv ou outro de sua preferencia.
48 |
49 |
50 | ```sh
51 |
52 | cd bot-twitch-python/
53 |
54 | python3 -m virtualenv venv
55 |
56 | source venv/bin/activate ## Linux
57 | # ou
58 | source venv\Script\activate ## Windows
59 |
60 | # instalar dependencias
61 |
62 | python3 -m pip install -r deps.txt
63 |
64 | ```
65 | #### Tudo ok :heavy_check_mark: .
66 | Só roda e implementar suas features, e manda um **Pull Request**.
67 | ##
68 |
69 | #### Ahh! Galera, atualizem aqui o Readme com os canais de vocês :) e continuem contruibuindo
70 |
71 | ----
72 |
73 |
74 |
75 | #### ME SIGA NAS REDES
76 | * [twitter.com/casadodev](https://twitter.com/casadodev)
77 | * [instagram.com/casadodev](https://instagram.com/casadodev)
78 | * [facebook.com/casadodev](https://facebook.com/casadodev)
79 | * [github.com/cirino](https://github.com/cirino)
80 | * [github.com/casadodev](https://github.com/casadodev)
81 |
82 | *Tenho alguns pequenos projetos web*
83 | * [mercadodeti.com.br](https://mercadodeti.com.br)
84 | * [casado.dev](https://casado.dev)
85 |
--------------------------------------------------------------------------------
/files/counters.json:
--------------------------------------------------------------------------------
1 | {"cachorro": {"qtd": 21, "dates": ["29/10/2020 21:03:25", "29/10/2020 21:03:27", "29/10/2020 21:03:28", "30/10/2020 00:38:35", "30/10/2020 19:31:07", "30/10/2020 19:31:34", "30/10/2020 22:29:53", "30/10/2020 22:37:01", "31/10/2020 21:47:11", "01/11/2020 20:52:35", "01/11/2020 20:52:37", "01/11/2020 20:52:40", "01/11/2020 20:53:20", "01/11/2020 23:20:07", "01/11/2020 23:20:35", "01/11/2020 23:22:07", "02/11/2020 20:53:13", "02/11/2020 20:53:27", "02/11/2020 21:26:38", "06/11/2020 22:52:33", "11/01/2021 22:43:35"]}, "risada": {"qtd": 56, "dates": ["29/10/2020 21:03:06", "29/10/2020 21:03:06", "29/10/2020 21:03:08", "29/10/2020 22:30:05", "29/10/2020 23:29:33", "31/10/2020 20:03:28", "31/10/2020 21:46:55", "31/10/2020 22:53:21", "31/10/2020 22:54:22", "31/10/2020 22:55:51", "31/10/2020 23:05:12", "31/10/2020 23:05:16", "31/10/2020 23:06:47", "31/10/2020 23:21:07", "31/10/2020 23:24:14", "31/10/2020 23:26:47", "31/10/2020 23:35:01", "31/10/2020 23:51:35", "31/10/2020 23:51:46", "01/11/2020 00:19:56", "01/11/2020 00:32:22", "01/11/2020 00:53:04", "01/11/2020 00:53:11", "01/11/2020 00:53:16", "01/11/2020 01:52:06", "01/11/2020 21:29:17", "01/11/2020 21:50:37", "01/11/2020 22:19:22", "01/11/2020 22:26:06", "01/11/2020 22:37:51", "02/11/2020 21:16:26", "02/11/2020 23:24:15", "03/11/2020 22:45:30", "04/11/2020 23:57:39", "04/11/2020 23:58:07", "05/11/2020 00:24:56", "05/11/2020 01:15:42", "05/11/2020 01:15:59", "05/11/2020 01:46:22", "05/11/2020 01:46:25", "05/11/2020 23:29:19", "13/11/2020 01:16:36", "13/11/2020 20:42:12", "13/11/2020 21:00:47", "20/11/2020 00:37:59", "20/11/2020 00:38:36", "20/11/2020 00:43:12", "24/11/2020 23:25:51", "25/11/2020 00:14:47", "26/11/2020 00:01:09", "10/12/2020 00:02:56", "10/12/2020 00:14:38", "10/12/2020 00:29:40", "10/12/2020 00:45:13", "01/04/2021 23:32:32", "09/04/2021 21:17:47"]}, "taxado": {"qtd": 27, "dates": ["29/10/2020 21:02:53", "29/10/2020 21:02:55", "29/10/2020 21:02:58", "29/10/2020 21:03:34", "30/10/2020 18:18:40", "31/10/2020 21:28:58", "31/10/2020 21:29:08", "31/10/2020 21:29:10", "31/10/2020 21:29:12", "31/10/2020 21:29:14", "31/10/2020 21:29:17", "31/10/2020 21:29:19", "31/10/2020 21:29:21", "31/10/2020 21:29:24", "31/10/2020 21:29:27", "31/10/2020 21:29:39", "02/11/2020 23:31:18", "03/11/2020 01:27:49", "03/11/2020 01:47:14", "03/11/2020 01:47:36", "03/11/2020 02:22:44", "03/11/2020 02:23:20", "08/11/2020 23:28:13", "09/11/2020 23:56:49", "13/11/2020 01:16:40", "18/11/2020 00:13:52", "20/11/2020 00:08:42"]}, "breja": {"qtd": 4, "dates": ["29/10/2020 21:02:12", "29/10/2020 21:02:56", "29/10/2020 21:03:31", "30/10/2020 00:39:02"]}, "chat": {"qtd": 20, "dates": ["29/10/2020 21:03:00", "29/10/2020 21:03:01", "29/10/2020 21:44:21", "31/10/2020 20:43:29", "02/11/2020 01:28:19", "02/11/2020 01:28:20", "02/11/2020 01:28:20", "02/11/2020 01:31:07", "08/11/2020 23:37:07", "08/11/2020 23:43:17", "09/11/2020 00:14:32", "09/11/2020 00:14:35", "09/11/2020 00:14:50", "09/11/2020 00:16:51", "09/11/2020 00:16:52", "09/11/2020 00:16:53", "09/11/2020 00:40:54", "09/11/2020 00:50:32", "13/11/2020 00:30:59", "20/11/2020 23:34:41"]}, "aviao": {"qtd": 43, "dates": ["30/10/2020 21:14:19", "30/10/2020 21:15:35", "01/11/2020 01:29:54", "01/11/2020 01:29:56", "01/11/2020 01:29:57", "01/11/2020 01:29:58", "01/11/2020 01:30:00", "01/11/2020 01:30:00", "01/11/2020 01:37:55", "01/11/2020 22:11:54", "01/11/2020 22:15:14", "01/11/2020 22:25:06", "01/11/2020 23:06:08", "01/11/2020 23:06:09", "02/11/2020 19:35:01", "03/11/2020 00:36:08", "04/11/2020 23:33:28", "05/11/2020 21:06:20", "05/11/2020 21:12:11", "05/11/2020 22:50:56", "05/11/2020 23:16:14", "09/11/2020 22:43:55", "10/11/2020 00:36:26", "10/11/2020 02:13:37", "13/11/2020 01:35:59", "14/11/2020 02:52:09", "14/11/2020 02:52:48", "14/11/2020 02:58:29", "19/11/2020 20:06:47", "19/11/2020 20:45:48", "19/11/2020 22:27:27", "19/11/2020 22:52:54", "19/11/2020 23:13:43", "19/11/2020 23:56:12", "20/11/2020 21:44:49", "20/11/2020 21:45:35", "20/11/2020 22:41:11", "20/11/2020 22:46:35", "20/11/2020 22:57:47", "20/11/2020 23:11:46", "20/11/2020 23:42:27", "01/12/2020 22:34:11", "10/12/2020 01:25:37"]}}
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | twitch_tut.py
7 | config.ini
8 |
9 | .env
10 | README.md
11 | /.vscode
12 | /lib
13 | /.idea
14 | /.venv
15 |
16 | # User-specific files
17 | *.rsuser
18 | *.suo
19 | *.user
20 | *.userosscache
21 | *.sln.docstates
22 |
23 | # User-specific files (MonoDevelop/Xamarin Studio)
24 | *.userprefs
25 |
26 | # Mono auto generated files
27 | mono_crash.*
28 |
29 | # Build results
30 | [Dd]ebug/
31 | [Dd]ebugPublic/
32 | [Rr]elease/
33 | [Rr]eleases/
34 | x64/
35 | x86/
36 | [Aa][Rr][Mm]/
37 | [Aa][Rr][Mm]64/
38 | bld/
39 | [Bb]in/
40 | [Oo]bj/
41 | [Ll]og/
42 | [Ll]ogs/
43 |
44 | # Visual Studio 2015/2017 cache/options directory
45 | .vs/
46 | # Uncomment if you have tasks that create the project's static files in wwwroot
47 | #wwwroot/
48 |
49 | # Visual Studio 2017 auto generated files
50 | Generated\ Files/
51 |
52 | # MSTest test Results
53 | [Tt]est[Rr]esult*/
54 | [Bb]uild[Ll]og.*
55 |
56 | # NUnit
57 | *.VisualState.xml
58 | TestResult.xml
59 | nunit-*.xml
60 |
61 | # Build Results of an ATL Project
62 | [Dd]ebugPS/
63 | [Rr]eleasePS/
64 | dlldata.c
65 |
66 | # Benchmark Results
67 | BenchmarkDotNet.Artifacts/
68 |
69 | # .NET Core
70 | project.lock.json
71 | project.fragment.lock.json
72 | artifacts/
73 |
74 | # StyleCop
75 | StyleCopReport.xml
76 |
77 | # Files built by Visual Studio
78 | *_i.c
79 | *_p.c
80 | *_h.h
81 | *.ilk
82 | *.meta
83 | *.obj
84 | *.iobj
85 | *.pch
86 | *.pdb
87 | *.ipdb
88 | *.pgc
89 | *.pgd
90 | *.rsp
91 | *.sbr
92 | *.tlb
93 | *.tli
94 | *.tlh
95 | *.tmp
96 | *.tmp_proj
97 | *_wpftmp.csproj
98 | *.log
99 | *.vspscc
100 | *.vssscc
101 | .builds
102 | *.pidb
103 | *.svclog
104 | *.scc
105 |
106 | # Chutzpah Test files
107 | _Chutzpah*
108 |
109 | # Visual C++ cache files
110 | ipch/
111 | *.aps
112 | *.ncb
113 | *.opendb
114 | *.opensdf
115 | *.sdf
116 | *.cachefile
117 | *.VC.db
118 | *.VC.VC.opendb
119 |
120 | # Visual Studio profiler
121 | *.psess
122 | *.vsp
123 | *.vspx
124 | *.sap
125 |
126 | # Visual Studio Trace Files
127 | *.e2e
128 |
129 | # TFS 2012 Local Workspace
130 | $tf/
131 |
132 | # Guidance Automation Toolkit
133 | *.gpState
134 |
135 | # ReSharper is a .NET coding add-in
136 | _ReSharper*/
137 | *.[Rr]e[Ss]harper
138 | *.DotSettings.user
139 |
140 | # JustCode is a .NET coding add-in
141 | .JustCode
142 |
143 | # TeamCity is a build add-in
144 | _TeamCity*
145 |
146 | # DotCover is a Code Coverage Tool
147 | *.dotCover
148 |
149 | # AxoCover is a Code Coverage Tool
150 | .axoCover/*
151 | !.axoCover/settings.json
152 |
153 | # Visual Studio code coverage results
154 | *.coverage
155 | *.coveragexml
156 |
157 | # NCrunch
158 | _NCrunch_*
159 | .*crunch*.local.xml
160 | nCrunchTemp_*
161 |
162 | # MightyMoose
163 | *.mm.*
164 | AutoTest.Net/
165 |
166 | # Web workbench (sass)
167 | .sass-cache/
168 |
169 | # Installshield output folder
170 | [Ee]xpress/
171 |
172 | # DocProject is a documentation generator add-in
173 | DocProject/buildhelp/
174 | DocProject/Help/*.HxT
175 | DocProject/Help/*.HxC
176 | DocProject/Help/*.hhc
177 | DocProject/Help/*.hhk
178 | DocProject/Help/*.hhp
179 | DocProject/Help/Html2
180 | DocProject/Help/html
181 |
182 | # Click-Once directory
183 | publish/
184 |
185 | # Publish Web Output
186 | *.[Pp]ublish.xml
187 | *.azurePubxml
188 | # Note: Comment the next line if you want to checkin your web deploy settings,
189 | # but database connection strings (with potential passwords) will be unencrypted
190 | *.pubxml
191 | *.publishproj
192 |
193 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
194 | # checkin your Azure Web App publish settings, but sensitive information contained
195 | # in these scripts will be unencrypted
196 | PublishScripts/
197 |
198 | # NuGet Packages
199 | *.nupkg
200 | # NuGet Symbol Packages
201 | *.snupkg
202 | # The packages folder can be ignored because of Package Restore
203 | **/[Pp]ackages/*
204 | # except build/, which is used as an MSBuild target.
205 | !**/[Pp]ackages/build/
206 | # Uncomment if necessary however generally it will be regenerated when needed
207 | #!**/[Pp]ackages/repositories.config
208 | # NuGet v3's project.json files produces more ignorable files
209 | *.nuget.props
210 | *.nuget.targets
211 |
212 | # Microsoft Azure Build Output
213 | csx/
214 | *.build.csdef
215 |
216 | # Microsoft Azure Emulator
217 | ecf/
218 | rcf/
219 |
220 | # Windows Store app package directories and files
221 | AppPackages/
222 | BundleArtifacts/
223 | Package.StoreAssociation.xml
224 | _pkginfo.txt
225 | *.appx
226 | *.appxbundle
227 | *.appxupload
228 |
229 | # Visual Studio cache files
230 | # files ending in .cache can be ignored
231 | *.[Cc]ache
232 | # but keep track of directories ending in .cache
233 | !?*.[Cc]ache/
234 |
235 | # Others
236 | ClientBin/
237 | ~$*
238 | *~
239 | *.dbmdl
240 | *.dbproj.schemaview
241 | *.jfm
242 | *.pfx
243 | *.publishsettings
244 | orleans.codegen.cs
245 |
246 | # Including strong name files can present a security risk
247 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
248 | #*.snk
249 |
250 | # Since there are multiple workflows, uncomment next line to ignore bower_components
251 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
252 | #bower_components/
253 |
254 | # RIA/Silverlight projects
255 | Generated_Code/
256 |
257 | # Backup & report files from converting an old project file
258 | # to a newer Visual Studio version. Backup files are not needed,
259 | # because we have git ;-)
260 | _UpgradeReport_Files/
261 | Backup*/
262 | UpgradeLog*.XML
263 | UpgradeLog*.htm
264 | ServiceFabricBackup/
265 | *.rptproj.bak
266 |
267 | # SQL Server files
268 | *.mdf
269 | *.ldf
270 | *.ndf
271 |
272 | # Business Intelligence projects
273 | *.rdl.data
274 | *.bim.layout
275 | *.bim_*.settings
276 | *.rptproj.rsuser
277 | *- [Bb]ackup.rdl
278 | *- [Bb]ackup ([0-9]).rdl
279 | *- [Bb]ackup ([0-9][0-9]).rdl
280 |
281 | # Microsoft Fakes
282 | FakesAssemblies/
283 |
284 | # GhostDoc plugin setting file
285 | *.GhostDoc.xml
286 |
287 | # Node.js Tools for Visual Studio
288 | .ntvs_analysis.dat
289 | node_modules/
290 |
291 | # Visual Studio 6 build log
292 | *.plg
293 |
294 | # Visual Studio 6 workspace options file
295 | *.opt
296 |
297 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
298 | *.vbw
299 |
300 | # Visual Studio LightSwitch build output
301 | **/*.HTMLClient/GeneratedArtifacts
302 | **/*.DesktopClient/GeneratedArtifacts
303 | **/*.DesktopClient/ModelManifest.xml
304 | **/*.Server/GeneratedArtifacts
305 | **/*.Server/ModelManifest.xml
306 | _Pvt_Extensions
307 |
308 | # Paket dependency manager
309 | .paket/paket.exe
310 | paket-files/
311 |
312 | # FAKE - F# Make
313 | .fake/
314 |
315 | # CodeRush personal settings
316 | .cr/personal
317 |
318 | # Python Tools for Visual Studio (PTVS)
319 | __pycache__/
320 | *.pyc
321 |
322 | # Cake - Uncomment if you are using it
323 | # tools/**
324 | # !tools/packages.config
325 |
326 | # Tabs Studio
327 | *.tss
328 |
329 | # Telerik's JustMock configuration file
330 | *.jmconfig
331 |
332 | # BizTalk build output
333 | *.btp.cs
334 | *.btm.cs
335 | *.odx.cs
336 | *.xsd.cs
337 |
338 | # OpenCover UI analysis results
339 | OpenCover/
340 |
341 | # Azure Stream Analytics local run output
342 | ASALocalRun/
343 |
344 | # MSBuild Binary and Structured Log
345 | *.binlog
346 |
347 | # NVidia Nsight GPU debugger configuration file
348 | *.nvuser
349 |
350 | # MFractors (Xamarin productivity tool) working folder
351 | .mfractor/
352 |
353 | # Local History for Visual Studio
354 | .localhistory/
355 |
356 | # BeatPulse healthcheck temp database
357 | healthchecksdb
358 |
359 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
360 | MigrationBackup/
361 |
362 | # Ionide (cross platform F# VS Code tools) working folder
363 | .ionide/
364 |
--------------------------------------------------------------------------------
/bot.py:
--------------------------------------------------------------------------------
1 | import asyncio
2 | import configparser
3 | import json
4 | import random
5 | import time
6 | import traceback
7 | from datetime import datetime
8 |
9 | import pyttsx3
10 | import requests
11 | from requests_html import HTMLSession
12 | from twitchio.ext import commands
13 |
14 |
15 | # globais
16 | counters = {},
17 | # pessoas_online = {},
18 | count_pessoa = [],
19 |
20 | # Acessar o arquivo e recuperar os comandos anteriormente criados.
21 | with open("files/commands.json", 'r', encoding='UTF-8') as file:
22 | namecommand = json.load(file)
23 | # print('Comandos recuperados:', namecommand)
24 |
25 |
26 | class Bot(commands.Bot):
27 |
28 | def __init__(self):
29 |
30 | config = configparser.ConfigParser()
31 | config.read("config.ini")
32 |
33 | nick_bot = config.get("bot", "username")
34 | inicia_canal = config.get("bot", "channel")
35 |
36 | # Initialise our Bot with our access token, prefix and a list of channels to join on boot...
37 | super().__init__(
38 | token=config.get("bot", "oauth_token"),
39 | nick=nick_bot,
40 | prefix=config.get("bot", "command_prefix"),
41 | initial_channels=[inicia_canal]
42 | )
43 |
44 |
45 | async def event_ready(self):
46 | "Chama quando o bot casadodev está online."
47 | print(f'Logado como: {self.nick}')
48 | print(f"@{self.nick} está online! ")
49 |
50 |
51 | async def event_message(self, ctx):
52 | "Roda toda vez que uma mensagem no chat é enviada."
53 |
54 | # remove do log as mensagens do streamer
55 | # if ctx.author.name.lower() == self.nick.lower():
56 | # return
57 |
58 | if ctx.echo:
59 | return
60 |
61 | userBot = [
62 | 'streamelements'
63 | ]
64 |
65 | if not(ctx.author.name in userBot):
66 | print(f'{ctx.author.name}: {ctx.content}')
67 |
68 | # TODO: quantas letras a pessoa escreveu no chat
69 | # pessoas_online.append(ctx.author.name)
70 |
71 |
72 | if "bom dia" in ctx.content.lower():
73 | await ctx.channel.send(f"Bom dia, @{ctx.author.name}! Como você está?")
74 |
75 | elif "boa tarde" in ctx.content.lower():
76 | await ctx.channel.send(f"Boa tarde, @{ctx.author.name}! Como você está?")
77 |
78 | elif "boa noite" in ctx.content.lower():
79 | await ctx.channel.send(f"Boa noite, @{ctx.author.name}! Como você está?")
80 |
81 | elif "boa madrugada" in ctx.content.lower():
82 | await ctx.channel.send(
83 | f"Boa madrugada aeew, @{ctx.author.name}! Como você está?",
84 | )
85 |
86 | # culpa do @Super_Feliz - o teclado dele o trolou
87 | elif "boa note" in ctx.content.lower():
88 | await ctx.channel.send(
89 | f"Boa noite, @{ctx.author.name}! Como você está? Seu teclado te trolou...",
90 | )
91 |
92 | if "salve" in ctx.content.lower():
93 | await ctx.channel.send(f"Ta salvado, @{ctx.author.name}! Como você está?")
94 |
95 | if "ctrl + s" in ctx.content.lower():
96 | await ctx.channel.send(f"Ta salvado, @{ctx.author.name}! Como você está?")
97 |
98 | if "aoba" in ctx.content.lower():
99 | await ctx.channel.send(f"Aoooba, @{ctx.author.name}! Como você está?")
100 |
101 | if "lurk" in ctx.content.lower():
102 | await ctx.channel.send(
103 | f"Opa @{ctx.author.name}! Tamo junto ae no lurk. Já ajuda pakas.",
104 | )
105 |
106 | if "bolacha" in ctx.content.lower():
107 | await ctx.channel.send(
108 | f"@{ctx.author.name} o correto é Biscoito! SE MANDAR BOLACHA É BAN. Chico disse, ta DITOOO!",
109 | )
110 |
111 | if "biscoito" in ctx.content.lower():
112 | await ctx.channel.send(
113 | f"@{ctx.author.name} Errado o correto é bolacha, BO-LA-CHA, patoGordin disse ",
114 | )
115 |
116 | if "sextou" in ctx.content.lower():
117 | await ctx.channel.send("SEXTOUUUUUUU DIA DE FAZER PUSH NA MASTER!!!")
118 |
119 | # Para rodar os comandos criados pelo !comando
120 | if "!" == ctx.content.split()[0][0]:
121 | comando = ctx.content.split()[0]
122 |
123 | for command, message in namecommand.items():
124 | if comando.replace("!", "") == command:
125 | name = command
126 | msg = message
127 | print(f"Comando chamado:'{name}' -> '{msg}'")
128 |
129 | await ctx.channel.send(msg)
130 |
131 | await bot.handle_commands(ctx)
132 |
133 |
134 | @commands.command(name="xxstartxx")
135 | async def fn_start(self, ctx: commands.Context):
136 | # Mostrando os comandos disponíveis no bot
137 | while True:
138 | msg_aleatoria = list(
139 | open("files/texto_engajamento.txt", encoding="utf-8"),
140 | )
141 | comandos = (
142 | '/me os comandos do bot são "exclamação + :" ban +usuário, '
143 | "clima +local, piada, traduzir +mensagem, translate +message, "
144 | "motivar, horoscopo +signo, susto, filme. "
145 | "Tudo desenvolvido nas lives e em python!"
146 | )
147 |
148 | # await ws.send_privmsg(inicia_canal, comandos)
149 | await ctx.send(f"oi => {comandos}")
150 | await asyncio.sleep(460.0)
151 |
152 | if len(msg_aleatoria) > 0:
153 | "Mostrando mensagens de engajamento no chat"
154 | msg_selecionada = random.choice(msg_aleatoria)
155 |
156 | # await ws.send_privmsg(inicia_canal, msg_selecionada)
157 | await ctx.send(f"{msg_selecionada}")
158 | await asyncio.sleep(240.0)
159 |
160 |
161 | @commands.command(name="hello")
162 | async def fn_hello(self, ctx: commands.Context):
163 | await ctx.send(f'Hello {ctx.author.name}!')
164 |
165 |
166 | @commands.command(name="steam")
167 | async def fn_steam(ctx):
168 | link = "https://s.team/p/gdmd-fkhb/fmdrjvgt"
169 | await ctx.send(
170 | f'Jogue conosco usando o código "1115830096" ou usando o link {link}',
171 | )
172 |
173 |
174 | @commands.command(name="bot")
175 | async def fn_bot(self, ctx: commands.Context):
176 | link = "https://github.com/casadodev/bot-twitch-python"
177 | await ctx.send(
178 | f"Deseja ajudar na construção do bot!? acesse o link e torne-se um contribuidor {link}",
179 | )
180 |
181 |
182 | @commands.command(name="whatsapp")
183 | async def fn_whatsapp(self, ctx: commands.Context):
184 | await ctx.send(
185 | "Grupo no whatsapp https://chat.whatsapp.com/GjztcHTQiXb0MNZutOhCOY",
186 | )
187 |
188 |
189 | @commands.command(name="discord")
190 | async def fn_discord(self, ctx: commands.Context):
191 | await ctx.send("Grupo no discord https://mercadodeti.com.br/discord")
192 |
193 |
194 | @commands.command(name="instagram")
195 | async def fn_instagram(self, ctx: commands.Context):
196 | await ctx.send("Perfil no Inta https://instagram.com/casadodev")
197 |
198 |
199 | @commands.command(name="horadosorteio")
200 | async def fn_horasorteio(self, ctx: commands.Context):
201 | await ctx.send("HORA DO SORTEIO!!!!!!")
202 | await ctx.send("VENHA PARTICIPAR")
203 | await ctx.send("QUEM SERÁ O SORTUDO DA NOITE Kappa")
204 |
205 |
206 | @commands.command(name="sorteio")
207 | async def fn_sorteio(self, ctx: commands.Context):
208 | await ctx.send(
209 | "Sorteios de cursos da Udemy de até R$40. Subs/Inscritos tem 3x mais chances de ganhar. "
210 | "O sorteio está disponível apenas para quem segue o canal a mais de 2h, ou inscritos. "
211 | "Se inscreva gratuitamente com seu Amazon Prime!",
212 | )
213 |
214 |
215 | # TODO: pedido de músicas no canal - por @Super_Feliz
216 | @commands.command(name="musica")
217 | async def fn_adicionaMusica(self, ctx: commands.Context):
218 | await ctx.send("Está sendo desenvolvido comando para tocar as músicas no canal")
219 |
220 |
221 | # TODO: comando solicitado pelo Marlon_Henq
222 | # Cria um comando de correio elegante onde vc pode pedir para o bot mandar uma mensagem para alguém
223 | # frases para enviar https://www.pensador.com/frases_para_correio_elegante/
224 |
225 |
226 | # TODO: verificar e corrigir funções paralelas no counter
227 | def create_counter(*, name, prefix, singular="vez", plural="vezes"):
228 | @commands.command(name=name)
229 | async def _counter(self, ctx: commands.Context):
230 | date = datetime.now()
231 | with open("files/counters.json") as current_json:
232 | raw_json = json.load(current_json)
233 | amount = raw_json[name]["qtd"] = raw_json[name]["qtd"] + 1
234 | current_list_dates = raw_json[name]["dates"]
235 | current_list_dates.append(date.strftime("%d/%m/%Y %H:%M:%S"))
236 |
237 | suffix = plural if amount > 1 else singular
238 | await ctx.send(f"{prefix} {amount} {suffix}")
239 |
240 | with open("files/counters.json", "w") as file_write:
241 | json.dump(raw_json, file_write)
242 |
243 |
244 | create_counter(name="cachorro", prefix="O cachorro já latiu")
245 | create_counter(name="risada", prefix="A Mirele já riu")
246 | create_counter(name="taxado", prefix="O Casado já foi taxado")
247 | create_counter(name="breja", prefix="O Casado já bebeu")
248 | create_counter(name="chat", prefix="O Casado não leu o chat")
249 | create_counter(name="aviao", prefix="O avião já passou")
250 |
251 | # TODO: comando solicitado pelo @Tairritadotio
252 |
253 | @commands.command(name="dica")
254 | async def fn_dica(self, ctx: commands.Context):
255 | await ctx.send(
256 | "Se der erro no seu código poder ser que algo esteja errado ou algo não esteja certo.",
257 | )
258 |
259 |
260 | @commands.command(name="raid")
261 | async def fn_raid(self, ctx: commands.Context):
262 | await ctx.send(
263 | """Kappa PogChamp PogChamp Kappa PogChamp Kappa PogChamp
264 | PogChamp Kappa PogChamp Kappa PogChamp PogChamp Kappa PogChamp""",
265 | )
266 |
267 |
268 | # comando para dicas de filmes
269 | @commands.command(name="filme")
270 | async def fn_filme(self, ctx: commands.Context):
271 | filme_indicado = "Qualquer um do Nicolas Cage"
272 | print(f"Filme indicado: {filme_indicado}")
273 | await ctx.send(f"Nosso bot te indica o filme: {filme_indicado}")
274 |
275 |
276 | # TODO: biscoito / robson - por @ChicoCodes
277 | @commands.command(name="robson")
278 | async def fn_robson(self, ctx: commands.Context):
279 | await ctx.send(
280 | f"@{ctx.author.name} o correto é Biscoito! SE MANDAR BOLACHA É BAN. Chico disse, ta DITOOO!",
281 | )
282 |
283 |
284 | # TODO: biscoito / robson - por @ChicoCodes
285 | @commands.command(name="biscoito")
286 | async def fn_biscoito(self, ctx: commands.Context):
287 | await ctx.send(
288 | f"@{ctx.author.name} o correto é Biscoito! SE MANDAR BOLACHA É BAN. Chico disse, ta DITOOO!",
289 | )
290 |
291 |
292 | # TODO: traduzir texto por - PO: @ChicoCodes, com grande ajuda do MechanicallyDev
293 | @commands.command(name="traduzir")
294 | async def fn_traduzir(self, ctx: commands.Context, *, texto = 'casadodev'):
295 | "Traduz o texto para inglês"
296 |
297 | # return 'qual o texto quer traduzir?' if texto = 'casadodev' else pass
298 |
299 | session = HTMLSession()
300 | url = "https://www.google.com/search?q=translate+to+english+"
301 |
302 | url_unificado = f"{url}{texto}"
303 |
304 | req_selecionada = session.get(url_unificado)
305 | texto_traduzido = req_selecionada.html.find("#tw-target-text")[0].text
306 |
307 | print(f"Traduzir: {texto}")
308 | print(f"Tradução: {str(texto_traduzido)}")
309 |
310 | await ctx.send(f"translate: 🫡 {texto_traduzido}")
311 |
312 |
313 | # TODO: traduzir texto por - PO: @ChicoCodes, com grande ajuda do MechanicallyDev
314 | @commands.command(name="translate")
315 | async def fn_translate(self, ctx: commands.Context, *, texto = 'casadodev'):
316 | "Traduz o texto para portugues"
317 | # texto_solicitado = "+".join(ctx.content.split(" ")[1:])
318 |
319 | session = HTMLSession()
320 | url = "https://www.google.com/search?q=translate+to+portuguese+"
321 |
322 | url_unificado = f"{url}{texto}"
323 |
324 | req_selecionada = session.get(url_unificado)
325 | texto_traduzido = req_selecionada.html.find("#tw-target-text")[0].text
326 | print(f"Tradução: {texto}")
327 | print(f"Traduzir: {texto_traduzido}")
328 |
329 | await ctx.send(f"translate: 🫡 {texto_traduzido}")
330 |
331 |
332 | # TODO: mostrar horóscopo
333 | @commands.command(name="horoscopo")
334 | async def fn_horoscopo(self, ctx: commands.Context, *, signo = 'leao'):
335 | "Mostra o signo solicitado, com base no site Capricho"
336 |
337 | session = HTMLSession()
338 | url_signos = "https://capricho.abril.com.br/horoscopo/signo-"
339 |
340 | req_selecionada = session.get(f"{url_signos}{signo}/")
341 | signo_selecionado = req_selecionada.html.find(".previsao_dia")[0].text
342 |
343 | await ctx.send(f"{signo}: {signo_selecionado}")
344 |
345 |
346 | # TODO: Tratar localization
347 | # comando de previsão do tempo - pedido do @MechanicallyDev
348 | @commands.command(name="clima")
349 | async def fn_climaTempo(self, ctx: commands.Context, *, texto = 'guarulhos'):
350 | # Mostrar a previsão do tempo da região
351 | session = HTMLSession()
352 |
353 | req_selecionada = session.get(
354 | f"https://www.google.com.br/search?q=tempo+{texto}",
355 | )
356 |
357 | cidade_selecionada = req_selecionada.html.find("#wob_loc")[0].text
358 | temperatura_atual = req_selecionada.html.find("#wob_tm")[0].text
359 | horario_atual = req_selecionada.html.find("#wob_dts")[0].text
360 | tipo_clima = req_selecionada.html.find("#wob_dc")[0].text
361 |
362 | # as unidades são especificadas em spans, precisamos inspecionar qual está
363 | # visível
364 | spans_unidade = req_selecionada.html.find(".wob-unit > span.wob_t")
365 | unidade = "ºC"
366 | for span_unidade in spans_unidade:
367 | if span_unidade.attrs["style"] == "display:inline":
368 | unidade = span_unidade.text
369 |
370 | print(f"Clima agora em {cidade_selecionada}: {temperatura_atual}")
371 |
372 | await ctx.send(
373 | f"/me Agora na cidade {cidade_selecionada}, é {horario_atual} "
374 | f"e está {temperatura_atual}{unidade}, com um clima {tipo_clima}",
375 | )
376 |
377 |
378 | # TODO: filtrar palavras para blacklist e frases já liberadas pelo id
379 | # foi um ótimo resgate realizado pelo @MechanicallyDev
380 | @commands.command(name="piada")
381 | async def fn_piadas(self, ctx: commands.Context):
382 | # if not (ctx.author.is_subscriber | ctx.author.is_mod):
383 | # return await ctx.send_me("Comando liberado para subs e os melhores mods! Peça piada com os pontos do canal.")
384 |
385 | # https://api-de-charadas.fredes.now.sh/
386 |
387 | # piada_selecionada = requests.get(
388 | # 'https://us-central1-kivson.cloudfunctions.net/charada-aleatoria',
389 | # headers={
390 | # 'Accept': 'application/json',
391 | # 'Content-type': 'application/json'
392 | # }).json()
393 |
394 | dados_selecionada = requests.get(
395 | "https://api-de-charadas.fredes.now.sh",
396 | )
397 |
398 | if('A server error has occurred' in dados_selecionada.text):
399 | return await ctx.send("O servidor de piadas de pal. Que piada né, foi mal!")
400 | else:
401 | piada_selecionada = dados_selecionada.json()
402 |
403 | if 'loira' in piada_selecionada['question']:
404 | print('veio piada de loira, refazer!')
405 | print(piada_selecionada)
406 | return await ctx.send("Deu azar, veio piada de loira")
407 |
408 | print(f"pergunta: {piada_selecionada['question']}")
409 | print(f"resposta: {piada_selecionada['answer']}")
410 |
411 | pergunta = piada_selecionada["question"]
412 | resposta = piada_selecionada["answer"]
413 |
414 | await ctx.send(f"Pergunta: {pergunta}")
415 |
416 | time.sleep(15)
417 | await ctx.send(f"Resposta: {resposta}")
418 |
419 |
420 | @commands.command(name="motivar")
421 | async def fn_motivacao(self, ctx: commands.Context):
422 | "Mensagem motivacional para o chat"
423 | session = HTMLSession()
424 | req_selecionada = session.get("https://motivaai.nandomoreira.dev/")
425 |
426 | motivacao_selecionada = req_selecionada.html.find("blockquote")[0].text.split("\n")
427 |
428 | frase = motivacao_selecionada[0]
429 | autor = motivacao_selecionada[1]
430 |
431 | print(f"Frase de {autor}: {frase}")
432 |
433 | await ctx.send(f'"{frase}", por {autor}')
434 |
435 |
436 | @commands.command(name="addengajar")
437 | async def fn_add_mensagem_engajamento(ctx):
438 | if len(ctx.content) > 30:
439 | # gravar a mensagem de ban comprada pelo usuário
440 | arquivo_texto_engajamento = open(
441 | "files/texto_engajamento.txt",
442 | "a+",
443 | encoding="utf-8",
444 | )
445 |
446 | arquivo_texto_engajamento.write(f"{ctx.content.lower()[12:]} \n")
447 | # TODO: CRIAR MÉTODO PARA ADICIONAR EM VOTAÇÃO NO CHAT
448 | arquivo_texto_engajamento.close()
449 |
450 | print(f"texto de engajamento adicionado por @{ctx.author.name}")
451 | await ctx.send("Mensagem de engajamento adicionada. aguardando aprovação.")
452 |
453 | if len(ctx.content) < 30:
454 | await ctx.send("Mensagem precisa ter pelo menos 30 caracteres.")
455 |
456 |
457 | # # foi uma ótima idéia do @Falvern_
458 | @commands.command(name="unban")
459 | async def fn_unBan(self, ctx: commands.Context):
460 | # TODO: implementar o método anti-ban durante a Hacktoberfest
461 | frase = "invoca carta imbanivel e não pode ser banido!"
462 | await ctx.send(f"@{ctx.author.name} {frase}")
463 |
464 |
465 | @commands.command(name="ban")
466 | async def fn_ban(self, ctx: commands.Context):
467 | if len(ctx.content.split(" ")[1]) < 4:
468 | await ctx.send("para banir alguém, é preciso incluir o nome o usuário")
469 |
470 | if len(ctx.content.split(" ")[1]) > 3:
471 | lista_ban = open("files/texto_bans.txt", encoding="utf-8")
472 |
473 | _, _, alvo = ctx.content.lower().partition(" ")
474 | tipo_ban = random.choice(list(lista_ban))
475 |
476 | print(
477 | f"comando de banir executado por @{ctx.author.name} para o @{alvo}",
478 | )
479 |
480 | await ctx.send(f"{alvo} {tipo_ban}")
481 |
482 |
483 | @commands.command(name="humildao")
484 | async def fn_humildao(self, ctx: commands.Context):
485 | if len(ctx.content.split(" ")[1]) < 4:
486 | await ctx.send("Me diga quem é o Humildão, marca ele ai ResidentSleeper ")
487 |
488 | if len(ctx.content.split(" ")[1]) > 3:
489 | _, _, alvo = ctx.content.lower().partition(" ")
490 | await ctx.send(f"{alvo} FOI HUMILDÃOOOOO PogChamp PogChamp PogChamp ")
491 |
492 |
493 | @commands.command(name="addban")
494 | async def fn_addban(self, ctx: commands.Context):
495 | if len(ctx.content) > 30:
496 | # gravar a mensagem de ban comprada pelo usuário
497 |
498 | arquivo_texto_bans = open(
499 | "files/texto_moderacao_bans.txt",
500 | "a+",
501 | encoding="utf-8",
502 | )
503 |
504 | arquivo_texto_bans.write(f"{ctx.content.lower()[8:]} \n")
505 | # TODO: CRIAR MÉTODO PARA ADICIONAR EM VOTAÇÃO NO CHAT
506 | arquivo_texto_bans.close()
507 |
508 | print(f"texto de ban adicionado por @{ctx.author.name}")
509 | await ctx.send("Mensagem de ban adicionada. aguardando aprovação.")
510 |
511 |
512 | # Correio elegante com voz no chat, ativado manualmente por moderador
513 | @commands.command(name="correioelegante")
514 | async def fn_correioElegante(self, ctx: commands.Context):
515 | if not (ctx.author.is_subscriber | ctx.author.is_mod):
516 | return await ctx.send("Comando liberado para subs! Agradeça usando os pontos do canal.")
517 |
518 | mensagem = ctx.content.lower()[17:]
519 | print(f"@{ctx.author.name}: {mensagem}")
520 |
521 | moderando = input("Aceita o correio elegante? ")
522 |
523 | if moderando == "s":
524 | print("Correio elegante aceito...")
525 | engine = pyttsx3.init()
526 | engine.say(mensagem)
527 | engine.runAndWait()
528 | return await ctx.send("Só love SingsNote SingsNote SingsNote <3")
529 | else:
530 | print("correio elegante não aceito")
531 | return await ctx.send(f"@{ctx.author.name} seu correio elegante não foi aprovado. :(")
532 |
533 |
534 | # Correio elegante com voz no chat, ativado manualmente por moderador
535 | @commands.command(name="agradecimento")
536 | async def fn_agradecimento(self, ctx: commands.Context):
537 | if not (ctx.author.is_subscriber | ctx.author.is_mod):
538 | return await ctx.send("Comando liberado para subs! Agradeça usando os pontos do canal.")
539 |
540 | mensagem = ctx.content.lower()[15:]
541 | print(f"@{ctx.author.name}: {mensagem}")
542 |
543 | moderando = input("Aceita o agradecimento? ")
544 |
545 | if moderando == "s":
546 | print("Agradecimento aceito...")
547 | engine = pyttsx3.init()
548 | engine.say(mensagem)
549 | engine.runAndWait()
550 | return await ctx.send("Agradecido HeyGuys")
551 | else:
552 | print("agradecimento não aceito")
553 | return await ctx.send(f"@{ctx.author.name} seu agradecimento não foi aceito. :(")
554 |
555 |
556 | # Para poder adicionar/editar/deletar comandos pelo chat (apenas gerados pelo !comando)
557 | @commands.command(name='comando')
558 | async def add_commando(self, ctx: commands.Context):
559 | if not ctx.author.is_mod:
560 | return
561 |
562 | global namecommand
563 |
564 | def save_file(save=dict): # Salvar no arquivo as alterações
565 | with open("files/commands.json", 'w+', encoding='utf-8') as file:
566 | comandos = json.dumps(save, indent=True, ensure_ascii=False)
567 | file.write(comandos)
568 | print("comando salvo")
569 |
570 | comando = ctx.content.split()[2]
571 | msg = " ".join(ctx.content.split()[3:])
572 | if ctx.content.split()[1] == 'add': # Adicionar o comando novo
573 | namecommand[comando] = msg
574 | print(f"Comando {comando} adicionado por {ctx.author.name}. Lista de comando adicionados {namecommand}")
575 | save_file(namecommand)
576 | mensagem = f"Comando '{comando}' com a mensagem '{msg}' foi adicionada com sucesso."
577 |
578 | elif ctx.content.split()[1] == 'edit': # Editar um comando
579 | for command, message in namecommand.items():
580 | if command == comando:
581 | namecommand[command] = msg
582 | print(f"A mensagem do comando '{comando}' foi alterado para '{message}'")
583 | save_file(namecommand)
584 | mensagem = f"A mensagem do comando '{comando}' foi alterado para '{msg}' com sucesso."
585 |
586 | elif ctx.content.split()[1] == 'del': # Deletar um comando
587 | namecommand.pop(comando)
588 | save_file(namecommand)
589 | mensagem = f"O comando '{comando}' foi deletado com sucesso."
590 |
591 | await ctx.channel.send(mensagem)
592 |
593 |
594 | bot = Bot()
595 | bot.run()
596 |
--------------------------------------------------------------------------------
/poetry.lock:
--------------------------------------------------------------------------------
1 | [[package]]
2 | name = "aiohttp"
3 | version = "3.6.2"
4 | description = "Async http client/server framework (asyncio)"
5 | category = "main"
6 | optional = false
7 | python-versions = ">=3.5.3"
8 |
9 | [package.dependencies]
10 | async-timeout = ">=3.0,<4.0"
11 | attrs = ">=17.3.0"
12 | chardet = ">=2.0,<4.0"
13 | multidict = ">=4.5,<5.0"
14 | yarl = ">=1.0,<2.0"
15 |
16 | [package.extras]
17 | speedups = ["aiodns", "brotlipy", "cchardet"]
18 |
19 | [[package]]
20 | name = "appdirs"
21 | version = "1.4.4"
22 | description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
23 | category = "main"
24 | optional = false
25 | python-versions = "*"
26 |
27 | [[package]]
28 | name = "async-timeout"
29 | version = "3.0.1"
30 | description = "Timeout context manager for asyncio programs"
31 | category = "main"
32 | optional = false
33 | python-versions = ">=3.5.3"
34 |
35 | [[package]]
36 | name = "attrs"
37 | version = "20.2.0"
38 | description = "Classes Without Boilerplate"
39 | category = "main"
40 | optional = false
41 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
42 |
43 | [package.extras]
44 | dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "sphinx-rtd-theme", "pre-commit"]
45 | docs = ["sphinx", "sphinx-rtd-theme", "zope.interface"]
46 | tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"]
47 | tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"]
48 |
49 | [[package]]
50 | name = "beautifulsoup4"
51 | version = "4.9.2"
52 | description = "Screen-scraping library"
53 | category = "main"
54 | optional = false
55 | python-versions = "*"
56 |
57 | [package.dependencies]
58 | soupsieve = {version = ">1.2", markers = "python_version >= \"3.0\""}
59 |
60 | [package.extras]
61 | html5lib = ["html5lib"]
62 | lxml = ["lxml"]
63 |
64 | [[package]]
65 | name = "bs4"
66 | version = "0.0.1"
67 | description = "Dummy package for Beautiful Soup"
68 | category = "main"
69 | optional = false
70 | python-versions = "*"
71 |
72 | [package.dependencies]
73 | beautifulsoup4 = "*"
74 |
75 | [[package]]
76 | name = "certifi"
77 | version = "2020.6.20"
78 | description = "Python package for providing Mozilla's CA Bundle."
79 | category = "main"
80 | optional = false
81 | python-versions = "*"
82 |
83 | [[package]]
84 | name = "cfgv"
85 | version = "3.2.0"
86 | description = "Validate configuration and produce human readable error messages."
87 | category = "dev"
88 | optional = false
89 | python-versions = ">=3.6.1"
90 |
91 | [[package]]
92 | name = "chardet"
93 | version = "3.0.4"
94 | description = "Universal encoding detector for Python 2 and 3"
95 | category = "main"
96 | optional = false
97 | python-versions = "*"
98 |
99 | [[package]]
100 | name = "cssselect"
101 | version = "1.1.0"
102 | description = "cssselect parses CSS3 Selectors and translates them to XPath 1.0"
103 | category = "main"
104 | optional = false
105 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
106 |
107 | [[package]]
108 | name = "distlib"
109 | version = "0.3.1"
110 | description = "Distribution utilities"
111 | category = "dev"
112 | optional = false
113 | python-versions = "*"
114 |
115 | [[package]]
116 | name = "fake-useragent"
117 | version = "0.1.11"
118 | description = "Up to date simple useragent faker with real world database"
119 | category = "main"
120 | optional = false
121 | python-versions = "*"
122 |
123 | [[package]]
124 | name = "filelock"
125 | version = "3.0.12"
126 | description = "A platform independent file lock."
127 | category = "dev"
128 | optional = false
129 | python-versions = "*"
130 |
131 | [[package]]
132 | name = "identify"
133 | version = "1.5.5"
134 | description = "File identification library for Python"
135 | category = "dev"
136 | optional = false
137 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"
138 |
139 | [package.extras]
140 | license = ["editdistance"]
141 |
142 | [[package]]
143 | name = "idna"
144 | version = "2.10"
145 | description = "Internationalized Domain Names in Applications (IDNA)"
146 | category = "main"
147 | optional = false
148 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
149 |
150 | [[package]]
151 | name = "lxml"
152 | version = "4.5.2"
153 | description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API."
154 | category = "main"
155 | optional = false
156 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*"
157 |
158 | [package.extras]
159 | cssselect = ["cssselect (>=0.7)"]
160 | html5 = ["html5lib"]
161 | htmlsoup = ["beautifulsoup4"]
162 | source = ["Cython (>=0.29.7)"]
163 |
164 | [[package]]
165 | name = "multidict"
166 | version = "4.7.6"
167 | description = "multidict implementation"
168 | category = "main"
169 | optional = false
170 | python-versions = ">=3.5"
171 |
172 | [[package]]
173 | name = "nodeenv"
174 | version = "1.5.0"
175 | description = "Node.js virtual environment builder"
176 | category = "dev"
177 | optional = false
178 | python-versions = "*"
179 |
180 | [[package]]
181 | name = "parse"
182 | version = "1.18.0"
183 | description = "parse() is the opposite of format()"
184 | category = "main"
185 | optional = false
186 | python-versions = "*"
187 |
188 | [[package]]
189 | name = "pre-commit"
190 | version = "2.7.1"
191 | description = "A framework for managing and maintaining multi-language pre-commit hooks."
192 | category = "dev"
193 | optional = false
194 | python-versions = ">=3.6.1"
195 |
196 | [package.dependencies]
197 | cfgv = ">=2.0.0"
198 | identify = ">=1.0.0"
199 | nodeenv = ">=0.11.1"
200 | pyyaml = ">=5.1"
201 | toml = "*"
202 | virtualenv = ">=20.0.8"
203 |
204 | [[package]]
205 | name = "pyee"
206 | version = "7.0.4"
207 | description = "A port of node.js's EventEmitter to python."
208 | category = "main"
209 | optional = false
210 | python-versions = "*"
211 |
212 | [[package]]
213 | name = "pyppeteer"
214 | version = "0.2.2"
215 | description = "Headless chrome/chromium automation library (unofficial port of puppeteer)"
216 | category = "main"
217 | optional = false
218 | python-versions = ">=3.6.1,<4.0.0"
219 |
220 | [package.dependencies]
221 | appdirs = ">=1.4.3,<2.0.0"
222 | pyee = ">=7.0.1,<8.0.0"
223 | tqdm = ">=4.42.1,<5.0.0"
224 | urllib3 = ">=1.25.8,<2.0.0"
225 | websockets = ">=8.1,<9.0"
226 |
227 | [[package]]
228 | name = "pyquery"
229 | version = "1.4.1"
230 | description = "A jquery-like library for python"
231 | category = "main"
232 | optional = false
233 | python-versions = "*"
234 |
235 | [package.dependencies]
236 | cssselect = ">0.7.9"
237 | lxml = ">=2.1"
238 |
239 | [[package]]
240 | name = "pyyaml"
241 | version = "5.3.1"
242 | description = "YAML parser and emitter for Python"
243 | category = "dev"
244 | optional = false
245 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
246 |
247 | [[package]]
248 | name = "requests"
249 | version = "2.24.0"
250 | description = "Python HTTP for Humans."
251 | category = "main"
252 | optional = false
253 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
254 |
255 | [package.dependencies]
256 | certifi = ">=2017.4.17"
257 | chardet = ">=3.0.2,<4"
258 | idna = ">=2.5,<3"
259 | urllib3 = ">=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26"
260 |
261 | [package.extras]
262 | security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"]
263 | socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7)", "win-inet-pton"]
264 |
265 | [[package]]
266 | name = "requests-html"
267 | version = "0.10.0"
268 | description = "HTML Parsing for Humans."
269 | category = "main"
270 | optional = false
271 | python-versions = ">=3.6.0"
272 |
273 | [package.dependencies]
274 | bs4 = "*"
275 | fake-useragent = "*"
276 | parse = "*"
277 | pyppeteer = ">=0.0.14"
278 | pyquery = "*"
279 | requests = "*"
280 | w3lib = "*"
281 |
282 | [[package]]
283 | name = "six"
284 | version = "1.15.0"
285 | description = "Python 2 and 3 compatibility utilities"
286 | category = "main"
287 | optional = false
288 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
289 |
290 | [[package]]
291 | name = "soupsieve"
292 | version = "2.0.1"
293 | description = "A modern CSS selector implementation for Beautiful Soup."
294 | category = "main"
295 | optional = false
296 | python-versions = ">=3.5"
297 |
298 | [[package]]
299 | name = "toml"
300 | version = "0.10.1"
301 | description = "Python Library for Tom's Obvious, Minimal Language"
302 | category = "dev"
303 | optional = false
304 | python-versions = "*"
305 |
306 | [[package]]
307 | name = "tqdm"
308 | version = "4.50.0"
309 | description = "Fast, Extensible Progress Meter"
310 | category = "main"
311 | optional = false
312 | python-versions = ">=2.6, !=3.0.*, !=3.1.*"
313 |
314 | [package.extras]
315 | dev = ["py-make (>=0.1.0)", "twine", "argopt", "pydoc-markdown"]
316 |
317 | [[package]]
318 | name = "twitchio"
319 | version = "1.1.0"
320 | description = "A Python IRC and API wrapper for Twitch."
321 | category = "main"
322 | optional = false
323 | python-versions = "*"
324 |
325 | [package.dependencies]
326 | aiohttp = ">=3.3"
327 | async-timeout = ">=3.0.0"
328 | websockets = ">=6.0"
329 |
330 | [[package]]
331 | name = "urllib3"
332 | version = "1.25.10"
333 | description = "HTTP library with thread-safe connection pooling, file post, and more."
334 | category = "main"
335 | optional = false
336 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
337 |
338 | [package.extras]
339 | brotli = ["brotlipy (>=0.6.0)"]
340 | secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "pyOpenSSL (>=0.14)", "ipaddress"]
341 | socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7,<2.0)"]
342 |
343 | [[package]]
344 | name = "virtualenv"
345 | version = "20.0.32"
346 | description = "Virtual Python Environment builder"
347 | category = "dev"
348 | optional = false
349 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"
350 |
351 | [package.dependencies]
352 | appdirs = ">=1.4.3,<2"
353 | distlib = ">=0.3.1,<1"
354 | filelock = ">=3.0.0,<4"
355 | six = ">=1.9.0,<2"
356 |
357 | [package.extras]
358 | docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=19.9.0rc1)"]
359 | testing = ["coverage (>=5)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)", "pytest-xdist (>=1.31.0)", "packaging (>=20.0)", "xonsh (>=0.9.16)"]
360 |
361 | [[package]]
362 | name = "w3lib"
363 | version = "1.22.0"
364 | description = "Library of web-related functions"
365 | category = "main"
366 | optional = false
367 | python-versions = "*"
368 |
369 | [package.dependencies]
370 | six = ">=1.4.1"
371 |
372 | [[package]]
373 | name = "websockets"
374 | version = "8.1"
375 | description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"
376 | category = "main"
377 | optional = false
378 | python-versions = ">=3.6.1"
379 |
380 | [[package]]
381 | name = "yarl"
382 | version = "1.6.0"
383 | description = "Yet another URL library"
384 | category = "main"
385 | optional = false
386 | python-versions = ">=3.5"
387 |
388 | [package.dependencies]
389 | idna = ">=2.0"
390 | multidict = ">=4.0"
391 |
392 | [metadata]
393 | lock-version = "1.1"
394 | python-versions = "^3.8"
395 | content-hash = "ced0f0aeefe5e5f6b3273459eff508ae617baeee586d3cd6aa65c9238e561061"
396 |
397 | [metadata.files]
398 | aiohttp = [
399 | {file = "aiohttp-3.6.2-cp35-cp35m-macosx_10_13_x86_64.whl", hash = "sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e"},
400 | {file = "aiohttp-3.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec"},
401 | {file = "aiohttp-3.6.2-cp36-cp36m-macosx_10_13_x86_64.whl", hash = "sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48"},
402 | {file = "aiohttp-3.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59"},
403 | {file = "aiohttp-3.6.2-cp36-cp36m-win32.whl", hash = "sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a"},
404 | {file = "aiohttp-3.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17"},
405 | {file = "aiohttp-3.6.2-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a"},
406 | {file = "aiohttp-3.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd"},
407 | {file = "aiohttp-3.6.2-cp37-cp37m-win32.whl", hash = "sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965"},
408 | {file = "aiohttp-3.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654"},
409 | {file = "aiohttp-3.6.2-py3-none-any.whl", hash = "sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4"},
410 | {file = "aiohttp-3.6.2.tar.gz", hash = "sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326"},
411 | ]
412 | appdirs = [
413 | {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"},
414 | {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"},
415 | ]
416 | async-timeout = [
417 | {file = "async-timeout-3.0.1.tar.gz", hash = "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f"},
418 | {file = "async_timeout-3.0.1-py3-none-any.whl", hash = "sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3"},
419 | ]
420 | attrs = [
421 | {file = "attrs-20.2.0-py2.py3-none-any.whl", hash = "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc"},
422 | {file = "attrs-20.2.0.tar.gz", hash = "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594"},
423 | ]
424 | beautifulsoup4 = [
425 | {file = "beautifulsoup4-4.9.2-py2-none-any.whl", hash = "sha256:645d833a828722357038299b7f6879940c11dddd95b900fe5387c258b72bb883"},
426 | {file = "beautifulsoup4-4.9.2-py3-none-any.whl", hash = "sha256:5dfe44f8fddc89ac5453f02659d3ab1668f2c0d9684839f0785037e8c6d9ac8d"},
427 | {file = "beautifulsoup4-4.9.2.tar.gz", hash = "sha256:1edf5e39f3a5bc6e38b235b369128416c7239b34f692acccececb040233032a1"},
428 | ]
429 | bs4 = [
430 | {file = "bs4-0.0.1.tar.gz", hash = "sha256:36ecea1fd7cc5c0c6e4a1ff075df26d50da647b75376626cc186e2212886dd3a"},
431 | ]
432 | certifi = [
433 | {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"},
434 | {file = "certifi-2020.6.20.tar.gz", hash = "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3"},
435 | ]
436 | cfgv = [
437 | {file = "cfgv-3.2.0-py2.py3-none-any.whl", hash = "sha256:32e43d604bbe7896fe7c248a9c2276447dbef840feb28fe20494f62af110211d"},
438 | {file = "cfgv-3.2.0.tar.gz", hash = "sha256:cf22deb93d4bcf92f345a5c3cd39d3d41d6340adc60c78bbbd6588c384fda6a1"},
439 | ]
440 | chardet = [
441 | {file = "chardet-3.0.4-py2.py3-none-any.whl", hash = "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"},
442 | {file = "chardet-3.0.4.tar.gz", hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"},
443 | ]
444 | cssselect = [
445 | {file = "cssselect-1.1.0-py2.py3-none-any.whl", hash = "sha256:f612ee47b749c877ebae5bb77035d8f4202c6ad0f0fc1271b3c18ad6c4468ecf"},
446 | {file = "cssselect-1.1.0.tar.gz", hash = "sha256:f95f8dedd925fd8f54edb3d2dfb44c190d9d18512377d3c1e2388d16126879bc"},
447 | ]
448 | distlib = [
449 | {file = "distlib-0.3.1-py2.py3-none-any.whl", hash = "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb"},
450 | {file = "distlib-0.3.1.zip", hash = "sha256:edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"},
451 | ]
452 | fake-useragent = [
453 | {file = "fake-useragent-0.1.11.tar.gz", hash = "sha256:c104998b750eb097eefc28ae28e92d66397598d2cf41a31aa45d5559ef1adf35"},
454 | ]
455 | filelock = [
456 | {file = "filelock-3.0.12-py3-none-any.whl", hash = "sha256:929b7d63ec5b7d6b71b0fa5ac14e030b3f70b75747cef1b10da9b879fef15836"},
457 | {file = "filelock-3.0.12.tar.gz", hash = "sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59"},
458 | ]
459 | identify = [
460 | {file = "identify-1.5.5-py2.py3-none-any.whl", hash = "sha256:da683bfb7669fa749fc7731f378229e2dbf29a1d1337cbde04106f02236eb29d"},
461 | {file = "identify-1.5.5.tar.gz", hash = "sha256:7c22c384a2c9b32c5cc891d13f923f6b2653aa83e2d75d8f79be240d6c86c4f4"},
462 | ]
463 | idna = [
464 | {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"},
465 | {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"},
466 | ]
467 | lxml = [
468 | {file = "lxml-4.5.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:74f48ec98430e06c1fa8949b49ebdd8d27ceb9df8d3d1c92e1fdc2773f003f20"},
469 | {file = "lxml-4.5.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e70d4e467e243455492f5de463b72151cc400710ac03a0678206a5f27e79ddef"},
470 | {file = "lxml-4.5.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:7ad7906e098ccd30d8f7068030a0b16668ab8aa5cda6fcd5146d8d20cbaa71b5"},
471 | {file = "lxml-4.5.2-cp27-cp27m-win32.whl", hash = "sha256:92282c83547a9add85ad658143c76a64a8d339028926d7dc1998ca029c88ea6a"},
472 | {file = "lxml-4.5.2-cp27-cp27m-win_amd64.whl", hash = "sha256:05a444b207901a68a6526948c7cc8f9fe6d6f24c70781488e32fd74ff5996e3f"},
473 | {file = "lxml-4.5.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:94150231f1e90c9595ccc80d7d2006c61f90a5995db82bccbca7944fd457f0f6"},
474 | {file = "lxml-4.5.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:bea760a63ce9bba566c23f726d72b3c0250e2fa2569909e2d83cda1534c79443"},
475 | {file = "lxml-4.5.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:c3f511a3c58676147c277eff0224c061dd5a6a8e1373572ac817ac6324f1b1e0"},
476 | {file = "lxml-4.5.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:59daa84aef650b11bccd18f99f64bfe44b9f14a08a28259959d33676554065a1"},
477 | {file = "lxml-4.5.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:c9d317efde4bafbc1561509bfa8a23c5cab66c44d49ab5b63ff690f5159b2304"},
478 | {file = "lxml-4.5.2-cp35-cp35m-win32.whl", hash = "sha256:9dc9006dcc47e00a8a6a029eb035c8f696ad38e40a27d073a003d7d1443f5d88"},
479 | {file = "lxml-4.5.2-cp35-cp35m-win_amd64.whl", hash = "sha256:08fc93257dcfe9542c0a6883a25ba4971d78297f63d7a5a26ffa34861ca78730"},
480 | {file = "lxml-4.5.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:121b665b04083a1e85ff1f5243d4a93aa1aaba281bc12ea334d5a187278ceaf1"},
481 | {file = "lxml-4.5.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:5591c4164755778e29e69b86e425880f852464a21c7bb53c7ea453bbe2633bbe"},
482 | {file = "lxml-4.5.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:cc411ad324a4486b142c41d9b2b6a722c534096963688d879ea6fa8a35028258"},
483 | {file = "lxml-4.5.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:1fa21263c3aba2b76fd7c45713d4428dbcc7644d73dcf0650e9d344e433741b3"},
484 | {file = "lxml-4.5.2-cp36-cp36m-win32.whl", hash = "sha256:786aad2aa20de3dbff21aab86b2fb6a7be68064cbbc0219bde414d3a30aa47ae"},
485 | {file = "lxml-4.5.2-cp36-cp36m-win_amd64.whl", hash = "sha256:e1cacf4796b20865789083252186ce9dc6cc59eca0c2e79cca332bdff24ac481"},
486 | {file = "lxml-4.5.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:80a38b188d20c0524fe8959c8ce770a8fdf0e617c6912d23fc97c68301bb9aba"},
487 | {file = "lxml-4.5.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:ecc930ae559ea8a43377e8b60ca6f8d61ac532fc57efb915d899de4a67928efd"},
488 | {file = "lxml-4.5.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:a76979f728dd845655026ab991df25d26379a1a8fc1e9e68e25c7eda43004bed"},
489 | {file = "lxml-4.5.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:cfd7c5dd3c35c19cec59c63df9571c67c6d6e5c92e0fe63517920e97f61106d1"},
490 | {file = "lxml-4.5.2-cp37-cp37m-win32.whl", hash = "sha256:5a9c8d11aa2c8f8b6043d845927a51eb9102eb558e3f936df494e96393f5fd3e"},
491 | {file = "lxml-4.5.2-cp37-cp37m-win_amd64.whl", hash = "sha256:4b4a111bcf4b9c948e020fd207f915c24a6de3f1adc7682a2d92660eb4e84f1a"},
492 | {file = "lxml-4.5.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:5dd20538a60c4cc9a077d3b715bb42307239fcd25ef1ca7286775f95e9e9a46d"},
493 | {file = "lxml-4.5.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:2b30aa2bcff8e958cd85d907d5109820b01ac511eae5b460803430a7404e34d7"},
494 | {file = "lxml-4.5.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:aa8eba3db3d8761db161003e2d0586608092e217151d7458206e243be5a43843"},
495 | {file = "lxml-4.5.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:8f0ec6b9b3832e0bd1d57af41f9238ea7709bbd7271f639024f2fc9d3bb01293"},
496 | {file = "lxml-4.5.2-cp38-cp38-win32.whl", hash = "sha256:107781b213cf7201ec3806555657ccda67b1fccc4261fb889ef7fc56976db81f"},
497 | {file = "lxml-4.5.2-cp38-cp38-win_amd64.whl", hash = "sha256:f161af26f596131b63b236372e4ce40f3167c1b5b5d459b29d2514bd8c9dc9ee"},
498 | {file = "lxml-4.5.2.tar.gz", hash = "sha256:cdc13a1682b2a6241080745b1953719e7fe0850b40a5c71ca574f090a1391df6"},
499 | ]
500 | multidict = [
501 | {file = "multidict-4.7.6-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:275ca32383bc5d1894b6975bb4ca6a7ff16ab76fa622967625baeebcf8079000"},
502 | {file = "multidict-4.7.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:1ece5a3369835c20ed57adadc663400b5525904e53bae59ec854a5d36b39b21a"},
503 | {file = "multidict-4.7.6-cp35-cp35m-win32.whl", hash = "sha256:5141c13374e6b25fe6bf092052ab55c0c03d21bd66c94a0e3ae371d3e4d865a5"},
504 | {file = "multidict-4.7.6-cp35-cp35m-win_amd64.whl", hash = "sha256:9456e90649005ad40558f4cf51dbb842e32807df75146c6d940b6f5abb4a78f3"},
505 | {file = "multidict-4.7.6-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:e0d072ae0f2a179c375f67e3da300b47e1a83293c554450b29c900e50afaae87"},
506 | {file = "multidict-4.7.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:3750f2205b800aac4bb03b5ae48025a64e474d2c6cc79547988ba1d4122a09e2"},
507 | {file = "multidict-4.7.6-cp36-cp36m-win32.whl", hash = "sha256:f07acae137b71af3bb548bd8da720956a3bc9f9a0b87733e0899226a2317aeb7"},
508 | {file = "multidict-4.7.6-cp36-cp36m-win_amd64.whl", hash = "sha256:6513728873f4326999429a8b00fc7ceddb2509b01d5fd3f3be7881a257b8d463"},
509 | {file = "multidict-4.7.6-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:feed85993dbdb1dbc29102f50bca65bdc68f2c0c8d352468c25b54874f23c39d"},
510 | {file = "multidict-4.7.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fcfbb44c59af3f8ea984de67ec7c306f618a3ec771c2843804069917a8f2e255"},
511 | {file = "multidict-4.7.6-cp37-cp37m-win32.whl", hash = "sha256:4538273208e7294b2659b1602490f4ed3ab1c8cf9dbdd817e0e9db8e64be2507"},
512 | {file = "multidict-4.7.6-cp37-cp37m-win_amd64.whl", hash = "sha256:d14842362ed4cf63751648e7672f7174c9818459d169231d03c56e84daf90b7c"},
513 | {file = "multidict-4.7.6-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:c026fe9a05130e44157b98fea3ab12969e5b60691a276150db9eda71710cd10b"},
514 | {file = "multidict-4.7.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:51a4d210404ac61d32dada00a50ea7ba412e6ea945bbe992e4d7a595276d2ec7"},
515 | {file = "multidict-4.7.6-cp38-cp38-win32.whl", hash = "sha256:5cf311a0f5ef80fe73e4f4c0f0998ec08f954a6ec72b746f3c179e37de1d210d"},
516 | {file = "multidict-4.7.6-cp38-cp38-win_amd64.whl", hash = "sha256:7388d2ef3c55a8ba80da62ecfafa06a1c097c18032a501ffd4cabbc52d7f2b19"},
517 | {file = "multidict-4.7.6.tar.gz", hash = "sha256:fbb77a75e529021e7c4a8d4e823d88ef4d23674a202be4f5addffc72cbb91430"},
518 | ]
519 | nodeenv = [
520 | {file = "nodeenv-1.5.0-py2.py3-none-any.whl", hash = "sha256:5304d424c529c997bc888453aeaa6362d242b6b4631e90f3d4bf1b290f1c84a9"},
521 | {file = "nodeenv-1.5.0.tar.gz", hash = "sha256:ab45090ae383b716c4ef89e690c41ff8c2b257b85b309f01f3654df3d084bd7c"},
522 | ]
523 | parse = [
524 | {file = "parse-1.18.0.tar.gz", hash = "sha256:91666032d6723dc5905248417ef0dc9e4c51df9526aaeef271eacad6491f06a4"},
525 | ]
526 | pre-commit = [
527 | {file = "pre_commit-2.7.1-py2.py3-none-any.whl", hash = "sha256:810aef2a2ba4f31eed1941fc270e72696a1ad5590b9751839c90807d0fff6b9a"},
528 | {file = "pre_commit-2.7.1.tar.gz", hash = "sha256:c54fd3e574565fe128ecc5e7d2f91279772ddb03f8729645fa812fe809084a70"},
529 | ]
530 | pyee = [
531 | {file = "pyee-7.0.4-py2.py3-none-any.whl", hash = "sha256:0667fd696f55ffdf9f2646fa60557b4eeae1a427315d3938b614ee40755d18b6"},
532 | {file = "pyee-7.0.4.tar.gz", hash = "sha256:15c6bcc14de2c2b3d8ee8923283fca182bcfab4155975a5165c66fc4bf44b680"},
533 | ]
534 | pyppeteer = [
535 | {file = "pyppeteer-0.2.2-py3-none-any.whl", hash = "sha256:27d1f1a54e233428b4de3489d516db7d4805f67442bb77a7718cc04d7a40debb"},
536 | {file = "pyppeteer-0.2.2.tar.gz", hash = "sha256:153c62666fe1d55b3941d1634733c02cafb47188fcf282987371e863d58f22e9"},
537 | ]
538 | pyquery = [
539 | {file = "pyquery-1.4.1-py2.py3-none-any.whl", hash = "sha256:710eac327b87f15f74a95c3378c6ba62ef6fcfb0a6d009a7d33349c9f7e65835"},
540 | {file = "pyquery-1.4.1.tar.gz", hash = "sha256:8fcf77c72e3d602ce10a0bd4e65f57f0945c18e15627e49130c27172d4939d98"},
541 | ]
542 | pyyaml = [
543 | {file = "PyYAML-5.3.1-cp27-cp27m-win32.whl", hash = "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f"},
544 | {file = "PyYAML-5.3.1-cp27-cp27m-win_amd64.whl", hash = "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76"},
545 | {file = "PyYAML-5.3.1-cp35-cp35m-win32.whl", hash = "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2"},
546 | {file = "PyYAML-5.3.1-cp35-cp35m-win_amd64.whl", hash = "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c"},
547 | {file = "PyYAML-5.3.1-cp36-cp36m-win32.whl", hash = "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2"},
548 | {file = "PyYAML-5.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648"},
549 | {file = "PyYAML-5.3.1-cp37-cp37m-win32.whl", hash = "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a"},
550 | {file = "PyYAML-5.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf"},
551 | {file = "PyYAML-5.3.1-cp38-cp38-win32.whl", hash = "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97"},
552 | {file = "PyYAML-5.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee"},
553 | {file = "PyYAML-5.3.1.tar.gz", hash = "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"},
554 | ]
555 | requests = [
556 | {file = "requests-2.24.0-py2.py3-none-any.whl", hash = "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898"},
557 | {file = "requests-2.24.0.tar.gz", hash = "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b"},
558 | ]
559 | requests-html = [
560 | {file = "requests-html-0.10.0.tar.gz", hash = "sha256:7e929ecfed95fb1d0994bb368295d6d7c4d06b03fcb900c33d7d0b17e6003947"},
561 | {file = "requests_html-0.10.0-py3-none-any.whl", hash = "sha256:cb8a78cf829c4eca9d6233f28524f65dd2bfaafb4bdbbc407f0a0b8f487df6e2"},
562 | ]
563 | six = [
564 | {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"},
565 | {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"},
566 | ]
567 | soupsieve = [
568 | {file = "soupsieve-2.0.1-py3-none-any.whl", hash = "sha256:1634eea42ab371d3d346309b93df7870a88610f0725d47528be902a0d95ecc55"},
569 | {file = "soupsieve-2.0.1.tar.gz", hash = "sha256:a59dc181727e95d25f781f0eb4fd1825ff45590ec8ff49eadfd7f1a537cc0232"},
570 | ]
571 | toml = [
572 | {file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"},
573 | {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"},
574 | ]
575 | tqdm = [
576 | {file = "tqdm-4.50.0-py2.py3-none-any.whl", hash = "sha256:2dd75fdb764f673b8187643496fcfbeac38348015b665878e582b152f3391cdb"},
577 | {file = "tqdm-4.50.0.tar.gz", hash = "sha256:93b7a6a9129fce904f6df4cf3ae7ff431d779be681a95c3344c26f3e6c09abfa"},
578 | ]
579 | twitchio = [
580 | {file = "twitchio-1.1.0-py3-none-any.whl", hash = "sha256:03bf880fdb41440dc82d8f636aa33948536266694dc98bfbbb599e918844e8cc"},
581 | {file = "twitchio-1.1.0.tar.gz", hash = "sha256:e8aae4ac6065f2a346108450e021df76042ba14ef262ee190608a8b4614055a3"},
582 | ]
583 | urllib3 = [
584 | {file = "urllib3-1.25.10-py2.py3-none-any.whl", hash = "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461"},
585 | {file = "urllib3-1.25.10.tar.gz", hash = "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a"},
586 | ]
587 | virtualenv = [
588 | {file = "virtualenv-20.0.32-py2.py3-none-any.whl", hash = "sha256:9160a8f6196afcb8bb91405b5362651f302ee8e810fc471f5f9ce9a06b070298"},
589 | {file = "virtualenv-20.0.32.tar.gz", hash = "sha256:3d427459dfe5ec3241a6bad046b1d10c0e445940e013c81946458987c7c7e255"},
590 | ]
591 | w3lib = [
592 | {file = "w3lib-1.22.0-py2.py3-none-any.whl", hash = "sha256:0161d55537063e00d95a241663ede3395c4c6d7b777972ba2fd58bbab2001e53"},
593 | {file = "w3lib-1.22.0.tar.gz", hash = "sha256:0ad6d0203157d61149fd45aaed2e24f53902989c32fc1dccc2e2bfba371560df"},
594 | ]
595 | websockets = [
596 | {file = "websockets-8.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:3762791ab8b38948f0c4d281c8b2ddfa99b7e510e46bd8dfa942a5fff621068c"},
597 | {file = "websockets-8.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:3db87421956f1b0779a7564915875ba774295cc86e81bc671631379371af1170"},
598 | {file = "websockets-8.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4f9f7d28ce1d8f1295717c2c25b732c2bc0645db3215cf757551c392177d7cb8"},
599 | {file = "websockets-8.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:295359a2cc78736737dd88c343cd0747546b2174b5e1adc223824bcaf3e164cb"},
600 | {file = "websockets-8.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:1d3f1bf059d04a4e0eb4985a887d49195e15ebabc42364f4eb564b1d065793f5"},
601 | {file = "websockets-8.1-cp36-cp36m-win32.whl", hash = "sha256:2db62a9142e88535038a6bcfea70ef9447696ea77891aebb730a333a51ed559a"},
602 | {file = "websockets-8.1-cp36-cp36m-win_amd64.whl", hash = "sha256:0e4fb4de42701340bd2353bb2eee45314651caa6ccee80dbd5f5d5978888fed5"},
603 | {file = "websockets-8.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:9b248ba3dd8a03b1a10b19efe7d4f7fa41d158fdaa95e2cf65af5a7b95a4f989"},
604 | {file = "websockets-8.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:ce85b06a10fc65e6143518b96d3dca27b081a740bae261c2fb20375801a9d56d"},
605 | {file = "websockets-8.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:965889d9f0e2a75edd81a07592d0ced54daa5b0785f57dc429c378edbcffe779"},
606 | {file = "websockets-8.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:751a556205d8245ff94aeef23546a1113b1dd4f6e4d102ded66c39b99c2ce6c8"},
607 | {file = "websockets-8.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:3ef56fcc7b1ff90de46ccd5a687bbd13a3180132268c4254fc0fa44ecf4fc422"},
608 | {file = "websockets-8.1-cp37-cp37m-win32.whl", hash = "sha256:7ff46d441db78241f4c6c27b3868c9ae71473fe03341340d2dfdbe8d79310acc"},
609 | {file = "websockets-8.1-cp37-cp37m-win_amd64.whl", hash = "sha256:20891f0dddade307ffddf593c733a3fdb6b83e6f9eef85908113e628fa5a8308"},
610 | {file = "websockets-8.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c1ec8db4fac31850286b7cd3b9c0e1b944204668b8eb721674916d4e28744092"},
611 | {file = "websockets-8.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:5c01fd846263a75bc8a2b9542606927cfad57e7282965d96b93c387622487485"},
612 | {file = "websockets-8.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:9bef37ee224e104a413f0780e29adb3e514a5b698aabe0d969a6ba426b8435d1"},
613 | {file = "websockets-8.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:d705f8aeecdf3262379644e4b55107a3b55860eb812b673b28d0fbc347a60c55"},
614 | {file = "websockets-8.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:c8a116feafdb1f84607cb3b14aa1418424ae71fee131642fc568d21423b51824"},
615 | {file = "websockets-8.1-cp38-cp38-win32.whl", hash = "sha256:e898a0863421650f0bebac8ba40840fc02258ef4714cb7e1fd76b6a6354bda36"},
616 | {file = "websockets-8.1-cp38-cp38-win_amd64.whl", hash = "sha256:f8a7bff6e8664afc4e6c28b983845c5bc14965030e3fb98789734d416af77c4b"},
617 | {file = "websockets-8.1.tar.gz", hash = "sha256:5c65d2da8c6bce0fca2528f69f44b2f977e06954c8512a952222cea50dad430f"},
618 | ]
619 | yarl = [
620 | {file = "yarl-1.6.0-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:db9eb8307219d7e09b33bcb43287222ef35cbcf1586ba9472b0a4b833666ada1"},
621 | {file = "yarl-1.6.0-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:e31fef4e7b68184545c3d68baec7074532e077bd1906b040ecfba659737df188"},
622 | {file = "yarl-1.6.0-cp35-cp35m-win32.whl", hash = "sha256:5d84cc36981eb5a8533be79d6c43454c8e6a39ee3118ceaadbd3c029ab2ee580"},
623 | {file = "yarl-1.6.0-cp35-cp35m-win_amd64.whl", hash = "sha256:5e447e7f3780f44f890360ea973418025e8c0cdcd7d6a1b221d952600fd945dc"},
624 | {file = "yarl-1.6.0-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:6f6898429ec3c4cfbef12907047136fd7b9e81a6ee9f105b45505e633427330a"},
625 | {file = "yarl-1.6.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:d088ea9319e49273f25b1c96a3763bf19a882cff774d1792ae6fba34bd40550a"},
626 | {file = "yarl-1.6.0-cp36-cp36m-win32.whl", hash = "sha256:b7c199d2cbaf892ba0f91ed36d12ff41ecd0dde46cbf64ff4bfe997a3ebc925e"},
627 | {file = "yarl-1.6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:67c5ea0970da882eaf9efcf65b66792557c526f8e55f752194eff8ec722c75c2"},
628 | {file = "yarl-1.6.0-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:04a54f126a0732af75e5edc9addeaa2113e2ca7c6fce8974a63549a70a25e50e"},
629 | {file = "yarl-1.6.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fcbe419805c9b20db9a51d33b942feddbf6e7fb468cb20686fd7089d4164c12a"},
630 | {file = "yarl-1.6.0-cp37-cp37m-win32.whl", hash = "sha256:c604998ab8115db802cc55cb1b91619b2831a6128a62ca7eea577fc8ea4d3131"},
631 | {file = "yarl-1.6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:c22607421f49c0cb6ff3ed593a49b6a99c6ffdeaaa6c944cdda83c2393c8864d"},
632 | {file = "yarl-1.6.0-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:7ce35944e8e61927a8f4eb78f5bc5d1e6da6d40eadd77e3f79d4e9399e263921"},
633 | {file = "yarl-1.6.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:c15d71a640fb1f8e98a1423f9c64d7f1f6a3a168f803042eaf3a5b5022fde0c1"},
634 | {file = "yarl-1.6.0-cp38-cp38-win32.whl", hash = "sha256:3cc860d72ed989f3b1f3abbd6ecf38e412de722fb38b8f1b1a086315cf0d69c5"},
635 | {file = "yarl-1.6.0-cp38-cp38-win_amd64.whl", hash = "sha256:e32f0fb443afcfe7f01f95172b66f279938fbc6bdaebe294b0ff6747fb6db020"},
636 | {file = "yarl-1.6.0.tar.gz", hash = "sha256:61d3ea3c175fe45f1498af868879c6ffeb989d4143ac542163c45538ba5ec21b"},
637 | ]
638 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------