Jérôme Deuchnord 1 рік тому
джерело
коміт
210a7dc608
15 змінених файлів з 77 додано та 59 видалено
  1. +2
    -1
      .gitignore
  2. +0
    -12
      Pipfile
  3. +0
    -43
      Pipfile.lock
  4. +53
    -0
      poetry.lock
  5. +19
    -0
      pyproject.toml
  6. +0
    -0
      twason/__init__.py
  7. +3
    -3
      twason/__main__.py
  8. BIN
      twason/__pycache__/__init__.cpython-39.pyc
  9. BIN
      twason/__pycache__/config.cpython-39.pyc
  10. BIN
      twason/__pycache__/twitchbot.cpython-39.pyc
  11. +0
    -0
      twason/config.py
  12. +0
    -0
      twason/moderator.py
  13. +0
    -0
      twason/twitch_message.py
  14. +0
    -0
      twason/twitchbot.py
  15. +0
    -0
      twason/utils.py

+ 2
- 1
.gitignore Переглянути файл

@@ -1,3 +1,4 @@
config.json
docker-compose.yml
__pycache__
__pycache__dist
/dist

+ 0
- 12
Pipfile Переглянути файл

@@ -1,12 +0,0 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
irc3 = "*"

[dev-packages]

[requires]
python_version = "3.9"

+ 0
- 43
Pipfile.lock Переглянути файл

@@ -1,43 +0,0 @@
{
"_meta": {
"hash": {
"sha256": "a2d7b3880bcd5122a42c9d5a0d2e5ade937786b9b36437bfefa0eba5ef0359fd"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.9"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"docopt": {
"hashes": [
"sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
],
"version": "==0.6.2"
},
"irc3": {
"hashes": [
"sha256:088b7be88817dee5d02e7e06c9dbf503c8e807a8cccc9b36b5be419918574cf1",
"sha256:6800c8876a889736961e199e834dc9933244affa20d4da086fb4b47f76984e12"
],
"index": "pypi",
"version": "==1.1.7"
},
"venusian": {
"hashes": [
"sha256:06e7385786ad3a15c70740b2af8d30dfb063a946a851dcb4159f9e2a2302578f",
"sha256:f6842b7242b1039c0c28f6feef29016e7e7dd3caaeb476a193acf737db31ee38"
],
"markers": "python_version >= '3.5'",
"version": "==3.0.0"
}
},
"develop": {}
}

+ 53
- 0
poetry.lock Переглянути файл

@@ -0,0 +1,53 @@
[[package]]
name = "docopt"
version = "0.6.2"
description = "Pythonic argument parser, that will make you smile"
category = "main"
optional = false
python-versions = "*"

[[package]]
name = "irc3"
version = "1.1.7"
description = "plugable irc client library based on asyncio with DCC and SASL support"
category = "main"
optional = false
python-versions = "*"

[package.dependencies]
docopt = "*"
venusian = ">=3.0"

[package.extras]
test = ["pytest-asyncio", "pytest-aiohttp", "feedparser", "requests", "pysocks", "twitter", "aiocron", "redis", "pytest", "irc3-plugins-test"]
web = ["aiohttp"]

[[package]]
name = "venusian"
version = "3.0.0"
description = "A library for deferring decorator actions"
category = "main"
optional = false
python-versions = ">=3.5"

[package.extras]
docs = ["sphinx", "repoze.sphinx.autointerface"]
testing = ["pytest", "pytest-cov", "coverage"]

[metadata]
lock-version = "1.1"
python-versions = "^3.7"
content-hash = "1d29e6d81c2ba0236771fc1ba673e7367e504279164d4f1556d492be4200f620"

[metadata.files]
docopt = [
{file = "docopt-0.6.2.tar.gz", hash = "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"},
]
irc3 = [
{file = "irc3-1.1.7-py3-none-any.whl", hash = "sha256:088b7be88817dee5d02e7e06c9dbf503c8e807a8cccc9b36b5be419918574cf1"},
{file = "irc3-1.1.7.tar.gz", hash = "sha256:6800c8876a889736961e199e834dc9933244affa20d4da086fb4b47f76984e12"},
]
venusian = [
{file = "venusian-3.0.0-py3-none-any.whl", hash = "sha256:06e7385786ad3a15c70740b2af8d30dfb063a946a851dcb4159f9e2a2302578f"},
{file = "venusian-3.0.0.tar.gz", hash = "sha256:f6842b7242b1039c0c28f6feef29016e7e7dd3caaeb476a193acf737db31ee38"},
]

+ 19
- 0
pyproject.toml Переглянути файл

@@ -0,0 +1,19 @@
[tool.poetry]
name = "twason"
version = "1.0.0"
description = "The KISS Twitch bot"
authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"]
license = "AGPL-3.0-or-later"

[tool.poetry.scripts]
twason = 'twason.__main__:main'

[tool.poetry.dependencies]
python = "^3.7"
irc3 = "^1.1.7"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

_twitchbot/__init__.py → twason/__init__.py Переглянути файл


bot.py → twason/__main__.py Переглянути файл

@@ -20,8 +20,8 @@
import argparse
import irc3

from _twitchbot.config import get_config
from _twitchbot import twitchbot
from . import twitchbot
from .config import get_config


TWITCH_IRC_SERVER = "irc.chat.twitch.tv"
@@ -44,7 +44,7 @@ def main() -> int:

bot.run(forever=True)

return 0
exit(0)


def get_arguments():

BIN
twason/__pycache__/__init__.cpython-39.pyc Переглянути файл


BIN
twason/__pycache__/config.cpython-39.pyc Переглянути файл


BIN
twason/__pycache__/twitchbot.cpython-39.pyc Переглянути файл


_twitchbot/config.py → twason/config.py Переглянути файл


_twitchbot/moderator.py → twason/moderator.py Переглянути файл


_twitchbot/twitch_message.py → twason/twitch_message.py Переглянути файл


_twitchbot/twitchbot.py → twason/twitchbot.py Переглянути файл


_twitchbot/utils.py → twason/utils.py Переглянути файл


Завантаження…
Відмінити
Зберегти