#MIT License #Copyright (c) 2023 newestGOD #Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: #The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. from enum import Enum import mimetypes import random import requests import time class Mode(Enum): RATIO = 0 CATTY_WIPE = 1 mode = Mode.CATTY_WIPE site = "https://711chan.wtf/" board = "h" # posts you want the ratio bot to reply to, for example ">>12", ">>18" ratio_targets = [] ratio_messages = ["GET HIS ASS", "HUGE W", "GO TF UP"] thread = 0 # paths to image files that you want to wipe the catty with catty_images = ["test.png"] catty_messages = ["die out", "never should have messed with us", "kneel to newGODs", "/qa/ won", "oldcucks btfo", "colorful win"] while(True): message = "" match mode: case Mode.RATIO: for t in ratio_targets: message += t + "\n" message += ratio_messages[random.randrange(len(ratio_messages))] case Mode.CATTY_WIPE: for i in range(random.randrange(1, 3)): message += catty_messages[random.randrange(len(catty_messages))] + "\n" thread = 0 image_path = catty_images[random.randrange(len(catty_images))] mime = mimetypes.guess_type(image_path) with open(image_path, 'rb') as image: image_data = image.read() with open('temp', 'wb') as temp: temp.write(image_data+bytes(('\0' * random.randrange(1000)), 'utf-8')) image_path = 'temp' filename = str(random.randrange(1300000000000, 1700000000000)) + mimetypes.guess_extension(mime[0]) image = {'imagefile': (filename, open(image_path, 'rb'), mime[0])} post = {'board': board, 'replythread': thread, 'message': message} req = requests.post(site + 'board.php', data=post, files=image) print(req) time.sleep(random.randrange(10, 30))