Skip to content

Instantly share code, notes, and snippets.

View doge's full-sized avatar
🖥️

gabe doge

🖥️
View GitHub Profile
@doge
doge / leave.py
Last active April 26, 2024 13:59
Mass Leave Discord Servers
import discord
client = discord.Client()
token = "your-client-token"
whitelist = [
# discord guild ids you don't want to leave
123456789012345678,
876543210987654321
]
@doge
doge / translate.py
Created August 15, 2020 02:46
access the google translate api without an api key
import requests
API_URL = "https://translate.googleapis.com/translate_a/single"
class Translator(object):
def __init__(self, translate_from, translate_to):
self.payload = {
"client": "gtx",
"dt": "t",