#loop help

1 messages · Page 1 of 1 (latest)

trim tundra
#
@client.command()
async def server(ctx, guildid: int, members: int):
 count = 0
 while members > count:
  codes = open("fetched/codes.txt", "r").read().splitlines()
  for code in codes:
   access_code = exchange_code(code)["access_token"]
   add_to_guild(guildid, access_code, "816004387574251621")
   count += 1

help me find a way to loop through the user id list as well. each id has a specific code so i need to find a way to loop through both id and code simultaneusly

#

nvm i found a zip function

inner dirge
#

.tag closing