Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -316,16 +316,8 @@ async def xp_help(ctx):
|
|
| 316 |
await ctx.author.send(help_message)
|
| 317 |
|
| 318 |
|
| 319 |
-
#URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
| 320 |
-
#csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
| 321 |
|
| 322 |
|
| 323 |
-
def get_data():
|
| 324 |
-
#data = pd.read_csv(csv_url)
|
| 325 |
-
first_3_columns = data.iloc[:, 1:4]
|
| 326 |
-
first_3_columns.to_csv('first_3_columns.csv', index=False)
|
| 327 |
-
return first_3_columns
|
| 328 |
-
|
| 329 |
# embeds with user pfps?
|
| 330 |
# name, pfp, time in server....
|
| 331 |
|
|
@@ -354,7 +346,15 @@ def run_bot():
|
|
| 354 |
threading.Thread(target=run_bot).start()
|
| 355 |
|
| 356 |
|
|
|
|
|
|
|
| 357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
# csv
|
| 359 |
# read into pandas dataframe1
|
| 360 |
# read levels column and create pandas dataframe2 with first column containing levels from 2-max found in dataframe1
|
|
|
|
| 316 |
await ctx.author.send(help_message)
|
| 317 |
|
| 318 |
|
|
|
|
|
|
|
| 319 |
|
| 320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
# embeds with user pfps?
|
| 322 |
# name, pfp, time in server....
|
| 323 |
|
|
|
|
| 346 |
threading.Thread(target=run_bot).start()
|
| 347 |
|
| 348 |
|
| 349 |
+
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
| 350 |
+
csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
| 351 |
|
| 352 |
+
|
| 353 |
+
def get_data():
|
| 354 |
+
data = pd.read_csv(csv_url)
|
| 355 |
+
first_3_columns = data.iloc[:, 1:4]
|
| 356 |
+
first_3_columns.to_csv('first_3_columns.csv', index=False)
|
| 357 |
+
return first_3_columns
|
| 358 |
# csv
|
| 359 |
# read into pandas dataframe1
|
| 360 |
# read levels column and create pandas dataframe2 with first column containing levels from 2-max found in dataframe1
|