@@ -621,19 +621,21 @@ async def blahaj(self, ctx: KurisuContext, money: float):
621621
622622 @is_staff ("Helper" )
623623 @commands .command ()
624- async def xiwarn (self , ctx : KurisuContext , citizen : discord .Member ):
624+ async def xiwarn (self , ctx : KurisuContext , citizen : discord .Member , amount : int = 100 ):
625625 """Sometimes citizens need a reminder how to act"""
626- await self .extras .add_social_credit (citizen .id , - 100 )
626+ amount = min (abs (amount ), 2000 )
627+ await self .extras .add_social_credit (citizen .id , - amount )
627628 await ctx .send (
628- f"{ ctx .author .mention } has assessed { citizen .mention } 's actions and removed 100 social credit from them!" )
629+ f"{ ctx .author .mention } has assessed { citizen .mention } 's actions and removed { amount } social credit from them!" )
629630
630631 @is_staff ("Helper" )
631632 @commands .command ()
632- async def xipraise (self , ctx : KurisuContext , citizen : discord .Member ):
633+ async def xipraise (self , ctx : KurisuContext , citizen : discord .Member , amount : int = 100 ):
633634 """Model citizens will be praised"""
634- await self .extras .add_social_credit (citizen .id , 100 )
635+ amount = min (abs (amount ), 2000 )
636+ await self .extras .add_social_credit (citizen .id , amount )
635637 await ctx .send (
636- f"{ ctx .author .mention } has assessed { citizen .mention } 's actions and added 100 social credit to them!" )
638+ f"{ ctx .author .mention } has assessed { citizen .mention } 's actions and added { amount } social credit to them!" )
637639
638640 @is_staff ("Helper" )
639641 @commands .command (aliases = ["sc" ])
0 commit comments