Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -315,6 +315,9 @@ async def xp_help(ctx):
|
|
| 315 |
help_message = "How to earn Discord / Hub exp: Post messages, react, Like, discuss, create repos and papers"
|
| 316 |
await ctx.author.send(help_message)
|
| 317 |
|
|
|
|
|
|
|
|
|
|
| 318 |
# embeds with user pfps?
|
| 319 |
# name, pfp, time in server....
|
| 320 |
|
|
@@ -342,6 +345,7 @@ def run_bot():
|
|
| 342 |
bot.run(DISCORD_TOKEN)
|
| 343 |
threading.Thread(target=run_bot).start()
|
| 344 |
|
|
|
|
| 345 |
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
| 346 |
csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
| 347 |
|
|
@@ -350,8 +354,7 @@ def get_data():
|
|
| 350 |
data = pd.read_csv(csv_url)
|
| 351 |
first_3_columns = data.iloc[:, 1:4]
|
| 352 |
first_3_columns.to_csv('first_3_columns.csv', index=False)
|
| 353 |
-
return first_3_columns
|
| 354 |
-
|
| 355 |
# csv
|
| 356 |
# read into pandas dataframe1
|
| 357 |
# read levels column and create pandas dataframe2 with first column containing levels from 2-max found in dataframe1
|
|
|
|
| 315 |
help_message = "How to earn Discord / Hub exp: Post messages, react, Like, discuss, create repos and papers"
|
| 316 |
await ctx.author.send(help_message)
|
| 317 |
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
|
| 321 |
# embeds with user pfps?
|
| 322 |
# name, pfp, time in server....
|
| 323 |
|
|
|
|
| 345 |
bot.run(DISCORD_TOKEN)
|
| 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 |
|
|
|
|
| 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
|