import discord from os import listdir class Client(discord.Client): async def on_ready(self): print("Logged on as", self.user) guild = self.get_guild(256674225211834369) for emoji in guild.emojis: print(emoji) await emoji.delete() for image in listdir("emoji"): print(image.split(".")[0]) if not image.split(".")[0]: continue await guild.create_custom_emoji(name=image.split(".")[0], image=open("emoji/" + image, "rb").read()) await self.logout() client = Client() client.run(open("token.personal").read().strip(), bot=False)