Discord bot used to dab on /rheg/ shitposters
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.

22 lines
587 B

6 years ago
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])
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)