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.
 
 
 

23 lines
624 B

import discord
import aiohttp
async def wget(url):
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
return await response.read()
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)
image = await wget(emoji.url)
open("emoji/%s.png" % emoji.name, "wb").write(image)
await self.logout()
client = Client()
client.run(open("token.personal").read().strip(), bot=False)