taaku18 / modmail-plugins Goto Github PK
View Code? Open in Web Editor NEWNot monitored atm
License: BSD 3-Clause "New" or "Revised" License
Not monitored atm
License: BSD 3-Clause "New" or "Revised" License
I already tried upgrading aiohttp after which I (still) got this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts.
discord-py 2.0.1 requires aiohttp<4,>=3.7.4, but you have aiohttp 3.6.3 which is incompatible.
After upgrading pip itself I got the following error instead:
Failed to download plugin, check logs for error.
<class 'cogs.plugins.InvalidPluginError'>: Cannot load extension, plugin invalid.
When I checked the logs using ?debug this is what it said:
discord.ext.commands.errors.ExtensionFailed: Extension 'plugins.Taaku18.modmail-plugins.music-master.music' raised an error: Error: Incorrect padding
2022-10-26 16:24:26 cogs.plugins[389] - WARNING: Unable to load plugin Taaku18/modmail-plugins/music@master.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 946, in _load_from_module_spec
await setup(self)
File "/modmailbot/plugins/Taaku18/modmail-plugins/music-master/music.py", line 1371, in setup
bot.add_cog(Music(bot))
File "/modmailbot/plugins/Taaku18/modmail-plugins/music-master/music.py", line 75, in __init__
BOT_ID = int(b64decode(self.bot.token.split(".")[0]).decode())
File "/usr/local/lib/python3.9/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/modmailbot/cogs/plugins.py", line 259, in load_plugin
await self.bot.load_extension(plugin.ext_string)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 1012, in load_extension
await self._load_from_module_spec(spec, name)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 951, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'plugins.Taaku18.modmail-plugins.music-master.music' raised an error: Error: Incorrect padding
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/modmailbot/cogs/plugins.py", line 387, in plugins_add
await self.load_plugin(plugin)
File "/modmailbot/cogs/plugins.py", line 265, in load_plugin
raise InvalidPluginError("Cannot load extension, plugin invalid.") from exc
cogs.plugins.InvalidPluginError: Cannot load extension, plugin invalid.
I run the bot in an to internet exposed docker container with all requirements installed.
My modmail version is 4.0.1
After every step I took I both reinstalled the plugin and restarted the docker container (and therefore also the discord bot)
Would like an option to change the time zone shown in the logs.
TL;DR random.cat's API returns a 503 for some reason, and unless an API key is set for thecatapi.com, the command just flat out breaks. Created a fork to fix this by just flat out disabling the default meow command like so:
# async with self.bot.session.get("http://aws.random.cat/meow") as r:
# cat = (await r.json())["file"]
embed = discord.Embed(title=":x: API Broken")
embed.description("The default cat API is down. In the meantime, use
{prefix}help meow for more info.")
#embed.set_image(url=cat)
Can be viewed in my fork here.
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.