genocide 233__tar.gz → 235__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.
- genocide-235/MANIFEST.in +1 -0
- {genocide-233 → genocide-235}/PKG-INFO +3 -2
- {genocide-233 → genocide-235}/README.rst +2 -1
- genocide-235/bin/genocide +1 -0
- genocide-233/genocide/runtime.py → genocide-235/genocide/booting.py +17 -18
- {genocide-233 → genocide-235}/genocide/brokers.py +1 -9
- {genocide-233 → genocide-235}/genocide/configs.py +2 -2
- {genocide-233 → genocide-235}/genocide/handler.py +6 -3
- {genocide-233 → genocide-235}/genocide/modules/adm.py +7 -7
- {genocide-233 → genocide-235}/genocide/modules/irc.py +17 -5
- {genocide-233 → genocide-235}/genocide/modules/mdl.py +1 -1
- {genocide-233 → genocide-235}/genocide/modules/rss.py +10 -6
- {genocide-233 → genocide-235}/genocide/modules/slg.py +1 -1
- genocide-235/genocide/modules/tbl.py +93 -0
- {genocide-233 → genocide-235}/genocide/modules/tmr.py +7 -2
- {genocide-233 → genocide-235}/genocide/network/_static/documentation_options.js +1 -1
- {genocide-233 → genocide-235}/genocide/network/_static/genocide.css +3 -3
- genocide-235/genocide/network/about.html +61 -0
- {genocide-233 → genocide-235}/genocide/network/echa.html +2 -2
- {genocide-233 → genocide-235}/genocide/network/evidence.html +4 -6
- {genocide-233 → genocide-235}/genocide/network/guilty.html +2 -2
- {genocide-233 → genocide-235}/genocide/network/index.html +4 -3
- {genocide-233 → genocide-235}/genocide/network/manual.html +50 -27
- genocide-235/genocide/network/objects.inv +0 -0
- {genocide-233 → genocide-235}/genocide/network/pubchem.html +2 -2
- {genocide-233 → genocide-235}/genocide/network/reconsider.html +2 -2
- genocide-235/genocide/network/reconsider2.html +111 -0
- {genocide-233 → genocide-235}/genocide/network/request.html +3 -2
- genocide-235/genocide/network/searchindex.js +1 -0
- genocide-233/genocide/network/about.html → genocide-235/genocide/network/skull.html +7 -7
- genocide-235/genocide/network/writing.html +165 -0
- {genocide-233 → genocide-235}/genocide/network/writings.html +3 -4
- {genocide-233 → genocide-235}/genocide/objects.py +1 -1
- {genocide-233 → genocide-235}/genocide/package.py +9 -8
- {genocide-233 → genocide-235}/genocide/persist.py +40 -37
- genocide-233/genocide/booting.py → genocide-235/genocide/runtime.py +35 -31
- {genocide-233 → genocide-235}/genocide/threads.py +2 -1
- {genocide-233 → genocide-235}/genocide/utility.py +1 -1
- {genocide-233 → genocide-235}/genocide.egg-info/PKG-INFO +3 -2
- {genocide-233 → genocide-235}/genocide.egg-info/SOURCES.txt +5 -0
- genocide-235/genocide.egg-info/entry_points.txt +2 -0
- {genocide-233 → genocide-235}/pyproject.toml +2 -2
- genocide-233/genocide/modules/tbl.py +0 -0
- genocide-233/genocide/network/objects.inv +0 -6
- genocide-233/genocide/network/searchindex.js +0 -1
- genocide-233/genocide.egg-info/entry_points.txt +0 -2
- {genocide-233 → genocide-235}/genocide/command.py +0 -0
- {genocide-233 → genocide-235}/genocide/encoder.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/__init__.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/bsc.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/cfg.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/fie.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/flt.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/fnd.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/log.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/man.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/mbx.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/pth.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/pwd.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/req.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/rst.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/sil.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/tdo.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/thr.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/udp.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/wdr.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/web.py +0 -0
- {genocide-233 → genocide-235}/genocide/modules/wsd.py +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/ECHAabilify.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/ECHAclozapine.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/ECHAhaldol.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/ECHAzyprexa.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/OTP111.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/OTP222.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/abilifynew2.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/abilifypubchem.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/ack3.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/bevestigd.jpg +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/clozapinenew2.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/clozapinepubchem.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/genocide.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/haldolpubchem.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/haloperidolnew2.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/informed.jpg +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/kamer2.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/skull3.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/zyprexanew2.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_images/zyprexapubchem.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/alabaster.css +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/basic.css +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/custom.css +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/doctools.js +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/file.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/language_data.js +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/minus.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/opensearch.xml +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/otpcr.css +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/plus.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/pygments.css +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/searchtools.js +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/sitemap.xml +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/skull3.png +0 -0
- {genocide-233 → genocide-235}/genocide/network/_static/sphinx_highlight.js +0 -0
- {genocide-233 → genocide-235}/genocide/network/genindex-all.html +0 -0
- {genocide-233 → genocide-235}/genocide/network/genindex.html +0 -0
- {genocide-233 → genocide-235}/genocide/network/googlea6568bcc05c8d50b.html +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/EM_Ack_OTP-CR-117_19.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/EM_T04_OTP-CR-117_19.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/EM_T07_OTP-CR-117_19_001.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/Kamer.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/Rome-Statute.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/pdf/bevestigd.pdf +0 -0
- {genocide-233 → genocide-235}/genocide/network/robots.txt +0 -0
- {genocide-233 → genocide-235}/genocide/network/search.html +0 -0
- {genocide-233 → genocide-235}/genocide.egg-info/dependency_links.txt +0 -0
- {genocide-233 → genocide-235}/genocide.egg-info/top_level.txt +0 -0
- {genocide-233 → genocide-235}/setup.cfg +0 -0
genocide-235/MANIFEST.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include bin/genocide
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: genocide
|
|
3
|
-
Version:
|
|
3
|
+
Version: 235
|
|
4
4
|
Summary: Since 4 March 2019.
|
|
5
5
|
Author-email: Bart Thate <bthate@dds.nl>
|
|
6
6
|
License-Expression: Unlicense
|
|
@@ -68,4 +68,5 @@ commiting of the above mentioned crimes (killing, torture and impotent making)
|
|
|
68
68
|
possible.
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
**(*)** Since January 2026 the **ECHA** <European Chemical Agency> no longer shows a skull and bones when visited.
|
|
@@ -53,4 +53,5 @@ commiting of the above mentioned crimes (killing, torture and impotent making)
|
|
|
53
53
|
possible.
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
|
|
57
|
+
**(*)** Since January 2026 the **ECHA** <European Chemical Agency> no longer shows a skull and bones when visited.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
python3 -c "from genocide.runtime import main ; main()" $* ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
"
|
|
4
|
+
"in the beginning"
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
import logging
|
|
@@ -9,9 +9,9 @@ import os
|
|
|
9
9
|
import pathlib
|
|
10
10
|
import sys
|
|
11
11
|
import time
|
|
12
|
+
import _thread
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
from .brokers import Broker
|
|
15
15
|
from .command import Commands
|
|
16
16
|
from .configs import Main
|
|
17
17
|
from .package import Mods
|
|
@@ -20,10 +20,10 @@ from .threads import Thread
|
|
|
20
20
|
from .utility import Log, Utils
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Boot:
|
|
24
24
|
|
|
25
25
|
inits = []
|
|
26
|
-
|
|
26
|
+
md5 = {}
|
|
27
27
|
path = os.path.dirname(__spec__.loader.path)
|
|
28
28
|
|
|
29
29
|
@classmethod
|
|
@@ -33,7 +33,7 @@ class Runtime:
|
|
|
33
33
|
print("%s since %s %s (%s)" % (
|
|
34
34
|
Main.name.upper(),
|
|
35
35
|
tme,
|
|
36
|
-
Main.level.upper() or "
|
|
36
|
+
Main.level.upper() or "warning",
|
|
37
37
|
Utils.md5sum(Mods.path("tbl") or "")[:7],
|
|
38
38
|
))
|
|
39
39
|
sys.stdout.flush()
|
|
@@ -52,7 +52,7 @@ class Runtime:
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def configure(cls, cfg):
|
|
54
54
|
"in the beginning."
|
|
55
|
-
Main.name = cfg.name or Main.name or Utils.pkgname(
|
|
55
|
+
Main.name = cfg.name or Main.name or Utils.pkgname(Boot)
|
|
56
56
|
if cfg.read:
|
|
57
57
|
Disk.read(Main, "main", "config")
|
|
58
58
|
Workdir.configure(cfg)
|
|
@@ -106,6 +106,11 @@ class Runtime:
|
|
|
106
106
|
for name, thr in thrs:
|
|
107
107
|
thr.join()
|
|
108
108
|
|
|
109
|
+
@classmethod
|
|
110
|
+
def md5s(cls):
|
|
111
|
+
"set md5 sums."
|
|
112
|
+
cls.md5.update(Utils.md5dir(cls.path))
|
|
113
|
+
|
|
109
114
|
@staticmethod
|
|
110
115
|
def pidfile(name):
|
|
111
116
|
"write pidfile."
|
|
@@ -148,11 +153,6 @@ class Runtime:
|
|
|
148
153
|
res.append((name, mod))
|
|
149
154
|
return res
|
|
150
155
|
|
|
151
|
-
@classmethod
|
|
152
|
-
def setmd5s(cls):
|
|
153
|
-
"set md5 sums."
|
|
154
|
-
cls.md5s.update(Utils.md5dir(cls.path))
|
|
155
|
-
|
|
156
156
|
@classmethod
|
|
157
157
|
def shutdown(cls):
|
|
158
158
|
"call shutdown on modules."
|
|
@@ -162,9 +162,11 @@ class Runtime:
|
|
|
162
162
|
logging.info("shutdown %s", name)
|
|
163
163
|
try:
|
|
164
164
|
mod.shutdown()
|
|
165
|
+
except (KeyboardInterrupt, EOFError):
|
|
166
|
+
_thread.interrupt_main()
|
|
165
167
|
except Exception as ex:
|
|
166
168
|
logging.exception(ex)
|
|
167
|
-
|
|
169
|
+
return
|
|
168
170
|
|
|
169
171
|
@classmethod
|
|
170
172
|
def wrap(cls, func, *args):
|
|
@@ -177,12 +179,9 @@ class Runtime:
|
|
|
177
179
|
pass
|
|
178
180
|
try:
|
|
179
181
|
func(*args)
|
|
180
|
-
except (KeyboardInterrupt, EOFError):
|
|
181
|
-
pass
|
|
182
|
-
except Exception as ex:
|
|
183
|
-
logging.exception(ex)
|
|
184
|
-
try:
|
|
185
182
|
cls.shutdown()
|
|
183
|
+
except (KeyboardInterrupt, EOFError):
|
|
184
|
+
return
|
|
186
185
|
except Exception as ex:
|
|
187
186
|
logging.exception(ex)
|
|
188
187
|
if old:
|
|
@@ -191,5 +190,5 @@ class Runtime:
|
|
|
191
190
|
|
|
192
191
|
def __dir__():
|
|
193
192
|
return (
|
|
194
|
-
"
|
|
193
|
+
"Boot",
|
|
195
194
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
"
|
|
4
|
+
"an object for a string"
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Broker:
|
|
@@ -43,14 +43,6 @@ class Broker:
|
|
|
43
43
|
if attr in dir(obj):
|
|
44
44
|
yield obj
|
|
45
45
|
|
|
46
|
-
@classmethod
|
|
47
|
-
def stop(cls):
|
|
48
|
-
"announce text on all objects with an announce method."
|
|
49
|
-
for obj in cls.objs("stop"):
|
|
50
|
-
if "wait" in dir(obj):
|
|
51
|
-
obj.wait()
|
|
52
|
-
obj.stop()
|
|
53
|
-
|
|
54
46
|
|
|
55
47
|
def __dir__():
|
|
56
48
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
"
|
|
4
|
+
"one config to rule them all"
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
from .objects import Base, Object
|
|
@@ -26,7 +26,7 @@ class MainConfig(type):
|
|
|
26
26
|
|
|
27
27
|
class Main(metaclass=MainConfig):
|
|
28
28
|
|
|
29
|
-
level = "
|
|
29
|
+
level = "warning"
|
|
30
30
|
name = Utils.pkgname(MainConfig)
|
|
31
31
|
wdr = ""
|
|
32
32
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
"
|
|
4
|
+
"event handling"
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
import collections
|
|
8
7
|
import logging
|
|
9
8
|
import queue
|
|
10
9
|
import threading
|
|
@@ -28,7 +27,7 @@ class Event(Base):
|
|
|
28
27
|
self.index = 0
|
|
29
28
|
self.kind = "event"
|
|
30
29
|
self.orig = ""
|
|
31
|
-
self.result =
|
|
30
|
+
self.result = []
|
|
32
31
|
self.text = ""
|
|
33
32
|
|
|
34
33
|
def display(self):
|
|
@@ -152,6 +151,7 @@ class Client(Handler):
|
|
|
152
151
|
|
|
153
152
|
def stop(self):
|
|
154
153
|
"stop client."
|
|
154
|
+
super().stop()
|
|
155
155
|
self.running.clear()
|
|
156
156
|
self.iqueue.put(None)
|
|
157
157
|
|
|
@@ -174,6 +174,9 @@ class Polled(Client):
|
|
|
174
174
|
"return event."
|
|
175
175
|
return self.iqueue.get()
|
|
176
176
|
|
|
177
|
+
def start(self, daemon=True):
|
|
178
|
+
super().start(daemon=daemon)
|
|
179
|
+
|
|
177
180
|
|
|
178
181
|
class Console(Polled):
|
|
179
182
|
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"administrator"
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
from genocide.booting import Boot
|
|
7
8
|
from genocide.command import Commands
|
|
8
9
|
from genocide.configs import Main
|
|
9
10
|
from genocide.encoder import Json
|
|
10
11
|
from genocide.package import Mods
|
|
11
12
|
from genocide.persist import Workdir
|
|
12
|
-
from genocide.runtime import Runtime
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def srv(event):
|
|
@@ -21,18 +21,18 @@ def srv(event):
|
|
|
21
21
|
|
|
22
22
|
def tbl(event):
|
|
23
23
|
"create table."
|
|
24
|
-
|
|
24
|
+
Boot.md5 = {}
|
|
25
25
|
Commands.names = {}
|
|
26
|
-
Mods.
|
|
26
|
+
Mods.md5 = {}
|
|
27
27
|
for name, module in Mods.all():
|
|
28
28
|
Commands.scan(module)
|
|
29
|
-
|
|
30
|
-
Mods.
|
|
29
|
+
Boot.md5s()
|
|
30
|
+
Mods.md5s()
|
|
31
31
|
event.reply("# This file is placed in the Pubic Domain.\n\n")
|
|
32
32
|
event.reply('"tables"\n\n')
|
|
33
|
-
event.reply(f"CORE = {Json.dumps(
|
|
33
|
+
event.reply(f"CORE = {Json.dumps(Boot.md5, indent=4, sort_keys=True)}\n\n")
|
|
34
34
|
event.reply(f"NAMES = {Json.dumps(Commands.names, indent=4, sort_keys=True)}\n\n")
|
|
35
|
-
event.reply(f"MD5 = {Json.dumps(Mods.
|
|
35
|
+
event.reply(f"MD5 = {Json.dumps(Mods.md5, indent=4, sort_keys=True)}")
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def wdr(event):
|
|
@@ -11,6 +11,7 @@ import ssl
|
|
|
11
11
|
import textwrap
|
|
12
12
|
import threading
|
|
13
13
|
import time
|
|
14
|
+
import _thread
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
from genocide.command import Commands
|
|
@@ -33,6 +34,11 @@ def init():
|
|
|
33
34
|
return irc
|
|
34
35
|
|
|
35
36
|
|
|
37
|
+
def shutdown():
|
|
38
|
+
for name, bot in Broker.like("irc"):
|
|
39
|
+
bot.stop()
|
|
40
|
+
|
|
41
|
+
|
|
36
42
|
def rlog(txt):
|
|
37
43
|
for ign in Config.ignore:
|
|
38
44
|
if ign in str(txt):
|
|
@@ -123,6 +129,7 @@ class IRC(Output):
|
|
|
123
129
|
self.state.nrerror = 0
|
|
124
130
|
self.state.nrsend = 0
|
|
125
131
|
self.state.pongcheck = False
|
|
132
|
+
self.state.running = threading.Event()
|
|
126
133
|
self.state.sleep = self.cfg.sleep
|
|
127
134
|
self.state.stopkeep = False
|
|
128
135
|
self.zelf = ""
|
|
@@ -260,7 +267,7 @@ class IRC(Output):
|
|
|
260
267
|
self.docommand("JOIN", channel)
|
|
261
268
|
|
|
262
269
|
def keep(self):
|
|
263
|
-
while
|
|
270
|
+
while self.running.is_set():
|
|
264
271
|
if self.state.stopkeep:
|
|
265
272
|
self.state.stopkeep = False
|
|
266
273
|
break
|
|
@@ -268,7 +275,10 @@ class IRC(Output):
|
|
|
268
275
|
self.events.authed.wait()
|
|
269
276
|
self.state.keeprunning = True
|
|
270
277
|
self.state.latest = time.time()
|
|
271
|
-
|
|
278
|
+
for x in range(self.cfg.sleep*10):
|
|
279
|
+
time.sleep(0.1)
|
|
280
|
+
if not self.running.is_set():
|
|
281
|
+
break
|
|
272
282
|
self.docommand("PING", self.cfg.server)
|
|
273
283
|
if self.state.pongcheck:
|
|
274
284
|
self.restart()
|
|
@@ -454,12 +464,14 @@ class IRC(Output):
|
|
|
454
464
|
)
|
|
455
465
|
|
|
456
466
|
def stop(self):
|
|
457
|
-
logging.warning("stopping")
|
|
458
467
|
self.state.stopkeep = True
|
|
459
|
-
|
|
468
|
+
super().stop()
|
|
460
469
|
|
|
461
470
|
def wait(self):
|
|
462
|
-
|
|
471
|
+
try:
|
|
472
|
+
self.events.ready.wait()
|
|
473
|
+
except (KeyboardInterrupt, EOFError):
|
|
474
|
+
_thread.interrupt_main()
|
|
463
475
|
|
|
464
476
|
|
|
465
477
|
def cb_auth(evt):
|
|
@@ -42,7 +42,7 @@ def init():
|
|
|
42
42
|
txt = f"{nrs} feeds"
|
|
43
43
|
if nrs == 1:
|
|
44
44
|
txt = txt[:-1]
|
|
45
|
-
logging.
|
|
45
|
+
logging.warning(txt)
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
def shutdown():
|
|
@@ -127,7 +127,8 @@ class Runner:
|
|
|
127
127
|
self.dosave = False
|
|
128
128
|
self.fetchlock = threading.RLock()
|
|
129
129
|
self.queue = queue.Queue()
|
|
130
|
-
self.
|
|
130
|
+
self.running = threading.Event()
|
|
131
|
+
self.running.set()
|
|
131
132
|
self.todo = queue.Queue()
|
|
132
133
|
|
|
133
134
|
def display(self, obj):
|
|
@@ -148,8 +149,10 @@ class Runner:
|
|
|
148
149
|
return result[:-2].rstrip()
|
|
149
150
|
|
|
150
151
|
def loop(self):
|
|
151
|
-
while
|
|
152
|
+
while self.running.is_set():
|
|
152
153
|
job = self.queue.get()
|
|
154
|
+
if job is None:
|
|
155
|
+
break
|
|
153
156
|
self.fetch(*job)
|
|
154
157
|
|
|
155
158
|
def fetch(self, fnm, feed, silent=False):
|
|
@@ -194,11 +197,12 @@ class Runner:
|
|
|
194
197
|
def put(self, args):
|
|
195
198
|
self.queue.put(args)
|
|
196
199
|
|
|
197
|
-
def start(self):
|
|
198
|
-
Thread.launch(self.loop)
|
|
200
|
+
def start(self, daemon=True):
|
|
201
|
+
Thread.launch(self.loop, daemon=daemon)
|
|
199
202
|
|
|
200
203
|
def stop(self):
|
|
201
|
-
self.
|
|
204
|
+
self.running.clear()
|
|
205
|
+
self.queue.put(None)
|
|
202
206
|
|
|
203
207
|
|
|
204
208
|
class Runners:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# This file is placed in the Public Domain.
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
"""By law using poison, castrated, tortured, killed, destructed in whole/in part since 4 March 2019. @IntlCrimCourt reconsider OTP-CR-117/19 http://
|
|
4
|
+
"""By law using poison, castrated, tortured, killed, destructed in whole/in part since 4 March 2019. @IntlCrimCourt reconsider OTP-CR-117/19 http://genocide.github.io"""
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
def slg(event):
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# This file is placed in the Pubic Domain.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
"tables"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
CORE = {
|
|
8
|
+
"booting": "1c86dd729360f56e3058970ccf2d7bdc",
|
|
9
|
+
"brokers": "2bc4bd7b717811519f40e501684873a5",
|
|
10
|
+
"command": "3550e75f3e72bad68089737c7a54b7b1",
|
|
11
|
+
"configs": "d7e6b1a1cca1158aab7519444df5a3da",
|
|
12
|
+
"encoder": "4f4f1beb05e2a662fad03932437532dc",
|
|
13
|
+
"handler": "f89e191faf9d966aed2b8cbf2583a6d8",
|
|
14
|
+
"objects": "c18bda539e8d80f9b72c172ef5027dc9",
|
|
15
|
+
"package": "0a6707af2cbd4c28549292e15cc9bc7e",
|
|
16
|
+
"persist": "a93f24896c99c0b6b53d96d0bc4cedbb",
|
|
17
|
+
"runtime": "e62ac8c832bd369b20963fa1817e026b",
|
|
18
|
+
"threads": "ff961bdfa6b58d3a115f3d1da9dfc3e5",
|
|
19
|
+
"utility": "094ad3d1fd8072de0230b8d1d825032b"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
NAMES = {
|
|
24
|
+
"atr": "rss",
|
|
25
|
+
"cfg": "cfg",
|
|
26
|
+
"cmd": "bsc",
|
|
27
|
+
"dis": "mdl",
|
|
28
|
+
"dne": "tdo",
|
|
29
|
+
"dpl": "rss",
|
|
30
|
+
"eml": "mbx",
|
|
31
|
+
"err": "rss",
|
|
32
|
+
"exp": "rss",
|
|
33
|
+
"fie": "fnd",
|
|
34
|
+
"flt": "flt",
|
|
35
|
+
"fnd": "fnd",
|
|
36
|
+
"imp": "rss",
|
|
37
|
+
"log": "log",
|
|
38
|
+
"lou": "sil",
|
|
39
|
+
"man": "man",
|
|
40
|
+
"mbx": "mbx",
|
|
41
|
+
"mod": "bsc",
|
|
42
|
+
"nme": "rss",
|
|
43
|
+
"now": "mdl",
|
|
44
|
+
"pth": "pth",
|
|
45
|
+
"pwd": "pwd",
|
|
46
|
+
"rem": "rss",
|
|
47
|
+
"req": "req",
|
|
48
|
+
"res": "rss",
|
|
49
|
+
"rss": "rss",
|
|
50
|
+
"sil": "sil",
|
|
51
|
+
"slg": "slg",
|
|
52
|
+
"srv": "adm",
|
|
53
|
+
"syn": "rss",
|
|
54
|
+
"tbl": "adm",
|
|
55
|
+
"tdo": "tdo",
|
|
56
|
+
"thr": "thr",
|
|
57
|
+
"tmr": "tmr",
|
|
58
|
+
"udp": "udp",
|
|
59
|
+
"upt": "bsc",
|
|
60
|
+
"ver": "bsc",
|
|
61
|
+
"wdr": "wdr",
|
|
62
|
+
"wsd": "wsd"
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
MD5 = {
|
|
67
|
+
"adm": "583280b8e8f725c744614d920642ae7d",
|
|
68
|
+
"bsc": "2b85a62a8f25f7d01c8d75c72c94ca21",
|
|
69
|
+
"cfg": "a0bc1538bd4062602db3e9c978997f1e",
|
|
70
|
+
"fie": "68c71fb8f3457531703d7ebb0e332020",
|
|
71
|
+
"flt": "eec25a46f1c8819a98b96b43fe63d7be",
|
|
72
|
+
"fnd": "4d82e2e33e3ecbe7790f60335bba2859",
|
|
73
|
+
"irc": "9ad7991b783064da345de9eeb4506e05",
|
|
74
|
+
"log": "a076ce6f7008166b4703e9f94e1b2464",
|
|
75
|
+
"man": "7bdd0049babf4454574e6c8dbf14b84c",
|
|
76
|
+
"mbx": "79baef5c4ef4c5f3759019e417a8336b",
|
|
77
|
+
"mdl": "b5123ea0c61665573bc46c6040d2b679",
|
|
78
|
+
"pth": "211bf9ef6898555135249123b584fe6c",
|
|
79
|
+
"pwd": "c308a6405f500bbcdde84334fc377bb8",
|
|
80
|
+
"req": "793704d64443c4f19512924e294943ea",
|
|
81
|
+
"rss": "881c15540eecd8604193b8527bdc4c8a",
|
|
82
|
+
"rst": "86cd83535f240c65f4b4d96472787161",
|
|
83
|
+
"sil": "7d621b14822b6fe56e576d0f549dbd15",
|
|
84
|
+
"slg": "13f6455e7a9444fb07c94a2d0630d246",
|
|
85
|
+
"tbl": "d41d8cd98f00b204e9800998ecf8427e",
|
|
86
|
+
"tdo": "b7b7010a72d3eea01215af43e195c26c",
|
|
87
|
+
"thr": "9bc23033b34d96f021e1b3d0b407d9fd",
|
|
88
|
+
"tmr": "795f3d80a4cf586dd11d31a872e582f4",
|
|
89
|
+
"udp": "c1a9c14f8f7ec72dbf5647e95ed5edab",
|
|
90
|
+
"wdr": "e432d8707328f94a0cd7d07614906550",
|
|
91
|
+
"web": "80821c497dfd14c61712d1e0cbedef04",
|
|
92
|
+
"wsd": "dced55e5bad312e454903aa78d8324af"
|
|
93
|
+
}
|
|
@@ -13,7 +13,7 @@ import time
|
|
|
13
13
|
from genocide.brokers import Broker
|
|
14
14
|
from genocide.objects import Base, Object, Methods
|
|
15
15
|
from genocide.persist import Disk, Locate
|
|
16
|
-
from genocide.threads import
|
|
16
|
+
from genocide.threads import Timed
|
|
17
17
|
from genocide.utility import Time
|
|
18
18
|
|
|
19
19
|
|
|
@@ -43,6 +43,11 @@ def init():
|
|
|
43
43
|
logging.warning("%s timers", len(Timers.timers))
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
def shutdown():
|
|
47
|
+
for timer in Timers.timers:
|
|
48
|
+
timer.stop()
|
|
49
|
+
|
|
50
|
+
|
|
46
51
|
class Timer(Base):
|
|
47
52
|
|
|
48
53
|
pass
|
|
@@ -87,5 +92,5 @@ def tmr(event):
|
|
|
87
92
|
event.reply("no bot")
|
|
88
93
|
return
|
|
89
94
|
timer = Timed(diff, bot.say, event.channel, txt)
|
|
90
|
-
|
|
95
|
+
timer.start()
|
|
91
96
|
event.reply("ok " + Time.elapsed(diff))
|
|
@@ -12,11 +12,11 @@ div.body a:link, div.body h, div.body p, div.body dd, div.body li, div.body bloc
|
|
|
12
12
|
body {
|
|
13
13
|
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
|
|
14
14
|
'Verdana', sans-serif;
|
|
15
|
-
font-size:
|
|
15
|
+
font-size: 110%;
|
|
16
16
|
background-color: #fff;
|
|
17
17
|
color: #555;
|
|
18
|
-
margin:
|
|
19
|
-
padding: 0px
|
|
18
|
+
margin: 40px;
|
|
19
|
+
padding: 0px 30px 0px 30px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
|
|
8
|
+
<title>About — Since 4 March 2019.</title>
|
|
9
|
+
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="_static/genocide.css" />
|
|
11
|
+
<link rel="stylesheet" type="text/css" href="_static/genocide.css" />
|
|
12
|
+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
|
|
13
|
+
<script src="_static/doctools.js"></script>
|
|
14
|
+
<script src="_static/sphinx_highlight.js"></script>
|
|
15
|
+
<link rel="search" type="application/opensearchdescription+xml"
|
|
16
|
+
title="Search within Since 4 March 2019."
|
|
17
|
+
href="_static/opensearch.xml"/>
|
|
18
|
+
<link rel="icon" href="_static/skull3.png"/>
|
|
19
|
+
<link rel="author" title="About these documents" href="#" />
|
|
20
|
+
<link rel="index" title="Index" href="genindex.html" />
|
|
21
|
+
<link rel="search" title="Search" href="search.html" />
|
|
22
|
+
<link rel="next" title="ECHA" href="echa.html" />
|
|
23
|
+
<link rel="prev" title="Reconsider" href="index.html" />
|
|
24
|
+
|
|
25
|
+
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
|
29
|
+
|
|
30
|
+
</head><body>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<div class="document">
|
|
34
|
+
<div class="documentwrapper">
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div class="body" role="main">
|
|
38
|
+
|
|
39
|
+
<a class="reference external image-reference" href="index.html"><img alt="_images/genocide.png" src="_images/genocide.png" style="width: 100%; height: 2cm;" /></a>
|
|
40
|
+
<center><i>Elderly, Handicapped, Criminals, Wicked</i></center><br><br><center><b>ABOUT</b></center><br><p>By law using poison, castrated, tortured, killed, destructed in whole/in part since 4 March 2019. @IntlCrimCourt reconsider OTP-CR-117/19 <a class="reference external" href="http://otpcr.github.io">http://otpcr.github.io</a></p>
|
|
41
|
+
<br>
|
|
42
|
+
<center>
|
|
43
|
+
<b><p><a class="reference internal" href="index.html#reconsider"><span class="std std-ref">reconsider</span></a> - <a class="reference internal" href="writings.html#writings"><span class="std std-ref">writings</span></a> - <a class="reference internal" href="evidence.html#evidence"><span class="std std-ref">evidence</span></a> - <a class="reference internal" href="guilty.html#guilty"><span class="std std-ref">guilty</span></a></p>
|
|
44
|
+
</b>
|
|
45
|
+
</center>
|
|
46
|
+
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
<div class="clearer"></div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="footer">
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</body>
|
|
61
|
+
</html>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="body" role="main">
|
|
38
38
|
|
|
39
39
|
<a class="reference external image-reference" href="index.html"><img alt="_images/genocide.png" src="_images/genocide.png" style="width: 100%; height: 2cm;" /></a>
|
|
40
|
-
<center><i>Elderly, Handicapped, Criminals, Wicked</i></center><br><br><center><b>ECHA</b></center><br><
|
|
40
|
+
<center><i>Elderly, Handicapped, Criminals, Wicked</i></center><br><br><center><b>ECHA</b></center><br><p id="haldol2"><strong>HALDOL</strong></p>
|
|
41
41
|
<br><a class="reference internal image-reference" href="_images/haloperidolnew2.png"><img alt="_images/haloperidolnew2.png" src="_images/haloperidolnew2.png" style="width: 100%;" /></a>
|
|
42
42
|
<br><br><p id="clozapine2"><strong>CLOZAPINE</strong></p>
|
|
43
43
|
<br><a class="reference internal image-reference" href="_images/clozapinenew2.png"><img alt="_images/clozapinenew2.png" src="_images/clozapinenew2.png" style="width: 100%;" /></a>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<br><br><br><a class="reference internal image-reference" href="_images/abilifynew2.png"><img alt="_images/abilifynew2.png" src="_images/abilifynew2.png" style="width: 100%;" /></a>
|
|
48
48
|
<br><br><br>
|
|
49
49
|
<center>
|
|
50
|
-
<b><p><a class="reference internal" href="index.html#reconsider"><span class="std std-ref">reconsider</span></a> - <a class="reference internal" href="writings.html#writings"><span class="std std-ref">
|
|
50
|
+
<b><p><a class="reference internal" href="index.html#reconsider"><span class="std std-ref">reconsider</span></a> - <a class="reference internal" href="writings.html#writings"><span class="std std-ref">writings</span></a> - <a class="reference internal" href="evidence.html#evidence"><span class="std std-ref">evidence</span></a> - <a class="reference internal" href="guilty.html#guilty"><span class="std std-ref">guilty</span></a></p>
|
|
51
51
|
</b>
|
|
52
52
|
</center>
|
|
53
53
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<link rel="author" title="About these documents" href="about.html" />
|
|
20
20
|
<link rel="index" title="Index" href="genindex.html" />
|
|
21
21
|
<link rel="search" title="Search" href="search.html" />
|
|
22
|
-
<link rel="next" title="
|
|
22
|
+
<link rel="next" title="Manual" href="manual.html" />
|
|
23
23
|
<link rel="prev" title="ECHA" href="echa.html" />
|
|
24
24
|
|
|
25
25
|
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
<div class="body" role="main">
|
|
38
38
|
|
|
39
39
|
<a class="reference external image-reference" href="index.html"><img alt="_images/genocide.png" src="_images/genocide.png" style="width: 100%; height: 2cm;" /></a>
|
|
40
|
-
<center><i>Elderly, Handicapped, Criminals, Wicked</i></center><br><br><center><b>EVIDENCE</b></center><br><
|
|
41
|
-
<a class="reference internal" href="echa.html#echa"><span class="std std-ref">visited</span></a>. Images shown are from 2019.</p>
|
|
42
|
-
<br><p id="haldol"><strong>HALDOL</strong></p>
|
|
40
|
+
<center><i>Elderly, Handicapped, Criminals, Wicked</i></center><br><br><center><b>EVIDENCE</b></center><br><p id="haldol"><strong>HALDOL</strong></p>
|
|
43
41
|
<br><a class="reference internal image-reference" href="_images/ECHAhaldol.png"><img alt="_images/ECHAhaldol.png" src="_images/ECHAhaldol.png" style="width: 100%;" /></a>
|
|
44
42
|
<br><br><p id="clozapine"><strong>CLOZAPINE</strong></p>
|
|
45
43
|
<br><a class="reference internal image-reference" href="_images/ECHAclozapine.png"><img alt="_images/ECHAclozapine.png" src="_images/ECHAclozapine.png" style="width: 100%;" /></a>
|
|
@@ -47,9 +45,9 @@
|
|
|
47
45
|
<br><a class="reference internal image-reference" href="_images/ECHAzyprexa.png"><img alt="_images/ECHAzyprexa.png" src="_images/ECHAzyprexa.png" style="width: 100%;" /></a>
|
|
48
46
|
<br><br><p id="abilify"><strong>ABILIFY</strong></p>
|
|
49
47
|
<br><a class="reference internal image-reference" href="_images/ECHAabilify.png"><img alt="_images/ECHAabilify.png" src="_images/ECHAabilify.png" style="width: 100%;" /></a>
|
|
50
|
-
<br>
|
|
48
|
+
<br><br>
|
|
51
49
|
<center>
|
|
52
|
-
<b><p><a class="reference internal" href="index.html#reconsider"><span class="std std-ref">reconsider</span></a> - <a class="reference internal" href="writings.html#writings"><span class="std std-ref">
|
|
50
|
+
<b><p><a class="reference internal" href="index.html#reconsider"><span class="std std-ref">reconsider</span></a> - <a class="reference internal" href="writings.html#writings"><span class="std std-ref">writings</span></a> - <a class="reference internal" href="#evidence"><span class="std std-ref">evidence</span></a> - <a class="reference internal" href="guilty.html#guilty"><span class="std std-ref">guilty</span></a></p>
|
|
53
51
|
</b>
|
|
54
52
|
</center>
|
|
55
53
|
|