Twentysix26 / 26-Cogs

General purpose cogs for Red (v2)
GNU General Public License v3.0
26 stars 43 forks source link

Big Rift update #20

Closed Zephyrkul closed 6 years ago

Zephyrkul commented 7 years ago

I played around with Rift and added a few improvements:

Zephyrkul commented 7 years ago

(though at the moment the task remains open until the next message from the author or until the next restart).

Fixed this. All rift logic is moved to on_message; [p]rift open simply adds another rift to the set of open rifts for on_message to process.

Zephyrkul commented 7 years ago

Added [p]rift blacklist for more security.

Zephyrkul commented 7 years ago

I added support for edits and deletes passing through rifts, because I completely forgot that was a feature I always wanted added to rifts.

Zephyrkul commented 7 years ago

One more security feature that's rather commonly requested: The bot will not open rifts to channels or users that the author can't see (bot owner bypasses this requirement). The bot will also not open rifts to channels the bot itself can't see or send messages to. Also, small bugfix, the bot won't open a rift to its own DMs.

Twentysix26 commented 7 years ago

I swear I'll look at this one day 😅

Zephyrkul commented 7 years ago

No worries, there's actually a small bugfix and feature request I need to implement anyway.

skeith commented 7 years ago

@zephyrkul is the new rift locked or just like old rift, available for everyone? if yes, is the notify has option to DM the admin/owner whenever a new rift opened?

Zephyrkul commented 7 years ago

New rift is open to everyone, but you can't open rifts to channels you don't have access to. Notify simply tells the channel that a rift is opened to that the command author has opened a rift to that channel.

I'm thinking I may get rid of it. I originally put it in so people would know when secret channels are being accessed, but that's not as much of a problem anymore (though the DM notification would remain).

skeith commented 7 years ago

I am thinking the notification should also notify adminrole or modrole or owner, since we might want to monitor rift usage

Zephyrkul commented 7 years ago

Hmm... okay, I'll overhaul notify so it can be set up to notify a server channel and DM the bot owner, with a configurable setting, along with the other feature request and bugfix.

skeith commented 6 years ago

Why closed?

Zephyrkul commented 6 years ago

Generally my understanding is that v2 cogs etc. won't be actively developed for anymore, so I closed this and created a new fork that I can mess around in myself (you'll note I messed around before closing the PR, hence the trigger changes listed above). I still have all the code if 26 would like me to re-open another rift PR.

skeith commented 6 years ago

That's sad.

Zephyrkul commented 6 years ago

My fork is still here if you'd like to add the repo under a different name: https://github.com/zephyrkul/26-Cogs