Compare commits
	
		
			1 Commits
		
	
	
		
			ac851d76c3
			...
			49ea9d1359
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 49ea9d1359 | 
							
								
								
									
										
											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.
										
									
								
							| @ -7,6 +7,33 @@ Author-email: retoor@molodetz.nl | ||||
| License: MIT | ||||
| Requires-Python: >=3.7 | ||||
| Description-Content-Type: text/markdown | ||||
| Requires-Dist: aiohttp==3.10.10 | ||||
| Requires-Dist: dataset==1.6.2 | ||||
| Requires-Dist: requests==2.32.3 | ||||
| 
 | ||||
| # Ragnar | ||||
| 
 | ||||
| This is an anti spam bot network. It is named after the viking for no obvious reason.  | ||||
| 
 | ||||
| I'm not happy about the quality of the source and it is not a representation of my usual work. If I would've spend more efford there would be some types and I've would use aiohttp and would've used context managers for example. Despite the source lacking a certain quality, the bots work great and are made not to be annoying to the server by not connecting all at once and caching certain things like user profile / user id and if a reand already is flaged for example to not annoy the server.  | ||||
| 
 | ||||
| The bots have user name no-spam[1-4] but flag under a Russian girl name, also for no obvious reason. I liked it more than some technical name. Will probably rename the bots later. Could be that devRants prevents me to do that within a half year. It doesn't matter much, if the bots do a good job, we will barely see them.  | ||||
| 
 | ||||
| I expect this project tomorrow to have deployed fully functional on a server. | ||||
| 
 | ||||
| ## In progress | ||||
| 
 | ||||
| The bots work perfect in sense that they're doing what they're programmed to do. | ||||
| But the programming is not finished yet: | ||||
|  - the criteria can be better, tips how to optimize are very welcome. | ||||
|  - at this moment, they can only flag, useless, but we will have indication of future content to be cancelled. Every spam message should have a flag. If not, contact @retoor.  | ||||
|  - the downvote function doesn't work because I couldn't figure out what value I had to post. Who knows it? After this, it's kinda done. | ||||
|  - a decent deployment on my server. Now it runs on my laptop because it's not done yet and it got late. | ||||
| 
 | ||||
| ## How they work | ||||
| One process starts four bots named no-spam[1-4]. These bots look at new rants. | ||||
| 
 | ||||
| If there is a new rant:  | ||||
| 1. check if user has more than five posts. If so, it will not be seen as spam. | ||||
| 2. it will check certain keywords like hacker / money crypto related if so continue to step 3. | ||||
| 3. user will be informed by the bots that his rant is flagged and what to do about it.  | ||||
| 4. rant will be downvoted by the four bots making it disappear.  | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| README.md | ||||
| pyproject.toml | ||||
| setup.cfg | ||||
| src/Ragnar.egg-info/PKG-INFO | ||||
| @ -11,4 +12,6 @@ src/ragnar/__main__.py | ||||
| src/ragnar/api.py | ||||
| src/ragnar/bot.py | ||||
| src/ragnar/cache.py | ||||
| src/ragnar/cli.py | ||||
| src/ragnar/cli.py | ||||
| src/ragnar/tests/__init__.py | ||||
| src/ragnar/tests/bot.py | ||||
| @ -1,3 +1 @@ | ||||
| aiohttp==3.10.10 | ||||
| dataset==1.6.2 | ||||
| requests==2.32.3 | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								src/ragnar/tests/__pycache__/__init__.cpython-310.pyc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/ragnar/tests/__pycache__/__init__.cpython-310.pyc
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/ragnar/tests/__pycache__/bot.cpython-310.pyc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/ragnar/tests/__pycache__/bot.cpython-310.pyc
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user