i need this feature, and so i wrote it. it's only about 4 lines thanks to a great framework

question - would you like this as an option on the existing bot module, or as a additional module that is enabled?
I'm using this handy bot on our company irc channel.

gosh darn, i can't attach .module files on drupal.org.. you can get a copy from my darcs repo
http://darcs.coffee.geek.nz/contributions/modules/bot/bot_invited

Comments

Morbus Iff’s picture

Awesome. I'd want to see this as a general bot_chanops.module - something where we could put lots of little things related to channel maintenance not only invites, but also the support of "bot_module: join #drupal" or "leave #drupal-support", the automatic voicing or op'ing of certain users, whether invited channels become permanent joins on startup, etc.

Shiny’s picture

you're welcome to spec it out (briefly) and assign a task to me??
very nice framework.

I also want to do some memory usuage analysis too -- does it behave nice running for months on end?

sun’s picture

Seems like the new location of the module is:
http://darcs.coffee.geek.nz/drupal/contributions/modules/bot/bot_invited/

dmitrig01 replied to my question if Druplicon could be joined to #drupal-de with:

[18:07] so your task would be to make a bot_auth module
[18:09] where a) people register with the bot b) people with perms give other people other permissions c) functions for checking if a user is authenticated

dmitrig01’s picture

yes. then the bot_channelcrap module would check if a user is authed to do certain things, and if so, let them, otherwise, don't

Morbus Iff’s picture

Title: Bot auto joins channels when invited » create bot_chanops for normal channel maintenance
RobLoach’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Needs work

Features I'd like to see in bot_chanops, assuming Authentication is committed:

Druplicon: op [user] [optional channel]
Channel is optional because it would assume the current channel if it's not written in. Can also be sent as a private message. If [user] is not given, it assumes the user who issued the user.
Druplicon: deop [user] [optional channel]
Druplicon: voice [user] [optional channel]
Druplicon: devoice [user] [optional channel]
Druplicon: invite [user] [optional channel]
Invites the given user to a channel.
Druplicon: join [channel]
Make Druplicon join the given channel.
Druplicon: part [channel]
Leaves the given channel.
register [password]
A query sent to the bot to register your IRC nickname as a Drupal username on the website. It would respond with the URL to your user account.
Druplicon: grant [user] [role]
Add a user to the given role.
Druplicon: degrant [user] [role]
Remove a role from the given user.
Druplicon: kick [user] [optional channel]
Kick a user from the given channel
Druplicon: ban [user] [optional channel] [optional minutes]
Bans the given user, in a given channel for the given amount of time.
Druplicon: unban [user] [optional channel]
Remove the ban of a given user.