Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffser authored Mar 19, 2023
1 parent f93daa9 commit 57e154f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
serverID = 0
userID = 0
botToken = ''
fileDirectory = ''
filePath = ''
###################

@tasks.loop(minutes=0.1)
Expand All @@ -18,7 +18,7 @@ async def record():
currentActivities = []
for cA in author.activities: currentActivities.append({'details': cA.details, 'large_image_url': cA.large_image_url, 'name': cA.name, 'state': cA.state})
currentActivities = json.dumps(currentActivities).replace('"', '\\"')
system(f'echo "{currentActivities}" > ' + fileDirectory)
system(f'echo "{currentActivities}" > ' + filePath)
#with open("/srv/http/discord.json", "w") as outfile: outfile.write()

@bot.event
Expand Down

0 comments on commit 57e154f

Please sign in to comment.