@@ -0,0 +1,970 @@
+import requests, json, sys, random%0A%0ADiscord = %22https://discordapp.com/api/v6/%22%0Atoken = open('token.txt').read()%0Adef getUpdates(chatid):%0A  req = requests.get(Discord + %22channels/%22 + str(chatid) + %22/messages?limit=1%22, headers=%7B%22Authorization%22:%22token%22%7D).text%0A  return json.loads(req) %0A%0Adef sendMessage(chatid, content, tts):%0A  return requests.post(Discord + %22channels/%22 + str(chatid) + %22/messages#%22, data=%7B%22tts%22:str(tts).lower(), %22content%22:str(content), %22nonce%22:str(chatid)%7D, headers=%7B%22Authorization%22:token%7D).text%0A%0Adef joinServer(invite):%0A  return requests.post(Discord + %22invite/%22 + invite, headers=%7B%22Authorization%22:token%7D)%0A%0Adef sendTypingAction(chatid):%0A  return requests.post(Discord + %22channels/%22 + str(chatid) + %22/typing%22, headers=%7B%22Authorization%22:token%7D).text%0A%0Adef sendFile(chatid, file, content):%0A  return requests.post(Discord + %22channels/%22 + str(chatid) + %22/messages%22, headers=%7B%22Authorization%22:token, %22content%22:str(content)%7D, files=%7B%22file%22:open(file, 'rb')%7D).text%0A

Create base.py