You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
652 B
23 lines
652 B
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)
|
|
|