recruitment/cr.py
async def clans_bonus(self, ctx, clankey, value: str):
        """ Set bonus requirements for clan. Note that these values must be checked manually by hub officers. """
        clan_name = None
        for name, data in self.family_clans.items():
            if data["nickname"].lower() == clankey.lower():
                clan_name = name
        if not clan_name:
            return await ctx.send(f"No clan named {clankey}.")
        try:
            self.family_clans[clan_name]["requirements"]["bonus"] = value
        except KeyError:
            return await ctx.send("There is something wrong with clan database.")
        async with self.claninfo_lock:
            with open(self.claninfo_path, "w") as file:
                json.dump(self.family_clans, file)
        await ctx.tick()
 Set bonus requirements for clan. Note that these values must be checked manually by hub officers. 
Set bonus requirements for clan. Note that these values must be checked manually by hub officers.
Set bonus requirements for clan . Note that these values must be checked manually by hub officers .
async def clans_bonus(self, ctx, clankey, value: str):
        clan_name = None
        for name, data in self.family_clans.items():
            if data["nickname"].lower() == clankey.lower():
                clan_name = name
        if not clan_name:
            return await ctx.send(f"No clan named {clankey}.")
        try:
            self.family_clans[clan_name]["requirements"]["bonus"] = value
        except KeyError:
            return await ctx.send("There is something wrong with clan database.")
        async with self.claninfo_lock:
            with open(self.claninfo_path, "w") as file:
                json.dump(self.family_clans, file)
        await ctx.tick()
async def clans_bonus ( self , ctx , clankey , value : str ) : clan_name = None for name , data in self . family_clans . items ( ) : if data [ "nickname" ] . lower ( ) == clankey . lower ( ) : clan_name = name if not clan_name : return await ctx . send ( f"No clan named {clankey}." ) try : self . family_clans [ clan_name ] [ "requirements" ] [ "bonus" ] = value except KeyError : return await ctx . send ( "There is something wrong with clan database." ) async with self . claninfo_lock : with open ( self . claninfo_path , "w" ) as file : json . dump ( self . family_clans , file ) await ctx . tick ( )
Set bonus requirements for clan.
Set bonus requirements for clan .
""" Set bonus requirements for clan. Note that these values must be checked manually by hub officers. """
self
ctx
clankey
value
str