lunarflu HF staff commited on
Commit
ecaa11a
1 Parent(s): eafbd19

worksheet -> defined within add_exp

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -30,8 +30,8 @@ file_path = 'service_account.json'
30
  with open(file_path, 'w') as json_file:
31
  json.dump(service_account, json_file)
32
  gspread_bot = gspread.service_account(filename='service_account.json')
33
- worksheet = gspread_bot.open("levelbot").sheet1
34
- worksheet2 = gspread_bot.open("hf_discord_verified_users_test").sheet1
35
  """"""
36
  bot_ids = [1136614989411655780, 1166392942387265536, 1158038249835610123, 1130774761031610388, 1155489509518098565, 1155169841276260546, 1152238037355474964, 1154395078735953930]
37
  """"""
@@ -156,6 +156,8 @@ async def check(ctx):
156
 
157
  async def add_exp(member_id):
158
  try:
 
 
159
  print(f"1")
160
  guild = bot.get_guild(879548962464493619)
161
  member = guild.get_member(member_id)
 
30
  with open(file_path, 'w') as json_file:
31
  json.dump(service_account, json_file)
32
  gspread_bot = gspread.service_account(filename='service_account.json')
33
+ #worksheet = gspread_bot.open("levelbot").sheet1
34
+ #worksheet2 = gspread_bot.open("hf_discord_verified_users_test").sheet1
35
  """"""
36
  bot_ids = [1136614989411655780, 1166392942387265536, 1158038249835610123, 1130774761031610388, 1155489509518098565, 1155169841276260546, 1152238037355474964, 1154395078735953930]
37
  """"""
 
156
 
157
  async def add_exp(member_id):
158
  try:
159
+ worksheet = gspread_bot.open("levelbot").sheet1
160
+
161
  print(f"1")
162
  guild = bot.get_guild(879548962464493619)
163
  member = guild.get_member(member_id)