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 discord | |
client = discord.Client() | |
token = "your-client-token" | |
whitelist = [ | |
# discord guild ids you don't want to leave | |
123456789012345678, | |
876543210987654321 | |
] |
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 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", |