Skip to content

commands.Bot() is not work in 2.0.0b4 #1042

@cheap122000

Description

@cheap122000

Summary

"Traditional Commands Example" on README.md is not worked.

Reproduction Steps

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix=">")

@bot.command()
async def ping(ctx):
    await ctx.send("pong")

bot.run("token")

Minimal Reproducible Code

No response

Expected Results

When I type ">ping" on discord and it will response me "pong"

Actual Results

Nothing happened.

Intents

None

System Information

  • Python v3.9.7-final
  • py-cord v2.0.0-beta
    • py-cord pkg_resources: v2.0.0b4
  • aiohttp v3.7.4.post0
  • system info: Darwin 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

I finally solved it by downgrade py-cord 2.0.0b4 to 2.0.0b3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions