hollowstrawberry / crab-cogs Goto Github PK
View Code? Open in Web Editor NEWRed Discord bot cogs for the Crab friend group
License: GNU General Public License v3.0
Red Discord bot cogs for the Crab friend group
License: GNU General Public License v3.0
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
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'
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"
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
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
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
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
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.