Coder Social home page Coder Social logo

jojocogs's Introduction

Welcome

Hallo there, thanks for reading or something

I program mostly in Python and I make some stuff for the discord bot Red-DiscordBot, which has an amazing community around it.

Whilst not building discord bots I am commiting acts of heresy by rewriting perfectly fine code into a single line, which, although at first simplistic, becomes an enormous monster that cannot be stopped. You can see my handywork on this at my fork of Red's Lavalink library

Have fun!

jojocogs's People

Contributors

jmesfo0 avatar just-jojo avatar kreusada avatar kuro-rui avatar ltzmax avatar noobindahause avatar oofchair avatar ryan5453 avatar yamikaitou avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

jojocogs's Issues

Brownies broke *again*

What cog are you reporting for?
Brownies
What command(s) inside the cog are you reporting for?
brownie
What were you expecting from the output of the command?
It to tell me how many brownies I got and add them to my collection
What actually happened?
It opened a black hole
Is this reproducible and if so how?
Probably not but [p]brownie might do it
Discord name and # number
Jojo#7791
Other info

Provide feedback when user is not in the server

Cog

ModNotes

Details

When attempting to add a mod note to a user no longer in the server, the command will just return the help menu to you. It should instead give an error about the user not being in the server and the cog unable to add a note for more clarity.

Discord User Information

eternalll

Traceback details (if applicable)

No response

Reproduction

Attempt to add a note to a user non-existent in the server.

Todo set

What feature would you like?
Todo set pls i cant use it wah
What cog would you like this to be added to? (if new please specify)
ToDo
What is your Discord name? eg. Jojo#7791
Jojo#7791
Additional information
I dunno how this works

error on localblocklist

Cog

AdvancedBlacklist

Details

someone managed to error [p]localblocklist list. not entire sure how they managed to do that.

Discord User Information

MAX#1000

Traceback details (if applicable)

Traceback (most recent call last):
  File "/home/aina/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/aina/redbot/cogs/CogManager/cogs/advancedblacklist/advanced_blacklist.py", line 165, in local_blocklist_list
    for uid, reason in lbl.items():
AttributeError: 'NoneType' object has no attribute 'items'

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

Traceback (most recent call last):
  File "/home/aina/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/aina/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 832, in invoke
    await super().invoke(ctx)
  File "/home/aina/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1348, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/home/aina/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/aina/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'items'


### Reproduction

_No response_

Todo assigning

What feature would you like?
Assign a todo to someone and have it show up as assigned

What cog would you like this to be added to? (if new please specify)
ToDo

What is your Discord name? eg. Jojo#7791
Jojo#7791 :wallekappa:

Additional information
Just for me to not forget lol

Pin command for ToDo

Cog

ToDo

Details

Pin command instead of having to go to the specific todo every time

Brownie rebuild

Convert the brownie cog from v2 to v3

Yes this is late and I have started work on it already but still needs helps

Create mod cog

This doesn't have to be done anytime soon but I'd like to create my own mod cog. :)

ImportError: cannot import name 'UNICODE_EMOJI_ENGLISH' from 'emoji.unicode_codes'

Cog

AdvancedInvite

Details

After doing: load advancedinvite it doens't load instead throws an import error.

Discord User Information

Macley#6969 | I'm also in the server :) dm is open!

Traceback details (if applicable)

[20:10:23] ERROR    [red] Package loading failed
╭─────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────╮
│ /home/macley/redenv/lib/python3.9/site-packages/redbot/core/core_commands.py:172 in _load                                                                                        │
│ ❱  172                 await bot.load_extension(spec)                                                                                                                            │
│ /home/macley/redenv/lib/python3.9/site-packages/redbot/core/bot.py:1554 in load_extension                                                                                        │
│ ❱ 1554         lib = spec.loader.load_module()                                                                                                                                   │
│ <frozen importlib._bootstrap_external>:529 in _check_name_wrapper                                                                                                                │
│ <frozen importlib._bootstrap_external>:1029 in load_module                                                                                                                       │
│ <frozen importlib._bootstrap_external>:854 in load_module                                                                                                                        │
│ <frozen importlib._bootstrap>:274 in _load_module_shim                                                                                                                           │
│ <frozen importlib._bootstrap>:711 in _load                                                                                                                                       │
│ <frozen importlib._bootstrap>:680 in _load_unlocked                                                                                                                              │
│ <frozen importlib._bootstrap_external>:850 in exec_module                                                                                                                        │
│ <frozen importlib._bootstrap>:228 in _call_with_frames_removed                                                                                                                   │
│ /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/advancedinvite/__init__.py:6 in <module>                                                             │
│ ❱  6 from .advanced_invite import AdvancedInvite                                                                                                                                 │
│ /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/advancedinvite/advanced_invite.py:17 in <module>                                                     │
│ ❱  17 from .utils import *                                                                                                                                                       │
│ /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/advancedinvite/utils.py:10 in <module>                                                               │
│ ❱  10 from emoji.unicode_codes import UNICODE_EMOJI_ENGLISH                                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ImportError: cannot import name 'UNICODE_EMOJI_ENGLISH' from 'emoji.unicode_codes'
(/home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/Downloader/lib/emoji/unicode_codes/__init__.py)

Reproduction

Get latest version of Red on ubuntu 22.04 fully up-to-date. Install the repo through discord and install the cog and load it in.

[Meta] Repo cleanup

I wanna try and get CC for Red (maybe?) so I'll need to do some cleaning up as this repo is a mess 😄

  • Add some more files for help (eg. issues and stuff)
  • Spice up Calculations as it's not fun atm
  • Function/method updates to make it easier and cleaner
  • No security issues. I doubt I have any but it would be wise to look through and make sure

Deadline (lmfao, a deadline) should be the end of the month but idk

Todo Suggestions

Hey there, since you're looking at this you might have a suggestion for my ToDo cog.

As I would rather have somewhere to talk about it besides discord and having an issue for every suggestion for todo on my github will get annoying, I have made this issue.

Be civil, leave good suggestions, don't attack others, and thanks for reading this!

Package loading failed

Cog

AdvancedLog

Details

Failed to load the cog

Discord User Information

ChrisiTV#0815

Traceback details (if applicable)

Exception during loading of package
Traceback (most recent call last):
  File "/home/pi/redenv/lib/python3.9/site-packages/redbot/core/core_commands.py", line 188, in _load
    await bot.load_extension(spec)
  File "/home/pi/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1686, in load_extension
    await lib.setup(self)
TypeError: object NoneType can't be used in 'await' expression

Reproduction

i added the repo then installed advancedlog. After that i wanted to load the cog... Error

[todo] Getting NoneType iterable error upon loading the cog

Cog

ToDo

Details

Getting 'NoneType' object is not iterable error upon loading the cog on red 3.5 & dpy2

Discord User Information

Cool aid man#3600

Traceback details (if applicable)

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 1686, in load_extension
    await lib.setup(self)
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/todo/__init__.py", line 13, in setup
    await bot.add_cog(ToDo(bot))
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1907, in add_cog
    await super().add_cog(cog, guild=guild, guilds=guilds)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 783, in add_cog
    cog = await cog._inject(self, override=override, guild=guild, guilds=guilds)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/ext/commands/cog.py", line 682, in _inject
    await maybe_coroutine(self.cog_load)
  File "/home/ubuntu/redenv/lib/python3.11/site-packages/discord/utils.py", line 688, in maybe_coroutine
    return await value
           ^^^^^^^^^^^
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/todo/core.py", line 112, in cog_load
    for todo in data["todos"]:
TypeError: 'NoneType' object is not iterable

Reproduction

update > load the cog

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.