Closed NickBouwhuis closed 5 years ago
The trigger 'JOIN' only does something when the bot itself joins a channel, but not when someone else does.
It most certainly does trip on any join, not just Sopel's. Otherwise Sopel's core would be broken:
As for actually implementing this, others have made such things in the past. One example: https://github.com/johnlage/BombBot/blob/407e7f4e0e132d75480cff59ff179607cb87b0d6/auto-op.py
It was made for Willie, but the equivalent module for Sopel would be basically identical except for a few changed imports.
Hi there!
I want to write a module that will give certain users OP rights when they rejoin our channel. How would I go about writing a module that does that?
The trigger 'JOIN' only does something when the bot itself joins a channel, but not when someone else does.
The bot just needs to do '/op [nick]' in the channel when someone joins.