Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
test
Browse files
app.py
CHANGED
@@ -340,6 +340,25 @@ async def xp_help(ctx):
|
|
340 |
help_message = "How to earn Discord / Hub exp: Post messages, react, Like, discuss, create repos and papers"
|
341 |
await ctx.author.send(help_message)
|
342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
"""
|
344 |
@bot.command(name='send_message')
|
345 |
async def send_message(ctx):
|
|
|
340 |
help_message = "How to earn Discord / Hub exp: Post messages, react, Like, discuss, create repos and papers"
|
341 |
await ctx.author.send(help_message)
|
342 |
|
343 |
+
|
344 |
+
|
345 |
+
@bot.command(name='test3')
|
346 |
+
async def test3(ctx):
|
347 |
+
if ctx.author.id == 811235357663297546:
|
348 |
+
worksheet = gspread_bot.open("levelbot").sheet1
|
349 |
+
values = worksheet.get_all_values()
|
350 |
+
|
351 |
+
csv_file_path = 'test3.csv'
|
352 |
+
with open(csv_file_path, 'w', newline='') as csv_file:
|
353 |
+
csv_writer = csv.writer(csv_file)
|
354 |
+
csv_writer.writerows(values)
|
355 |
+
|
356 |
+
with open(csv_file_path, 'r') as csv_file:
|
357 |
+
csv_reader = csv.reader(csv_file)
|
358 |
+
for row in csv_reader:
|
359 |
+
print(row)
|
360 |
+
|
361 |
+
|
362 |
"""
|
363 |
@bot.command(name='send_message')
|
364 |
async def send_message(ctx):
|