tibue99 / ezcord Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-use extension for Discord.py and Pycord
Home Page: https://ezcord.readthedocs.io
License: MIT License
An easy-to-use extension for Discord.py and Pycord
Home Page: https://ezcord.readthedocs.io
License: MIT License
Master Branch
Master branch (2.4.1.dev214+gfc7b1042)
When I ran the help command it was sent normally etc. but I still got this error, I just changed the pycord version from 2.4.1 to the master branch
Traceback (most recent call last):
File "D:\py\lib\site-packages\ezcord\bot.py", line 464, in _error_event
await error_emb(ctx, error_txt, title=t("error_title", i=ctx))
File "D:\py\lib\site-packages\ezcord\emb.py", line 258, in error
return await _process_message(target, embed, txt, title, edit, ephemeral, **kwargs)
File "D:\py\lib\site-packages\ezcord\emb.py", line 205, in _process_message
return await _send_embed(target, embed, ephemeral, edit, **kwargs)
File "D:\py\lib\site-packages\ezcord\emb.py", line 154, in _send_embed
return await target.response.send_message(
File "D:\py\lib\site-packages\discord\interactions.py", line 913, in send_message
await self._locked_response(
File "D:\py\lib\site-packages\discord\interactions.py", line 1207, in _locked_response
await coro
File "D:\py\lib\site-packages\discord\webhook\async_.py", line 222, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 40060): Interaction has already been acknowledged.
[ERROR] Error while executing /help
Traceback (most recent call last):
File "D:\py\lib\site-packages\discord\commands\core.py", line 131, in wrapped
ret = await coro(arg)
File "D:\py\lib\site-packages\discord\commands\core.py", line 1002, in _invoke
await self.callback(self.cog, ctx, **kwargs)
File "D:\py\lib\site-packages\ezcord\cogs\help.py", line 205, in help
await ctx.response.send_message(view=view, embed=embed, ephemeral=self.bot.help.ephemeral)
File "D:\py\lib\site-packages\discord\interactions.py", line 913, in send_message
await self._locked_response(
File "D:\py\lib\site-packages\discord\interactions.py", line 1207, in _locked_response
await coro
File "D:\py\lib\site-packages\discord\webhook\async_.py", line 222, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 40060): Interaction has already been acknowledged.
Master Branch
py-cord-2.4.1
also in den docs steht bei async ezcord.blacklist.get_full_bans()
das angezeigt wird wann die gebannt worden sind aber bei admin blacklist show wird nur der user und der reason dazu angezeigt
No response
0.5.1
Pycord 2.4.1
Hi wir arbeiten derzeit an der Implementation von Ezcord in unserem Bot. Wir benutzen SlashCommandGroups
für einige unserer Commands.
Das ist der Fehler in der Konsole :
[COG] Loaded 3 cogs
CogsFolder STARTED
[ERROR] Error in event on_ready
Traceback (most recent call last):
File "C:\Users\mauri\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\discord\client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "C:\Users\mauri\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\ezcord\bot.py", line 389, in _check_cog_groups
if cog.group not in self.cogs.keys():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'SlashCommandGroup'
[INFO] Bot is online with EzCord 0.5.1
Dies ist ein Beispiel der SlashCommandGroup
aus unserem Code:
import discord
from discord.ext import commands
from discord.commands import SlashCommandGroup
from LogManager import LogManager
from configManager import ConfigManager
class Config(commands.Cog):
def __init__(self, BOT):
self.BOT = BOT
self.LogManager = LogManager()
config = SlashCommandGroup("config")
@config.command()
@commands.guild_only()
@commands.is_owner()
async def view(self, ctx):
await ctx.respond("comming soon")
def setup(BOT):
BOT.add_cog(Config(BOT))
Es sieht aus als würde Ezcord ein problem mit der SlashCommandGroup
haben.
Das komische ist das alles so funktioniert wie es soll. Es ist einfach nur ein Fehler in der Konsole. Sonst ist alles gut.
Ich fände es schön wenn man beim embed des help commands auch variablen benutzen kann wie z.B. len(bot.guilds)
und zusätzlich würde ich es schön finden wenn es eine variable gibt die anzeigt wie viele Zeilen code man insgesamt hat sonst hat man da immer so ein langen code dafür
latest
latest
this ezcord extentions bot object has no attribute called commandprefix
client = ezcord.Bot(command_prefix=Auth.COMMAND_PREFIX, intents=intents, auto_sync_commands=True)
No response
all simply started
[ERROR] Error in event on_ready
Traceback (most recent call last):
File "C:\Users\rishi\Desktop\gannu_work\venv\Lib\site-packages\discord\client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "C:\Users\rishi\Desktop\gannu_work\main.py", line 70, in on_ready
await update_status()
File "C:\Users\rishi\Desktop\gannu_work\main.py", line 38, in update_status
f'{client.command_prefix} prefix',
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Bot' object has no attribute 'command_prefix'
Master Branch
Master branch (2.4.1.dev214+gfc7b1042)
an user in the blacklist used a button from the bot and the response he is banned to use the bot was correct but i get this error
Traceback (most recent call last):
File "D:\py\lib\site-packages\discord\ui\view.py", line 422, in _scheduled_task
allow = await self.interaction_check(interaction)
File "D:\py\lib\site-packages\ezcord\components.py", line 157, in interaction_check
if not await coro(interaction):
File "D:\py\lib\site-packages\ezcord\cogs\blacklist.py", line 45, in view_check
return await _check_blacklist(interaction)
File "D:\py\lib\site-packages\ezcord\cogs\blacklist.py", line 39, in _check_blacklist
raise ErrorMessageSent()
ezcord.errors.ErrorMessageSent
Master Branch
2.4.1
i wanted to see in the command the date when the user was banned, then i got an error and i used the blacklist show command from ezcord (the automatic one) and got the error there too.
the dt is saved as timedelta
the blacklist show command is not working:
AttributeError: 'str' object has no attribute 'date'
Ich würde es schön finden wenn man die automatischen commands bearbeiten kann als wäre es ein eigener command oder man es eben so einstellen kann das man einzelne commands von dem System deaktivieren kann die man dann eben selber erstellt z.B.
Master Branch
py-cord-2.4.1
[ERROR] Error in event on_interaction
Task exception was never retrieved
future: <Task finished name='discord-ui-view-timeout-ed8c3e835f199c62fabe8b0b2b059dc6' coro=<View.on_timeout() done, defined at D:\py\lib\site-packages\ezcord\components.py:166> exception=HTTPException('401 Unauthorized (error code: 50027): Invalid Webhook Token')>
Traceback (most recent call last):
File "D:\py\lib\site-packages\ezcord\components.py", line 171, in on_timeout
return await super().on_timeout()
File "D:\py\lib\site-packages\discord\ui\view.py", line 373, in on_timeout
m = await message.edit(view=self)
File "D:\py\lib\site-packages\discord\interactions.py", line 592, in edit
return await self.edit_original_response(*args, **kwargs)
File "D:\py\lib\site-packages\discord\interactions.py", line 464, in edit_original_response
data = await adapter.edit_original_interaction_response(
File "D:\py\lib\site-packages\discord\webhook\async_.py", line 222, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 50027): Invalid Webhook Token
der kommt immer nach einer Zeit ich habe keinen Grund wieso
Master Branch
Master branch (2.4.1.dev214+gfc7b1042)
Hello,
I use the help command in my dms and i get this error
error:
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='discord-ui-view-timeout-8584f5c2747773fc022f27fa9e5e4b87' coro=<View.on_timeout() done, defined at D:\py\lib\site-packages\ezcord\components.py:166> exception=HTTPException('401 Unauthorized (error code: 50027): Invalid Webhook Token')>
Traceback (most recent call last):
File "D:\py\lib\site-packages\ezcord\components.py", line 171, in on_timeout
return await super().on_timeout()
File "D:\py\lib\site-packages\discord\ui\view.py", line 378, in on_timeout
m = await message.edit(view=self)
File "D:\py\lib\site-packages\discord\interactions.py", line 601, in edit
return await self.edit_original_response(*args, **kwargs)
File "D:\py\lib\site-packages\discord\interactions.py", line 473, in edit_original_response
data = await adapter.edit_original_interaction_response(
File "D:\py\lib\site-packages\discord\webhook\async_.py", line 222, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 50027): Invalid Webhook Token
[ERROR] Error in event on_interaction
Traceback (most recent call last):
File "D:\py\lib\site-packages\discord\client.py", line 399, in _run_event
await coro(*args, **kwargs)
File "D:\test\pycord\cogs\commandlogger.py", line 45, in on_interaction
server = interaction.guild.name
AttributeError: 'NoneType' object has no attribute 'name'
ERROR:ezcord:Error in event **on_interaction** ```AttributeError: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "D:\py\lib\site-packages\discord\client.py", line 399, in _run_event
await coro(*args, **kwargs)
File "D:\test\pycord\cogs\commandlogger.py", line 45, in on_interaction
server = interaction.guild.name
AttributeError: 'NoneType' object has no attribute 'name'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.