benapetr / wikimedia-bot

IRC bot that is being used on number of wikimedia channels
http://meta.wikimedia.org/wiki/WM-Bot
GNU General Public License v3.0
36 stars 39 forks source link

Add ability to view and manage permissions for other channels without joining them #84

Closed MacFan4000 closed 4 years ago

MacFan4000 commented 4 years ago

This will solve the problem of the bot being added to a private channel for a user who doesn't have a wikimedia/miraheze cloak. Currently the only way to modify permissions for a channel is to join said channel and run @trustadd or @trustdel. This would allow modification from other channels such as #wm-bot, while still working as normal when no channel is provided in the commands.

@trusted @trusted (channel) will return the trustlist for (channel) @trusted still returns the trustlist for the current channel

@trustadd @trustadd (regex/username) (role) will still grant (role) to (regex/username) @trustadd (regex/username) (role) (channel) will grant (role) to (regex/username) in (channel) - This can only be done by root users, and the bot will say in (channel) that the trustlist was modified

trustdel @trustdel (regex/username) still deletes (regex/username) from the trustlist in the current channel @ trustdel (regex/username) (channel) deletes (regex/username) from the trustlist in (channel) - this can only be done by root users

benapetr commented 4 years ago

sorry I didn't even notice this, I will review and merge soon