Переведено с помощью Dee**.com (бесплатная версия) – я использую переводчик rn
это код: (игнорируйте корейский)
Код: Выделить всё
import discord
import requests
from datetime import datetime
import time
import json
import utils
with open('./settings.json') as f:
settings = json.load(f)
TOKEN = settings["TOKEN"] #str
URL = settings["URL"] #str
TARGET = settings["TARGET"] #list
PREFIX = settings["PREFIX"] #str
intents = discord.Intents.all()
client = discord.Client(command_prefix=PREFIX, self_bot=True, intents=intents)
@client.event
async def on_ready():
utils.log(f'{client.user} : 성공적으로 로그인했습니다.', 'success')
utils.line()
utils.log('서버 목록', 'info')
for index, guild in enumerate(client.guilds):
utils.log(f'{index}번째 서버: {guild.name}', 'info', 3)
utils.line()
try:
client.run(TOKEN)
except Exception as e:
utils.log(f'{e}', 'error')
utils.line()
Подробнее здесь: https://stackoverflow.com/questions/793 ... -the-error
Мобильная версия