1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
This commit is contained in:
Steffo 2018-10-10 21:37:18 +02:00
parent a7700a42f2
commit 69176f60c5

View file

@ -712,7 +712,7 @@ class RoyalDiscordBot(discord.Client):
logger.info(f"Radio message added to the queue.") logger.info(f"Radio message added to the queue.")
# HALLOWEEN # HALLOWEEN
if not random.randrange(4): if not random.randrange(4):
await self.video_queue.insert(0, SecretVideo(file="despair.ogg", enqueuer=None)) self.video_queue.insert(0, SecretVideo(file="despair.ogg", enqueuer=None))
target = random.sample([m for m in self.main_guild.members if len(m.roles) > 1], 1)[0] target = random.sample([m for m in self.main_guild.members if len(m.roles) > 1], 1)[0]
logger.debug(f"Despair roll successful, sending to {target.name}.") logger.debug(f"Despair roll successful, sending to {target.name}.")
if target.dm_channel is None: if target.dm_channel is None: