Code Monkey home page Code Monkey logo

ezcord's People

Contributors

invalidjokerde avatar mvlwarekekw avatar pre-commit-ci[bot] avatar ryzmae avatar tibue99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ezcord's Issues

help command

EzCord Version

Master Branch

Version

Master branch (2.4.1.dev214+gfc7b1042)

Bug Description

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

Bug Traceback

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.

async ezcord.blacklist.get_full_bans()

EzCord Version

Master Branch

Version

py-cord-2.4.1

Bug Description

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

Bug Traceback

No response

Geister error mit SlashCommandGroups?

EzCord Version

0.5.1

Version

Pycord 2.4.1

Bug Description

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.

Bug Traceback

Help embed

Feature Description

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

'Bot' object has no attribute 'command_prefix'

EzCord Version

latest

Version

latest

Bug Description

this ezcord extentions bot object has no attribute called commandprefix

Reproduction Steps

client = ezcord.Bot(command_prefix=Auth.COMMAND_PREFIX, intents=intents, auto_sync_commands=True)

Minimal Reproducible Code

No response

Expected Results

all simply started

Actual Results

[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'

blacklist user used button

EzCord Version

Master Branch

Version

Master branch (2.4.1.dev214+gfc7b1042)

Bug Description

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

Bug Traceback

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

blacklist show

EzCord Version

Master Branch

Version

2.4.1

Bug Description

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

Bug Traceback

the blacklist show command is not working:

AttributeError: 'str' object has no attribute 'date'

Blacklist

Feature Description

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.

invalvid webhook token

EzCord Version

Master Branch

Version

py-cord-2.4.1

Bug Description

[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

Bug Traceback

der kommt immer nach einer Zeit ich habe keinen Grund wieso

help cmd via dm

EzCord Version

Master Branch

Version

Master branch (2.4.1.dev214+gfc7b1042)

Bug Description

Hello,
I use the help command in my dms and i get this error

Bug Traceback

image

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.