This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
In short, the goal of this project is to | |
stay ahead of your friends during a live | |
watch party to avoid any spoiling reactions | |
when the stakes are real high. | |
This means that you'll be the one spoiling | |
your friends though, so keep up the act! | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Author: KR (@justfoolingaround) | |
A semi-safe code implementation for buffering and | |
seeking through a discord.AudioSource object. | |
Ensure that there are proper checks to forbid live | |
streams and larger files since we're using in-memory | |
buffering. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import collections | |
import io | |
import threading | |
import time | |
from enum import Enum | |
import orjson | |
import qrcode | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import random | |
import sys | |
import threading | |
import time | |
from multiprocessing.connection import PipeConnection | |
import _winapi | |
import ujson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import threading | |
class DeathThread(threading.Thread): | |
kill_state = threading.Event() | |
def run(self): | |
sys.settrace(self.global_trace) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httpx | |
import regex | |
import ujson | |
URL_FIND = regex.compile(r'"url":"(.+?)"') | |
ENDPOINT = "https://archillect.com/socket.io/" | |
def get_sid(session): | |
return ujson.loads(session.get(ENDPOINT, params={'EIO': '3', 'transport': 'polling'}).text[4:-4]).get('sid') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A ffmpeg download wrapper for ffmpeg and tqdm. | |
Wrapper was created in favor of [animdl](https://github.com/justfoolingaround/animdl.git) | |
and since the developer doesn't care about you copying and pasting this code somewhere, | |
you may do it. No need for credit. You might feel guilty though. | |
Hope **your** project becomes easier. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import os | |
import pathlib | |
import zipfile | |
import requests | |
DLL_URL = "https://github.com/mrpond/BlockTheSpot/releases/download/2021.4.20.35/chrome_elf.zip" | |
DLL_FILENAME = "chrome_elf.dll" |