tekulvw / squid-plugins Goto Github PK
View Code? Open in Web Editor NEWPlugins for Squid
License: MIT License
Plugins for Squid
License: MIT License
It seems to raise a
NoSetupError:
Failed to load: cogs.general
botinfo.py@ln79
» Conflict avoided by renaming the command to 'infoz'
😢
Upon attempting to add a new RSS feed, the bot raises the following error:
raise InvalidArgument(fmt.format(destination))
discord.errors.InvalidArgument: Destination must be Channel, PrivateChannel, User, or Object. Received NoneType
Here is the entire log of the error if it helps:
[01/09/2016 18:31] ERROR red on_command_error 88: Exception in command 'rss add'
Traceback (most recent call last):
File "...rss.py", line 129, in _get_feed
async with session.get(url) as r:
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\client.py", line 539, in __aenter__
self._resp = yield from self._coro
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\client.py", line 187, in _request
yield from resp.start(conn, read_until_eof)
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\client_reqrep.py", line 606, in start
message = yield from httpstream.read()
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\streams.py", line 591, in read
result = yield from super().read()
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\streams.py", line 446, in read
yield from self._waiter
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\asyncio\futures.py", line 358, in __iter__
yield self # This tells Task to wait for completion.
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\asyncio\tasks.py", line 290, in _wakeup
future.result()
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\asyncio\futures.py", line 266, in result
raise CancelledError
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "...rss.py", line 158, in _rss_add
await self.bot.say('Invalid or unavailable URL.')
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 288, in _augmented_msg
msg = yield from coro
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 827, in send_message
channel_id, guild_id = yield from self._resolve_destination(destination)
File "C:\Users\Pwnulatr\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 257, in _resolve_destination
raise InvalidArgument(fmt.format(destination))
discord.errors.InvalidArgument: Destination must be Channel, PrivateChannel, User, or Object. Received NoneType```
I appreciate permissions system in Rem bot. Simple, with priority order. Options like:
blacklist entire server, then whitelist two channels, then blacklist a Moderator rank in those channels, but whitelist user there. (user>role>channel>server order), one can use * to include all commands/modules.
Or option to lock module but unlock one command.
So:
Lock system here is useful, but if you lock cog and unlock command (both globally), command still is locked. That system is hard to manage. Maybe instead of locking cog make it to work as loop of locking commands?
Same with other. There should be a priority order.
If user has permission do it, else if any of users roles has permission do it, else if channel has perm. do it, else if server has perm. do it, else don't.
Do you plan to add subcomands to black/whitelist, such as channel/cog/command?
PS. Yes, my English isn't clear to understand, sorry.
When a bot hits 100 servers, partycrash won't show a list and therefore it's unusable.
My recommendation: Split the message every 100 servers.
For partycrash theres a limit of 100 servers or so before it claims it can't show the list.
I would like a few things changed.
First the servers cog or so can show more then 100 servers.
Allow more then 100 servers
If it's too much, A user can do *partycrash page 2
etc
Allow the command to just *partycrash (servername)
If it does already then it's broken.
To be more specific, the function for listing all quotes is:
@commands.command(pass_context=True)
async def allquotes(self, ctx):
"""Gets a list of all quotes"""
strbuffer = self._fmt_quotes().split("\n")
mess = ""
for line in strbuffer:
if len(mess) + len(line) + 1 < 2000:
mess += "\n" + line
else:
await self.bot.send_message(ctx.message.author, mess)
mess = ""
if mess != "":
await self.bot.send_message(ctx.message.author, mess)
If the list is long enough to take the else
branch in there, the current contents of mess
is pushed to Discord, but line
is never added to mess
.
The fix would be to replace mess = ""
with mess = line
Please strip all HTML tags from RSS cog (such as from $summary) as Discord can not interpret them
Like in title, logs don't include embed messages.
Have been unable to use the hublinker as it says it requires the squid role to be above all other roles in all slave servers, but when that is the case I still get that message
> :scheduler repeat serverhound 3605s say =bump
"serverhound" will run "say =bump" every 3605s
It should run =bump
, but it didn't.
Self-explanatory if you have a clue.
Is it possible to upload bigger emotes than just the standard Twitch sizes? Like size 3.0. This would be awesome, thank you for making this in the first place. ❤️
After a few hours, or a day, the bot stops updating RSS feeds. Any reason for that?
Hi there,
I have the cog setup so if a user does !join rolename then they are given the role, I don't want certain other roles or users to be able to request it though, is there a way to stop certain people/groups being able to use the command?
make bot send message to view karma points when using @mention ++/-- reason instead of [p]karma
I just wanted to quickly mention that some cogs like encoder or hublinker are missing their info.json
suggested by @toparcticwolf
karma points have added value for more incentive to use the system
exactly/similar to the four-in-a-row and custom economy cogs
Allow server admin/moderators to designate where the announcement goes. If not registered default is the general chat.
This will help other servers to know what updates that has been made to the bot because I do announcement when big changes that could affect them. Casino cog, new commands, deleted commands etc. General chat gets flooded which cause them to miss the bot announcement.
add another command to allow them to turn off the announcement if they don't want it.
.scheduler repeat test say test 10s
[27/04/2018 21:29] ERROR red on_command_error 369: Exception in command 'scheduler repeat'
Traceback (most recent call last):
File "lib/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/home/varmag/redbot/cogs/scheduler.py", line 310, in _scheduler_repeat
await self._add_centralized(ctx, name, time_interval, command, True)
File "/home/varmag/redbot/cogs/scheduler.py", line 349, in _add_centralized
interval = _parse_time(interval)
File "/home/varmag/redbot/cogs/scheduler.py", line 79, in _parse_time
time = sum(map(_timespec_sec, filter(None, time)))
File "/home/varmag/redbot/cogs/scheduler.py", line 97, in _timespec_sec
return float(atoms[0]) * length
ValueError: could not convert string to float: 'say'
Is it possible to show the number of users in the server alongside the listing in partycrash?
Hi,
when i write !rss add news https://forum-en.guildwars2.com/forum/info/news.rss
i have this error:
Error in command 'rss add'. Check your console or logs for details.
and traceback:
Exception in command 'rss add'
Traceback (most recent call last):
File "lib/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/home/admin/web/mg/Red-DiscordBot/cogs/rss.py", line 155, in _rss_add
self.feeds.add_feed(ctx, name, url)
File "/home/admin/web/mg/Red-DiscordBot/cogs/rss.py", line 68, in add_feed
server = ctx.message.server.id
AttributeError: 'NoneType' object has no attribute 'id'The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "lib/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "lib/discord/ext/commands/core.py", line 634, in invoke
yield from ctx.invoked_subcommand.invoke(ctx)
File "lib/discord/ext/commands/core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "lib/discord/ext/commands/core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id'
Why the command does not work? Everything else works without problems. Any solution for this cog?
Thanks
As the title says, it would be great if there was a way to disable all commands on a channel/role, then be able to whitelist just the ones you want to be usable.
For the permissions cog I think it would be cool to have a command that automatically blacklists a command for everyone and in order for groups to use that command they have to be whitelisted. Unless there's already a way to do that just thought it would be cool and useful.
Per https://discuss.dev.twitch.tv/t/client-id-requirement-faqs/6108
It appears this plugin doesn't send a client ID with its requests and as such will break come August 8. It looks as if it just needs a command to set a client ID in addition to changes to make the client id be sent with the request
It would be neat if you can add emote support for the following services:
Thanks. :)
It would be very helpful if you added a tiny Description of what the cog does somewhere. (or am i just missing it and or blind?)
Mention tracking will pull mentions and previous messages from channels that the target mention cant see via permissions.
I get the following error at times after a scheduled event runs:
[29/03/2017 01:00] INFO scheduler run_coro 240: Running 'dump' in 261733281341374469.
[29/03/2017 01:00] INFO scheduler run_coro 240: Running 'announce dump' in 261733281341374469.
Task exception was never retrieved
future: <Task finished coro=<Scheduler.queue_manager() done, defined at C:\Users\Craig\Documents\Red-DiscordBot\cogs\scheduler.py:244> exception=KeyError(1490763641,)>
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(None)
File "C:\Users\Craig\Documents\Red-DiscordBot\cogs\scheduler.py", line 278, in queue_manager
del self.to_kill[start_time]
KeyError: 1490763641
Does anyone know what causes it and how I can fix it?
Mentiontracker seems to only record one or two mentions, and the three preceding messages to the mention(s)
Please comment on what you'd like to see in the V3 rewrite of emotes here.
Like i said in the title the BotInfo cog adds a info command but Red already has one.
I think it'd be a great idea to make tickets multiserver so chat owners can view tickets from only their server.
Events such as:
I'm thinking they can go in a file named /server.log
Recieve the following error when added a rss feed: "Error in command 'rss add' - InvalidArgument: Destination must be Channel, PrivateChannel, User, or Object. Received NoneType"
Also does not post any new items from the RSS feed
Hello,
I'm looking for a cog that would check for all the new RSS feed posts and send them all, every 5 minutes for example. All the feed posts that are newer than an hour or something like that. And then keep posting the new feeds every 5 minutes, the goal is to track all posts ans don't miss any.
Would be great to see that function in your RSS plugin :)
Thank you in advance for the help
Right now Pillow doesnt have a dedicated Python 3.6 wheel so it would be handy to change the message to say that the current version of python cannot install pillow.
Posted below is the traceback that leads to this. As you can see, team is a command from irdumb's adventure cog.
After setting pems for a command and uninstalling the cog that the command is contained in, then doing a cog update and saying yes to reload all.
This is fixable by deleting the command from the perms.json or reinstalling the cog, telling the bot to remove any perms related to that command, and uninstalling it again. Another last resort is to do perms reset.
Also. This causes the cog to not be reloaded/loaded. So it has to be manually loaded.
[24/08/2016 22:08] ERROR red on_command_error 88: Exception in command 'cog update'
Traceback (most recent call last):
File "C:\Users\USER\Desktop\Ram\cogs\permissions.py", line 141, in pred
return func(_args, *_kwargs)
File "C:\Users\USER\Desktop\Ram\cogs\permissions.py", line 170, in _get_command
ret = self.bot.commands[cmd.pop(0)]
KeyError: 'team'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(_args, *_kwargs)
File "C:\Users\USER\Desktop\Ram\cogs\downloader.py", line 171, in update
self.bot.unload_extension("cogs." + cog)
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 732, in unload_extension
self.remove_cog(cogname)
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 703, in remove_cog
unloader()
File "C:\Users\USER\Desktop\Ram\cogs\permissions.py", line 112, in __unload
cmd = self._get_command(cmd_dot)
File "C:\Users\USER\Desktop\Ram\cogs\permissions.py", line 143, in pred
raise exc from e
cogs.permissions.BadCommand
Ignoring exception in member_join
Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 247, in _run_extra
yield from coro(_args, *_kwargs)
File "C:\Users\USER\Desktop\Ram\cogs\welcome.py", line 100, in member_join
if self.speak_permissions(server):
File "C:\Users\USER\Desktop\Ram\cogs\welcome.py", line 112, in speak_permissions
return server.get_member(self.bot.user.id).permissions_in(channel).send_messages
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\user.py", line 119, in permissions_in
return channel.permissions_for(self)
AttributeError: 'NoneType' object has no attribute 'permissions_for'
Task exception was never retrieved
future: <Task finished coro=<Scheduler.queue_manager() done, defined at C:\Users\Will\Desktop\Red-DiscordBot\cogs\scheduler.py:222> exception=TypeError('unorderable types: Event() < Event()',)>
Traceback (most recent call last):
File "C:\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(None)
File "C:\Users\Will\Desktop\Red-DiscordBot\cogs\scheduler.py", line 226, in queue_manager
next_tuple = await self.queue.get()
File "C:\Python35\lib\asyncio\queues.py", line 176, in get
return self.get_nowait()
File "C:\Python35\lib\asyncio\queues.py", line 185, in get_nowait
item = self._get()
File "C:\Python35\lib\asyncio\queues.py", line 235, in _get
return heappop(self._queue)
TypeError: unorderable types: Event() < Event()
If there is a new emote in lets say, Lirik's stream, you have to restart the bot in order to pull the new emote and add it to the system, is there a way to fix that?
add a cooldown in between uses (like the slot machines from economy cog)
Update RSS cog
Update Red
API 0.15.0
Added new feed and make sure typing the exact feed name
RSS template and force will result in Feed not found!
and That feedname doesn't exist.
Had to edit JSON manually to add template to newly added feed
Please comment on what you'd like to see in the V3 rewrite of admin 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.