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.
Files changed (30) hide show
  1. {libbot-10 → libbot-11}/PKG-INFO +3 -5
  2. {libbot-10 → libbot-11}/README.rst +2 -4
  3. {libbot-10 → libbot-11}/bin/botd +0 -2
  4. {libbot-10 → libbot-11}/bot/modules/irc.py +0 -2
  5. {libbot-10 → libbot-11}/bot/modules/rss.py +2 -24
  6. {libbot-10 → libbot-11}/bot/modules/udp.py +1 -1
  7. {libbot-10 → libbot-11}/libbot.egg-info/PKG-INFO +3 -5
  8. {libbot-10 → libbot-11}/pyproject.toml +3 -2
  9. {libbot-10 → libbot-11}/bin/bot +0 -0
  10. {libbot-10 → libbot-11}/bin/botcmd +0 -0
  11. {libbot-10 → libbot-11}/bot/defines.py +0 -0
  12. {libbot-10 → libbot-11}/bot/handler.py +0 -0
  13. {libbot-10 → libbot-11}/bot/methods.py +0 -0
  14. {libbot-10 → libbot-11}/bot/modules/__init__.py +0 -0
  15. {libbot-10 → libbot-11}/bot/modules/cmd.py +0 -0
  16. {libbot-10 → libbot-11}/bot/modules/fnd.py +0 -0
  17. {libbot-10 → libbot-11}/bot/modules/log.py +0 -0
  18. {libbot-10 → libbot-11}/bot/modules/mod.py +0 -0
  19. {libbot-10 → libbot-11}/bot/modules/sts.py +0 -0
  20. {libbot-10 → libbot-11}/bot/modules/tdo.py +0 -0
  21. {libbot-10 → libbot-11}/bot/modules/thr.py +0 -0
  22. {libbot-10 → libbot-11}/bot/objects.py +0 -0
  23. {libbot-10 → libbot-11}/bot/storage.py +0 -0
  24. {libbot-10 → libbot-11}/bot/threads.py +0 -0
  25. {libbot-10 → libbot-11}/bot/utility.py +0 -0
  26. {libbot-10 → libbot-11}/libbot.egg-info/SOURCES.txt +0 -0
  27. {libbot-10 → libbot-11}/libbot.egg-info/dependency_links.txt +0 -0
  28. {libbot-10 → libbot-11}/libbot.egg-info/top_level.txt +0 -0
  29. {libbot-10 → libbot-11}/setup.cfg +0 -0
  30. {libbot-10 → libbot-11}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libbot
3
- Version: 10
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
 
@@ -25,8 +25,6 @@ from bot import modules
25
25
  ALL = ",".join(modules.__dir__())
26
26
  NAME = "bot"
27
27
  USER = getpass.getuser()
28
-
29
-
30
28
  Storage.workdir = os.path.expanduser(f"~/.{NAME}")
31
29
  PIDFILE = os.path.join(Storage.workdir, f"{NAME}.pid")
32
30
 
@@ -93,8 +93,6 @@ class Cache(Object):
93
93
  return 0
94
94
 
95
95
 
96
-
97
-
98
96
  class TextWrap(textwrap.TextWrapper):
99
97
 
100
98
  def __init__(self):
@@ -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 Storage, find, fntime, last, sync
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
- super().__init__()
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: 10
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 = "10"
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
+ ]
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