Dynamic bot list.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m20s
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m20s
This commit is contained in:
parent
d06473f5cb
commit
7346ca6eaa
3
Makefile
3
Makefile
@ -1,5 +1,6 @@
|
||||
ENV=./.venv/bin/activate
|
||||
PYTHON=./.venv/bin/python
|
||||
BIN=./.venv/bin
|
||||
all: ensure_env format build install test
|
||||
|
||||
format:
|
||||
@ -17,7 +18,7 @@ install:
|
||||
$(PYTHON) -m pip install -e .
|
||||
|
||||
run:
|
||||
$(PYTHON) -m ragnar.run
|
||||
$(BIN)/ragnar.run
|
||||
|
||||
test:
|
||||
$(PYTHON) -m unittest ragnar.tests
|
||||
|
@ -14,6 +14,10 @@ Another one:
|
||||
|
||||
![Image generated by Buffon](buffon2.jpg)
|
||||
|
||||
Third one, the legendary bot war of 2024 ended in peace.
|
||||
|
||||
![Image generated by Buffon](buffon3.jpg)
|
||||
|
||||
## How they work
|
||||
One process starts many bots. These bots look at new rants.
|
||||
|
||||
|
BIN
buffon3.jpg
Normal file
BIN
buffon3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/ragnar-1.3.37.tar.gz
vendored
BIN
dist/ragnar-1.3.37.tar.gz
vendored
Binary file not shown.
@ -13,5 +13,6 @@ src/ragnar/api.py
|
||||
src/ragnar/bot.py
|
||||
src/ragnar/cache.py
|
||||
src/ragnar/cli.py
|
||||
src/ragnar/victoria.py
|
||||
src/ragnar/tests/__init__.py
|
||||
src/ragnar/tests/bot.py
|
@ -5,7 +5,7 @@ from concurrent.futures import ThreadPoolExecutor as Executor
|
||||
|
||||
from ragnar import log
|
||||
from ragnar.bot import Bot
|
||||
|
||||
from ragnar.victoria import vic
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser(description="Process username and password.")
|
||||
@ -30,30 +30,7 @@ def bot_task(username, password):
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
usernames = [
|
||||
# "no-spam1",
|
||||
# "no-spam2",
|
||||
# "no-spam3",
|
||||
# "no-spam4",
|
||||
# "no-spam",
|
||||
"no-spam2353",
|
||||
"no-spam2351",
|
||||
"no-spam2350",
|
||||
"no-spam2349",
|
||||
"JamesMedina",
|
||||
"MichelleWeeks",
|
||||
"JaredRuiz",
|
||||
"LoriMcgee",
|
||||
"AmandaFloyd",
|
||||
"tcpudp",
|
||||
"JoseRodriguez",
|
||||
"CaseyHernandez",
|
||||
"ToddHarris",
|
||||
"AnneRose",
|
||||
"GregoryBowman",
|
||||
"LeahVasquez",
|
||||
"JamesMedina",
|
||||
]
|
||||
usernames = vic.get_friends()
|
||||
|
||||
with Executor(len(usernames)) as executor:
|
||||
for username in usernames:
|
||||
|
3
src/ragnar/victoria.py
Normal file
3
src/ragnar/victoria.py
Normal file
@ -0,0 +1,3 @@
|
||||
from xmlrpc.client import ServerProxy
|
||||
|
||||
vic = ServerProxy("https://victoria.molodetz.nl/rpc")
|
Loading…
Reference in New Issue
Block a user