Giter VIP home page Giter VIP logo

squid-plugins's People

Contributors

aikaterna avatar aioxas avatar calebj avatar electromaster232 avatar franc-ist avatar kowlin avatar mikeshardmind avatar ovyerus avatar palmtree5 avatar planetteamspeakk avatar skeith avatar tekulvw avatar truepikachu avatar twentysix26 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

squid-plugins's Issues

RSS cog returns invalid argument

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```

(Suggestion) Permission cog | Per user settings and something like #server.

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.

(SUGGESTION)/ (issue?)

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.

  1. Allow more then 100 servers

  2. If it's too much, A user can do *partycrash page 2
    etc

  3. Allow the command to just *partycrash (servername)
    If it does already then it's broken.

If the quotes list takes up more than a single message, some quotes aren't listed

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

Hublinker problem

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

Suggestion: Bigger Twitch Emotes?

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. ❤️

Possible to stop certain roles/users requesting roles?

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?

[suggestion] karma cog

make bot send message to view karma points when using @mention ++/-- reason instead of [p]karma

Cog Info missing

I just wanted to quickly mention that some cogs like encoder or hublinker are missing their info.json

Announcement improvement

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.

ValueError: could not convert string to float: 'say'

.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'

Error in command 'rss add'

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

Whitelist system for Permissions cog

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.

Mention tracking

Mention tracking will pull mentions and previous messages from channels that the target mention cant see via permissions.

scheduler.py: "Task exception was never retrieved"

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 Issue

Mentiontracker seems to only record one or two mentions, and the three preceding messages to the mention(s)

Tickets are not multiserver.

I think it'd be a great idea to make tickets multiserver so chat owners can view tickets from only their server.

Add server events to channelloger

Events such as:

  • Role add/remove
  • Member nick change
  • Member role change
  • Channel create/destroy
  • Member join/part
  • Member kick/ban/unban

I'm thinking they can go in a file named /server.log

My list of things to do

  • MessageParser cog
  • Rate limit emotes
  • Document RSS 975cb97
  • Hublinker should also share (optionally) cc's, aliases, modset, emotes
  • Scheduler, remove event from queue on remove
  • Karma toggle karma count on give/take 3ced6f0

RSS no longer works

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

Post all new RSS feed posts

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

permissions cog issue with cog update

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'

Events need to be comparable

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()

Bot Must Be Restarted To Pull New Emotes

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?

RSS template and force can't find feed name

  • 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

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.