libbot 10__tar.gz → 11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libbot-10 → libbot-11}/PKG-INFO +3 -5
- {libbot-10 → libbot-11}/README.rst +2 -4
- {libbot-10 → libbot-11}/bin/botd +0 -2
- {libbot-10 → libbot-11}/bot/modules/irc.py +0 -2
- {libbot-10 → libbot-11}/bot/modules/rss.py +2 -24
- {libbot-10 → libbot-11}/bot/modules/udp.py +1 -1
- {libbot-10 → libbot-11}/libbot.egg-info/PKG-INFO +3 -5
- {libbot-10 → libbot-11}/pyproject.toml +3 -2
- {libbot-10 → libbot-11}/bin/bot +0 -0
- {libbot-10 → libbot-11}/bin/botcmd +0 -0
- {libbot-10 → libbot-11}/bot/defines.py +0 -0
- {libbot-10 → libbot-11}/bot/handler.py +0 -0
- {libbot-10 → libbot-11}/bot/methods.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/__init__.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/cmd.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/fnd.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/log.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/mod.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/sts.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/tdo.py +0 -0
- {libbot-10 → libbot-11}/bot/modules/thr.py +0 -0
- {libbot-10 → libbot-11}/bot/objects.py +0 -0
- {libbot-10 → libbot-11}/bot/storage.py +0 -0
- {libbot-10 → libbot-11}/bot/threads.py +0 -0
- {libbot-10 → libbot-11}/bot/utility.py +0 -0
- {libbot-10 → libbot-11}/libbot.egg-info/SOURCES.txt +0 -0
- {libbot-10 → libbot-11}/libbot.egg-info/dependency_links.txt +0 -0
- {libbot-10 → libbot-11}/libbot.egg-info/top_level.txt +0 -0
- {libbot-10 → libbot-11}/setup.cfg +0 -0
- {libbot-10 → libbot-11}/setup.py +0 -0
{libbot-10 → libbot-11}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: libbot
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11
|
|
4
4
|
Summary: library to program bots
|
|
5
5
|
Author-email: botlib <botlib@proton.me>
|
|
6
6
|
License: Public Domain
|
|
@@ -58,10 +58,6 @@ USAGE
|
|
|
58
58
|
|
|
59
59
|
::
|
|
60
60
|
|
|
61
|
-
for easy typing use an alias
|
|
62
|
-
|
|
63
|
-
$ alias bot="python3 -m bot"
|
|
64
|
-
|
|
65
61
|
list of commands
|
|
66
62
|
|
|
67
63
|
$ bot cmd
|
|
@@ -83,6 +79,8 @@ USAGE
|
|
|
83
79
|
$ bot -d
|
|
84
80
|
$
|
|
85
81
|
|
|
82
|
+
add -v if you want to have verbose logging
|
|
83
|
+
|
|
86
84
|
|
|
87
85
|
CONFIGURATION
|
|
88
86
|
|
|
@@ -42,10 +42,6 @@ USAGE
|
|
|
42
42
|
|
|
43
43
|
::
|
|
44
44
|
|
|
45
|
-
for easy typing use an alias
|
|
46
|
-
|
|
47
|
-
$ alias bot="python3 -m bot"
|
|
48
|
-
|
|
49
45
|
list of commands
|
|
50
46
|
|
|
51
47
|
$ bot cmd
|
|
@@ -67,6 +63,8 @@ USAGE
|
|
|
67
63
|
$ bot -d
|
|
68
64
|
$
|
|
69
65
|
|
|
66
|
+
add -v if you want to have verbose logging
|
|
67
|
+
|
|
70
68
|
|
|
71
69
|
CONFIGURATION
|
|
72
70
|
|
{libbot-10 → libbot-11}/bin/botd
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
#
|
|
3
|
-
# pylint: disable=C0115,C0116,W0105,E0402,C0411,R0903
|
|
3
|
+
# pylint: disable=C0115,C0116,W0105,E0402,C0411,R0903,W0201
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
"rich site syndicate"
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import html.parser
|
|
10
10
|
import re
|
|
11
|
-
import threading
|
|
12
11
|
import time
|
|
13
12
|
import urllib
|
|
14
13
|
import urllib.request
|
|
@@ -22,7 +21,7 @@ from urllib.parse import quote_plus, urlencode
|
|
|
22
21
|
from ..methods import fmt
|
|
23
22
|
from ..objects import Default, Object, update
|
|
24
23
|
from ..handler import BroadCast
|
|
25
|
-
from ..storage import
|
|
24
|
+
from ..storage import find, fntime, last, sync
|
|
26
25
|
from ..threads import Repeater, launch
|
|
27
26
|
from ..utility import laps
|
|
28
27
|
|
|
@@ -44,25 +43,11 @@ class Feed(Default):
|
|
|
44
43
|
pass
|
|
45
44
|
|
|
46
45
|
|
|
47
|
-
Storage.add(Feed)
|
|
48
|
-
|
|
49
|
-
|
|
50
46
|
class Rss(Default):
|
|
51
47
|
|
|
52
48
|
def __init__(self):
|
|
53
49
|
Default.__init__(self)
|
|
54
50
|
self.display_list = 'title,link,author'
|
|
55
|
-
self.name = ''
|
|
56
|
-
self.rss = ''
|
|
57
|
-
|
|
58
|
-
def len(self):
|
|
59
|
-
return len(self.__dict__)
|
|
60
|
-
|
|
61
|
-
def size(self):
|
|
62
|
-
return len(self.__dict__)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Storage.add(Rss)
|
|
66
51
|
|
|
67
52
|
|
|
68
53
|
class Seen(Default):
|
|
@@ -72,18 +57,11 @@ class Seen(Default):
|
|
|
72
57
|
self.urls = []
|
|
73
58
|
|
|
74
59
|
|
|
75
|
-
Storage.add(Seen)
|
|
76
|
-
|
|
77
|
-
|
|
78
60
|
class Fetcher(Object):
|
|
79
61
|
|
|
80
62
|
dosave = False
|
|
81
63
|
seen = Seen()
|
|
82
64
|
|
|
83
|
-
def __init__(self):
|
|
84
|
-
super().__init__()
|
|
85
|
-
self.connected = threading.Event()
|
|
86
|
-
|
|
87
65
|
@staticmethod
|
|
88
66
|
def display(obj):
|
|
89
67
|
result = ''
|
|
@@ -34,7 +34,7 @@ class Cfg(Object):
|
|
|
34
34
|
class UDP(Object):
|
|
35
35
|
|
|
36
36
|
def __init__(self):
|
|
37
|
-
|
|
37
|
+
Object.__init__(self)
|
|
38
38
|
self.stopped = False
|
|
39
39
|
self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
40
40
|
self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: libbot
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11
|
|
4
4
|
Summary: library to program bots
|
|
5
5
|
Author-email: botlib <botlib@proton.me>
|
|
6
6
|
License: Public Domain
|
|
@@ -58,10 +58,6 @@ USAGE
|
|
|
58
58
|
|
|
59
59
|
::
|
|
60
60
|
|
|
61
|
-
for easy typing use an alias
|
|
62
|
-
|
|
63
|
-
$ alias bot="python3 -m bot"
|
|
64
|
-
|
|
65
61
|
list of commands
|
|
66
62
|
|
|
67
63
|
$ bot cmd
|
|
@@ -83,6 +79,8 @@ USAGE
|
|
|
83
79
|
$ bot -d
|
|
84
80
|
$
|
|
85
81
|
|
|
82
|
+
add -v if you want to have verbose logging
|
|
83
|
+
|
|
86
84
|
|
|
87
85
|
CONFIGURATION
|
|
88
86
|
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "libbot"
|
|
8
8
|
description = "library to program bots"
|
|
9
|
-
version = "
|
|
9
|
+
version = "11"
|
|
10
10
|
authors = [
|
|
11
11
|
{name = "botlib", email = "botlib@proton.me" },
|
|
12
12
|
]
|
|
@@ -26,6 +26,7 @@ classifiers = [
|
|
|
26
26
|
"bugs" = "https://github.com/botlibx/libbot/issues"
|
|
27
27
|
"source" = "https://github.com/botlibx/libbot"
|
|
28
28
|
|
|
29
|
+
|
|
29
30
|
[tool.setuptools]
|
|
30
31
|
packages = [
|
|
31
32
|
"bot",
|
|
@@ -35,4 +36,4 @@ script-files = [
|
|
|
35
36
|
"bin/bot",
|
|
36
37
|
"bin/botd",
|
|
37
38
|
"bin/botcmd"
|
|
38
|
-
]
|
|
39
|
+
]
|
{libbot-10 → libbot-11}/bin/bot
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{libbot-10 → libbot-11}/setup.py
RENAMED
|
File without changes
|