dav-git / dav-cogs Goto Github PK
View Code? Open in Web Editor NEWDav's cogs for Red-DiscordBot
License: GNU General Public License v3.0
Dav's cogs for Red-DiscordBot
License: GNU General Public License v3.0
It's not good practice to rely on 3rd party cogs whenever possible. This reference is unneccessary and can be removed.
This cog can be used to set a status (game, watching, listening) which will automatically be set on bot restart.
The forcenick cog will be removed in December 2020. All functionality is taken over and expanded on by the Nicknamer cog. To switch, you can just uninstall Forcenick and install Nicknamer. Unfortunately, your settings will be lost in the process.
[p]unload forcenick
[p]cog uninstall forcenick
[p]cog install Dav-cogs nicknamer
[p]load Nicknamer
The forcenick cog will no longer be fixed or updated. It is recommended you switch to Nicknamer as soon as possible. If you do not switch before December 2020 you will encouter problems when updating your cogs.
After my Bot updated just 50 minutes ago, the Supporter cog wouldn't load anymore. And I can't even find it anymore in your Repo.
Traceback:
Exception during loading of cog
Traceback (most recent call last):
File "/root/redenv/lib/python3.8/site-packages/redbot/core/core_commands.py", line 119, in _load
await bot.load_extension(spec)
File "/root/redenv/lib/python3.8/site-packages/redbot/core/bot.py", line 929, in load_extension
lib = spec.loader.load_module()
File "", line 462, in _check_name_wrapper
File "", line 962, in load_module
File "", line 787, in load_module
File "", line 265, in _load_module_shim
File "", line 702, in _load
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/.local/share/Red-DiscordBot/data/Lady_Red/cogs/CogManager/cogs/supporter/init.py", line 6, in
red_end_user_data_statement = json.load(fp)["end_user_data_statement"]
KeyError: 'end_user_data_statement'
Even though this almost makes the cog a little pointless, past names are now shown in [p]userinfo
so invoking the [p]names
command is unnecessary here.
After I spent a bunch of time on this cog without really progressing to much I found out that something similar has already been done on https://github.com/zephyrkul/FluffyCogs/ it's called invoice
and is a lot more versatile in functionality. I will be dropping this cog in the middle of August along with Nicknamer.
I recommend users migrate to the invoice cog as soon as possible.
If roomer is installed and no_mic auto-chanels are enabled, the key to a private vc should be sent to the no-mic channel instead of the user's DMs
When someone creates a ticket but it timedout the following error will arrive
Traceback (most recent call last):
File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
ret = await coro(*args, **kwargs)
File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/supporter/supporter.py", line 155, in create
dept_msg = await self.bot.wait_for(
File "/usr/lib/python3.8/asyncio/tasks.py", line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
await ctx.command.invoke(ctx)
File "/root/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 799, in invoke
await super().invoke(ctx)
File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1234, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TimeoutError:
Also I have a the following suggestions::
[p]ticket create
so a dedicated channel for creating tickets is not clogged.[p]supporter department list
Ticketer has a metric ton of strings that need to be translated. The translator still needs to be implemented for all of those strings.
Cog: bday
Requested Feature: Currently the bday cog allows users to assign a bday to themselves to get the autorole. I do not know if others would be able to figure out the commands on my server, so I would like the option for admins to assign a bday to other members of the server. The syntax could be like: [p]birthday [userID] date
Make the readme.md conform with https://github.com/Cog-Creators/Applications
Cog that should always create one more voice channels than there are voicechannels being used.
On_vc_disconnect if channel empty --> delete
On_vc_join if channel was empty before --> make new channel
[2020-07-17 15:07:40] [ERROR] red: Package loading failed
Traceback (most recent call last):
File "/home/lilleke/redenv/lib/python3.8/site-packages/redbot/core/core_commands.py", line 119, in _load
await bot.load_extension(spec)
File "/home/lilleke/redenv/lib/python3.8/site-packages/redbot/core/bot.py", line 929, in load_extension
lib = spec.loader.load_module()
File "", line 462, in _check_name_wrapper
File "", line 962, in load_module
File "", line 787, in load_module
File "", line 265, in _load_module_shim
File "", line 702, in _load
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/lilleke/.local/share/Red-DiscordBot/data/bnl/cogs/CogManager/cogs/ticketer/init.py", line 1, i
n
from .Ticketer import Ticketer
ModuleNotFoundError: No module named 'ticketer.Ticketer'
Getting this error when trying to load the cog :)
Error mcwhitelister (to many users on list)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.0.value: Must be 1024 or fewer in length.
I would like to suggest a feature to NoMic.
the ability to have text channels being created when joining a voice channel.
we already done some brainstorming through DM. but it is also nice to have some things written down.
I am using a cog names roomtools. and this auto creates voice channels according to the name of the game you are playing. you will join a voice channel and right after it will will create a new voice channel. you can find the cog here https://github.com/mikeshardmind/SinbadCogs#roomtools
Is it possible to add an option that will allow you to choose the archiving time for closed tickets? pass this delay the bot automatically deletes tickets.
Thanks you :) ๐ช
Exception in command 'anonreport'
Traceback (most recent call last):
File "c:\__\coding\redenv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\__\coding\Soundwave\cogs\CogManager\cogs\anonreporter\anonreporter.py", line 81, in anonreport
await ctx.guild.get_channel(channel).send(
AttributeError: 'NoneType' object has no attribute 'send'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\__\coding\redenv\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "c:\__\coding\redenv\lib\site-packages\discord\ext\commands\core.py", line 859, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "c:\__\coding\redenv\lib\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 'send'
To allow the Check cog to accept pinging/to use a converter instead of a user ID for user convenience.
I uhh forgot to open an issue on this the other day uhh....
Add "Competing" status for the recent "Competing In" status Discord added for bots.
NoMic needs i18n-ification.
I tried this cog to help a friend to get roles rid of users the fast way.
While testing we noticed that the unenxclusive command doesn't work.
Output is allways like this: role 1 and role 2 are not registered as exclusive roles
Same as #46. Whenever that gets done, supporter can be done at the same time as they are similar in big parts of the code.
Hi there,
I thought it might be a great option if the channel for the ticket opener remains visible after closure, user just cant text in it anymore. So the user has a reference at a later time and the channel doesnt just fully disappear. Great cog though, liking it a lot!
Traceback (most recent call last):
File "c:\__\coding\redenv\lib\site-packages\discord\ext\tasks\__init__.py", line 101, in _loop
await self.coro(*args, **kwargs)
File "C:\__\coding\Soundwave\cogs\CogManager\cogs\bday\bday.py", line 55, in bdaytask
role := member.guild.get_roles(
AttributeError: 'Guild' object has no attribute 'get_roles'
Line 42 in eca79f3
Maybe allow unique names.
Or have the name of the game a user is playing
And also have it in Sequence
It can currently be done via the scheduler cog, I know, but it would be neat to be able to set nicknames to last for a certain amount of time all with the one forcenick cog. So you could, for example, set the person's nickname to "Birthday Boy" for specifically just a day, and then have it automatically revert to what it was when you first used the forcenick command.
I completely understand if you decide that's not within the scope of your intention for the cog though, was just an idea. Thanks for making it in the first place, pretty handy regardless! ^_^
Hey, we've talked about it on discord.
My request is to make the cog tag able (that ill can pin / tag roles by the bot).
Thanks.
Most likely a bug somewhere within the Task setup. Haven't had time to figure this out yet. Possibly needs accesspoint to config to fetch system times.
When you click on the Channel Creation, it would name the channel with your nickname
Credits to NobodyForYou#3648
via Discord
When a user joins the voice channel to create their own, the creator of the voice channel should be given:
Make a cog that assigns a role when a user is being muted and invokes a core/tempmute mute command. If the user leaves the server, and rejoins (removing their mute) they'll get slapped with a new mute (configurable) if the mute role has been marked as sticky.
Currently ticketer and supporter only work using commands, not reactions like other popular ticketing bots.
While this is a feature that would be nice to have, I currently don't have the motivation to implement it. If someone would like to PR this feature, I would be more than happy to accept it, I just don't want to do it myself at this time.
That said, no amount of questions begging or other support queries will make me implement this quicker, so please don't constantly bug me about it. It will be implemented at some point in the future(TM).
Apparently I added way too much exclusives, as listing it shows that it's over 1024 characters:
Traceback (most recent call last):
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/satan/satan/cogs/CogManager/cogs/exclusiveroles/exclusiveroles.py", line 109, in listexclusives
await ctx.send(embed=embed)
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/redbot/core/commands/context.py", line 93, in send
return await super().send(content=content, **kwargs)
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/abc.py", line 890, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/http.py", line 245, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.0.value: Must be 1024 or fewer in length.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/core.py", line 855, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/satan/.virtualenvs/satan/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: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.0.value: Must be 1024 or fewer in length.
Maybe split them up in pages instead?
Action:
[p]freezenick <user> nickname
on user a second time (after user nick has been frozen)
Expected:
Error from bot indicating user already froze, or removal of previously frozen nickname from figs
Result:
Bot turns user.nick back and forth between both frozen nicknames in configs. Enters the ID into the config a second time with the new nickname to freeze, leaving the old one.
Line referencing:
Dav-Cogs/nicknamer/nicknamer.py
Line 173 in 4fa22ee
I hope this issue template is suitable. Great cog collection here!
Remove need for an explicit string being passed as well as limiting the max chars for the text to 128 due to the discord limit.
Streaming activities require a Twitch URL to be passed to a url=
keyword argument to work. If no URL, or a non-twitch URL, is passed, the activity becomes a Playing activity and the purple streaming status does not appear.
(Ref for possible implementation: https://github.com/Cog-Creators/Red-DiscordBot/blob/3.4.0/redbot/core/core_commands.py#L1894-L1915)
I noticed that with a lot of cogs, it shows up as Reason in the mod logs. But I can't find that in the exlcusiveroles. Is it possible to add this?
I can find the reason in the cog python file under retroscan. Possible it can be included in exclusivenow as well? I'm unsure if reason is already added for setexclusive.
Just an idea. Massmove cog. Can take vc.members and for i in members move them to a specified channel.
Use tasks to determine when a "day ends" instead of relying on someone else's cog for that purpose.
Either make birthdays always last 24h or allow the setting of a time at which the birthdays will end.
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.