Closed Zephyrkul closed 6 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.
Added [p]rift blacklist
for more security.
I added support for edits and deletes passing through rifts, because I completely forgot that was a feature I always wanted added to rifts.
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.
I swear I'll look at this one day 😅
No worries, there's actually a small bugfix and feature request I need to implement anyway.
@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?
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).
I am thinking the notification should also notify adminrole or modrole or owner, since we might want to monitor rift usage
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.
Why closed?
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.
That's sad.
My fork is still here if you'd like to add the repo under a different name: https://github.com/zephyrkul/26-Cogs
I played around with Rift and added a few improvements:
[p]rift
is now a group command with[p]rift open
opening a rift instead of[p]riftopen
.[p]rift search
command, which searches for rifts with the specified parameters.[p]rift notify
.[p]rift close
command, available to admins, manage_channel, and DMs. This closes all rifts whose destination is the channel the command is used in. Source channels are notified of this.[p]rift blacklist
command, with the same check asclose
. This closes rifts as above and also will block future rifts from being opened to the current channel. Removing works similarly.[p]rift open
commands to the previous rifts. (Previously I had it set where rift accepted multiple arguments, but I decided this approach was better.)info.json
to give the proper[p]rift open
command, and also sneakily gave myself co-author credit.