with open('status.txt', 'rt', encoding='utf-8') as src:
word = src.read()
#файл закроется по выходу из with, и его можно будет переоткрыть.
print(word)
new_word = input('Enter new word: ')
with open('status.txt', 'wt', encoding='utf-8') as dst:
dst.write(new_word)
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
intents=discord.Intents.all()
https://codernet.ru/books/python/izuchaem_python_4...
Найди страницу 392.