A
A
apiwi2020-06-11 22:32:52
Python
apiwi, 2020-06-11 22:32:52

How to make code interact with other files on GitHub?

There is a VK bot on Vk_Api, it writes users to the users.txt file. After migrating the bot to Heroku/GitHub, the bot stopped interacting with users.txt. What can be done, what settings to make on the site?

def save():
  with open("users.txt", "w") as file:
    file.writelines([str(x) + "\n" for x in mailingIds])

Please explain in more detail, I'm a bit of a teapot :). Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-06-11
@apiwi

You are not just a teapot, you are a lazy person who did not find the strength to read the documentation. Or at least use the search, this question is asked here regularly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question