Giter Site home page Giter Site logo

modmail-plugins's People

Contributors

aloqeely avatar infinitepower18 avatar lorenzo132 avatar taaku18 avatar

Stargazers

 avatar  avatar  avatar  avatar

modmail-plugins's Issues

music doesn't like aiohttp 3.6.3 and modmail 4.0.1?

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)

animals is broken unless api key is set

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.

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.