Wikimedia

Add a @restrict command to the wm-bot IRC bot

WM Bot is an IRC bot running in Wikimedia channels on Freenode. Its C# code is in this Git repository on GitHub.

wm-bot should have a root command @restrict that allows us to prevent the bot from being added to a channel by less than root/admin for cases where there are issues with invite-only channels. This will allow people with root rights to give instructions to people trying to re-add the bot to their channel without adding it to chanserv list for the channel.

In a case like this, Matthew could do a @restrict add #lfkchat and it would automatically part the channel and only root could add it back or @restrict add #lfkchat admin to allow an admin to add it back as well. Then, when whomever wanted it in that channel in the first place comes back to find out why it is not there, it would return <wm-bot> #lfkchat was restricted due to it being invite only. Please contact an admin to have it readded.

Please see https://phabricator.wikimedia.org/T144914 for an example.

Task tags

  • c#
  • irc
  • bot

Students who completed this task

Phantom42

Task type

  • code Code
close

2017