This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import discord | |
from fastapi import FastAPI | |
app = FastAPI() | |
client = discord.Client() | |
# where the magic happens | |
# register an asyncio.create_task(client.start()) on app's startup event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ошибка: | |
.\venv\Scripts\activate : Невозможно загрузить файл C:\path\venv\Scripts\activate.ps1, так как выполнение сценариев отключено в этой системе. | |
Для получения дополнительных сведений см. about_Execution_Policies по адресу http://go.microsoft.com/fwlink/?LinkID=135170. | |
строка:1 знак:1 | |
.\venv\Scripts\activate | |
~~~~~~~~~~~~~~~~~~~~~~~ | |
CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException | |
FullyQualifiedErrorId : UnauthorizedAccess | |
Решение проблемы: |