Untitled
unknown
plain_text
a year ago
898 B
3
Indexable
Never
import datetime import json import time import discum token_real = "OTYxNTYxMDU5OTI2MzYwMDc0.GsYQPG.9_ZRU29-PkAZwIYKF1yt8c51Iq9XVkJrXjOMjA" dis_tokens = open("discord_token.txt",'r').read().split("\n") id_not_leave = open("id_not_leave.txt",'r').read().split("\n") def Accept_chat_rules(guild_id = None): ver = bot.getMemberVerificationData(guildID=guild_id) a = json.loads(ver.text) version = a['version'] form_fields = a['form_fields'] # print(version,form_fields) bot.agreeGuildRules(guildID=guild_id,form_fields=form_fields,version=version) def Leave_all_group(): count = bot.getGuilds(with_counts=True) a = json.loads(count.text) for i in range(len(a)): id = a[i]['id'] if id not in id_not_leave: bot.leaveGuild(guildID=id) Leave_all_group() #for token in dis_tokens: # Leave_all_group()