lunarflu HF staff commited on
Commit
479c0c2
·
verified ·
1 Parent(s): 7e795c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -26,8 +26,8 @@ DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
26
  intents = discord.Intents.all()
27
  bot = commands.Bot(command_prefix='!', intents=intents)
28
 
29
- logger = logging.getLogger(__name__)
30
- logging.basicConfig(level=logging.DEBUG)
31
 
32
 
33
  """"""
@@ -368,12 +368,18 @@ async def read_csv(ctx):
368
  break
369
 
370
 
371
- """
372
  @bot.command()
373
  async def dataframe_test(ctx):
374
- if ctx.author.id == 811235357663297546:
 
 
 
375
  df = get_as_dataframe(worksheet)
376
- """
 
 
 
377
 
378
 
379
 
 
26
  intents = discord.Intents.all()
27
  bot = commands.Bot(command_prefix='!', intents=intents)
28
 
29
+ #logger = logging.getLogger(__name__)
30
+ #logging.basicConfig(level=logging.DEBUG)
31
 
32
 
33
  """"""
 
368
  break
369
 
370
 
371
+
372
  @bot.command()
373
  async def dataframe_test(ctx):
374
+ if ctx.author.id == 811235357663297546:
375
+ worksheet = gspread_bot.open("levelbot").sheet1
376
+ test_worksheet = gspread_bot.open("test").sheet1
377
+
378
  df = get_as_dataframe(worksheet)
379
+ print(df)
380
+ set_with_dataframe(test_worksheet, df)
381
+
382
+
383
 
384
 
385