discord.py-rewrite

How to install discord.py rewrite?

旧城冷巷雨未停 提交于 2019-11-26 23:28:36
问题 I ran python3 -m pip install -U discord.py but it only installed discord.py v0.16.x. How do I install the new discord.py rewrite v1.0? I uninstalled the old discord.py using pip uninstall discord.py and re-ran pip to install discord.py, only to get version v0.16.x again instead of the new v1.0 version. 回答1: Try using pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice] That should go to the rewrite branch of the discord.py repository and get the egg file to

Why does on_message stop commands from working?

混江龙づ霸主 提交于 2019-11-25 23:45:41
问题 Basically, everything appears to work fine and start up, but for some reason I can\'t call any of the commands. I\'ve been looking around for easily an hour now and looking at examples/watching videos and I can\'t for the life of me figure out what is wrong. Code below: import discord import asyncio from discord.ext import commands bot = commands.Bot(command_prefix = \'-\') @bot.event async def on_ready(): print(\'Logged in as\') print(bot.user.name) print(bot.user.id) print(\'------\') @bot