Как подключить модуль discord в python?
при попытке подключения выдаёт 2 ошибки:
Unable to import 'discord'
Unable to import 'discord.ext'
import discord
from discord.ext import commands
client = commands.Bot(commands_prefix = '.')
@client.event
async def on_ready():
print('BOT connected')
@client.command(pass_context = True)
async def hello( ctx):
await ctx.send('Hello.I am a BOT')
token = open( 'token.txt', 'r').readline()
client.run(token)