Skip to content

Commit

Permalink
Fix the new cryptographic /shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
yiays committed Dec 9, 2024
1 parent a3ad490 commit 2ab291c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/confessions_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ async def shuffle(self, inter:discord.Interaction):
await inter.response.send_message(self.babel(inter, 'shufflesuccess'))

def perform_shuffle(self, guild_id:int):
salt = self.parent.crypto.srandom_token()
salt = self.bot.cogs['Confessions'].crypto.srandom_token()
self.bot.config.set(self.SCOPE, str(guild_id) + '_shuffle', b64encode(salt).decode('ascii'))
self.bot.config.save()

Expand Down

0 comments on commit 2ab291c

Please sign in to comment.