original_docstring: 
      Manage most of ConfigVars setting, set new var, get current var,
      or delete var...
      
docstring: Manage most of ConfigVars setting, set new var, get current var,
  or delete var
docstring_tokens: Manage most of ConfigVars setting set new var get current var or delete var
code: async def variable(var):
      """
      Manage most of ConfigVars setting, set new var, get current var,
      or delete var...
      """
      if Var.HEROKU_APP_NAME is not None:
          app = Heroku.app(Var.HEROKU_APP_NAME)
      else:
          return await edit_or_reply(
              var, "`[HEROKU]:" "\nPlease setup your` **HEROKU_APP_NAME**"
          )
      exe = var.pattern_match.group(1)
      heroku_var = app.config()
      if exe == "get":
          await edit_or_reply(var, "`Getting information...`")
          await asyncio.sleep(1.5)
          try:
              variable = var.pattern_match.group(2).split()[0]
              if variable in heroku_var:
                  return await edit_or_reply(
                      var,
                      "**ConfigVars**:" f"\n\n`{variable} = {heroku_var[variable]}`\n",
                  )
              else:
                  return await edit_or_reply(
                      var, "**ConfigVars**:" f"\n\n`Error:\n-> {variable} don't exists`"
                  )
          except IndexError:
              configs = prettyjson(heroku_var.to_dict(), indent=2)
              with open("configs.json", "w") as fp:
                  fp.write(configs)
              with open("configs.json", "r") as fp:
                  result = fp.read()
                  if len(result) >= 4096:
                      await var.client.send_file(
                          var.chat_id,
                          "configs.json",
                          reply_to=var.id,
                          caption="`Output too large, sending it as a file`",
                      )
                  else:
                      await edit_or_reply(
                          var,
                          "`[HEROKU]` ConfigVars:\n\n"
                          "================================"
                          f"\n```{result}```\n"
                          "================================",
                      )
              os.remove("configs.json")
              return
      elif exe == "set":
          await edit_or_reply(var, "`Setting information...`")
          variable = var.pattern_match.group(2)
          if not variable:
              return await edit_or_reply(var, ">`.set var <ConfigVars-name> <value>`")
          value = var.pattern_match.group(3)
          if not value:
              variable = variable.split()[0]
              try:
                  value = var.pattern_match.group(2).split()[1]
              except IndexError:
                  return await edit_or_reply(var, ">`.set var <ConfigVars-name> <value>`")
          await asyncio.sleep(1.5)
          if variable in heroku_var:
              await edit_or_reply(
                  var, f"**{variable}**  `successfully changed to`  ->  **{value}**"
              )
          else:
              await edit_or_reply(
                  var, f"**{variable}**  `successfully added with value`  ->  **{value}**"
              )
          heroku_var[variable] = value
      elif exe == "del":
          await edit_or_reply(var, "`Getting information to deleting variable...`")
          try:
              variable = var.pattern_match.group(2).split()[0]
          except IndexError:
              return await edit_or_reply(
                  var, "`Please specify ConfigVars you want to delete`"
              )
          await asyncio.sleep(1.5)
          if variable in heroku_var:
              await edit_or_reply(var, f"**{variable}**  `successfully deleted`")
              del heroku_var[variable]
          else:
              return await edit_or_reply(var, f"**{variable}**  `is not exists`")
code_tokens: async def variable ( var ) : if Var . HEROKU_APP_NAME is not None : app = Heroku . app ( Var . HEROKU_APP_NAME ) else : return await edit_or_reply ( var , "`[HEROKU]:" "\nPlease setup your` **HEROKU_APP_NAME**" ) exe = var . pattern_match . group ( 1 ) heroku_var = app . config ( ) if exe == "get" : await edit_or_reply ( var , "`Getting information...`" ) await asyncio . sleep ( 1.5 ) try : variable = var . pattern_match . group ( 2 ) . split ( ) [ 0 ] if variable in heroku_var : return await edit_or_reply ( var , "**ConfigVars**:" f"\n\n`{variable} = {heroku_var[variable]}`\n" , ) else : return await edit_or_reply ( var , "**ConfigVars**:" f"\n\n`Error:\n-> {variable} don't exists`" ) except IndexError : configs = prettyjson ( heroku_var . to_dict ( ) , indent = 2 ) with open ( "configs.json" , "w" ) as fp : fp . write ( configs ) with open ( "configs.json" , "r" ) as fp : result = fp . read ( ) if len ( result ) >= 4096 : await var . client . send_file ( var . chat_id , "configs.json" , reply_to = var . id , caption = "`Output too large, sending it as a file`" , ) else : await edit_or_reply ( var , "`[HEROKU]` ConfigVars:\n\n" "================================" f"\n```{result}```\n" "================================" , ) os . remove ( "configs.json" ) return elif exe == "set" : await edit_or_reply ( var , "`Setting information...`" ) variable = var . pattern_match . group ( 2 ) if not variable : return await edit_or_reply ( var , ">`.set var <ConfigVars-name> <value>`" ) value = var . pattern_match . group ( 3 ) if not value : variable = variable . split ( ) [ 0 ] try : value = var . pattern_match . group ( 2 ) . split ( ) [ 1 ] except IndexError : return await edit_or_reply ( var , ">`.set var <ConfigVars-name> <value>`" ) await asyncio . sleep ( 1.5 ) if variable in heroku_var : await edit_or_reply ( var , f"**{variable}**  `successfully changed to`  ->  **{value}**" ) else : await edit_or_reply ( var , f"**{variable}**  `successfully added with value`  ->  **{value}**" ) heroku_var [ variable ] = value elif exe == "del" : await edit_or_reply ( var , "`Getting information to deleting variable...`" ) try : variable = var . pattern_match . group ( 2 ) . split ( ) [ 0 ] except IndexError : return await edit_or_reply ( var , "`Please specify ConfigVars you want to delete`" ) await asyncio . sleep ( 1.5 ) if variable in heroku_var : await edit_or_reply ( var , f"**{variable}**  `successfully deleted`" ) del heroku_var [ variable ] else : return await edit_or_reply ( var , f"**{variable}**  `is not exists`" )
short_docstring: Manage most of ConfigVars setting, set new var, get current var,
  or delete var...
short_docstring_tokens: Manage most of ConfigVars setting set new var get current var or delete var ...
comment: """
      Manage most of ConfigVars setting, set new var, get current var,
      or delete var...
      """