Giter VIP home page Giter VIP logo

crab-cogs's People

Contributors

67372a avatar djtomato avatar hollowstrawberry avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

crab-cogs's Issues

EasyTranslate won't Load

Red version 3.5.2

[2023-07-23 03:08:04] [ERROR] red: Package loading failed
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/redbot/core/core_commands.py", line 188, in _load
await bot.load_extension(spec)
File "/home/container/.local/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension
lib = spec.loader.load_module()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 605, in _check_name_wrapper
File "", line 1120, in load_module
File "", line 945, in load_module
File "", line 290, in _load_module_shim
File "", line 721, in _load
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/CogManager/cogs/easytranslate/init.py", line 1, in
from .easytranslate import EasyTranslate
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/CogManager/cogs/easytranslate/easytranslate.py", line 25, in
import googletrans
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/googletrans/init.py", line 6, in
from googletrans.client import Translator
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/googletrans/client.py", line 12, in
import httpx
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/httpx/init.py", line 2, in
from ._api import delete, get, head, options, patch, post, put, request, stream
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/httpx/_api.py", line 3, in
from ._client import Client, StreamContextManager
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/httpx/_client.py", line 8, in
from ._auth import Auth, BasicAuth, FunctionAuth
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/httpx/_auth.py", line 9, in
from ._exceptions import ProtocolError, RequestBodyUnavailable
File "/home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/Downloader/lib/httpx/_exceptions.py", line 43, in
CloseError = httpcore.CloseError
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'httpcore' has no attribute 'CloseError'

assumption will be because of the translate version is pretty old now, anychance of migrating it forward?
https://stackoverflow.com/questions/72796594/attributeerror-module-httpcore-has-no-attribute-synchttptransport

UNIQUE constraint failed: messages.id when feeding

Hi,

I tried to setup the Simulator cog on my server but when executing !sim feed 1 I get this error:
IntegrityError
UNIQUE constraint failed: messages.id
๐Ÿง  Model Built
Analyzed 0 messages

These are my settings
grafik

Thanks for any help :)

If I delete an image from thread, imagelog doesn't seem to work.

If I delete an image from thread, imagelog doesn't seem to work.
The logs you'll see at this point are shown below.

9์›” 22 21:14:22 clr-live.lan python[965]: [2023-09-22 21:14:22] [ERROR] discord.client: Ignoring exception in on_raw_message_delete
9์›” 22 21:14:22 clr-live.lan python[965]: Traceback (most recent call last):
9์›” 22 21:14:22 clr-live.lan python[965]: File "/home/ocformula/redenv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
9์›” 22 21:14:22 clr-live.lan python[965]: await coro(*args, **kwargs)
9์›” 22 21:14:22 clr-live.lan python[965]: File "/home/ocformula/.local/share/Red-DiscordBot/data/ocformula/cogs/CogManager/cogs/imagelog/imagelog.py", line 46, i>
9์›” 22 21:14:22 clr-live.lan python[965]: embed.add_field(name=f"Channel", value=channel.mention)
9์›” 22 21:14:22 clr-live.lan python[965]: ^^^^^^^^^^^^^^^
9์›” 22 21:14:22 clr-live.lan python[965]: AttributeError: 'NoneType' object has no attribute 'mention'

Simulator cog spams "IndexError: list index out of range" over and over wihin the output channel

Decided to try out this cog since other past markov related cogs I've used have all been discontinued and/or broke or they always had something wrong with them.

I set up the inputchannels, inputrole, etc, but now it keeps spamming "IndexError: list index out of range" which I am assuming is its attempt at posting comments and convos.

Within the bot console window, it mentions "OperationalError: no such table: messages"

ImageLog seems to only log Staff

up until the recent update, image logging worked for both staff and regular users, now only staff get logged.
I also get these logs (see attachment below) from the docker container

I would appreciate some insight as to why this is happening, I'm also on the latest version of the PhasecoreX red discord bot Image and the latest version of this repo if that helps

image

image

[ImageLog]

Getting this on running imagelog

Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/CogManager/cogs/imagelog/imagelog.py", line 80, in imagelog
    channel_id = await self.logchannels.get(ctx.guild.id, 0)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object int can't be used in 'await' expression

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
    await ctx.command.invoke(ctx)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
    await super().invoke(ctx)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1647, in invoke
    await super().invoke(ctx)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: object int can't be used in 'await' expression

[EasyTranslate] error on loading the cog

Hey

Been using the easytranslate cog, I think it's a very good utility cog.
I noticed the following error while loading the cog to my instance.

Red 3.5
DPY 2.2.3

Error:

Exception during loading of package
Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 188, in _load
    await bot.load_extension(spec)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension
    lib = spec.loader.load_module()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/CogManager/cogs/easytranslate/__init__.py", line 1, in <module>
    from .easytranslate import EasyTranslate
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/CogManager/cogs/easytranslate/easytranslate.py", line 25, in <module>
    import googletrans
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/Downloader/lib/googletrans/__init__.py", line 6, in <module>
    from googletrans.client import Translator
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/Downloader/lib/googletrans/client.py", line 27, in <module>
    class Translator:
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/dusky/cogs/Downloader/lib/googletrans/client.py", line 57, in Translator
    proxies: typing.Dict[str, httpcore.SyncHTTPTransport] = None,
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'httpcore' has no attribute 'SyncHTTPTransport'

have tried installing httpcore separately

[simulator] sqlite3.OperationalError: database is locked`

While doing simulator feed

apparently the process still finishes and works, but saw this error, just in case

 Traceback (most recent call last):
   File "/home/glas/redenv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
     await coro(*args, **kwargs)
   File "/mnt/hdd/data/lenabot/cogs/CogManager/cogs/simulator/simulator.py", line 377, in on_message
     await self.insert_message_db(message, db)
   File "/mnt/hdd/data/lenabot/cogs/CogManager/cogs/simulator/simulator.py", line 586, in insert_message_db
     await db.execute(f'INSERT INTO {DB_TABLE_MESSAGES} VALUES (?, ?, ?)',
   File "/home/glas/redenv/lib/python3.11/site-packages/aiosqlite/core.py", line 190, in execute
     cursor = await self._execute(self._conn.execute, sql, parameters)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/home/glas/redenv/lib/python3.11/site-packages/aiosqlite/core.py", line 133, in _execute
     return await future
            ^^^^^^^^^^^^
   File "/home/glas/redenv/lib/python3.11/site-packages/aiosqlite/core.py", line 106, in run
     result = function()
              ^^^^^^^^^^
 sqlite3.OperationalError: database is locked

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.