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.

24 lines
744 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)
channel = self.get_channel(373273190547324928)
pins = await channel.pins()
for msg in pins:
msg = await channel.fetch_message(msg.id)
for react in msg.reactions:
if react.emoji == "📌":
print("[PINNED]", ("%s#%s" % (msg.author.name, msg.author.discriminator)) + ":", msg.id)
async for user in react.users():
print("[PIN]", ("%s#%s" % (user.name, user.discriminator)) + ":", msg.id)
await self.logout()
client = Client()
client.run(open("token").read().strip())