3 · Channel related commands - teuk/mediabot_v3 GitHub Wiki
Available commands (showcommands)
Every user added to the bot can see what commands are available for him on a given channel.
In the section "addchan" you could see how to register channel #irc to user foo, the bot joined #irc and the user foo was granted the level 500 of this channel. To see available command on a channel, you can type in channel :
m showcommands
Example
10:19:18 @foo | m showcommands
|10:19:18 BNC -- | mediabot ([email protected]): Available commands on #irc
│10:19:18 BNC -- | mediabot ([email protected]): Level 500: part
│10:19:20 BNC -- | mediabot ([email protected]): Level 450: join chanset
│10:19:22 BNC -- | mediabot ([email protected]): Level 400: add del modinfo
│10:19:24 BNC -- | mediabot ([email protected]): Level 100: op deop invite
│10:19:26 BNC -- | mediabot ([email protected]): Level 50: kick topic
│10:19:28 BNC -- | mediabot ([email protected]): Level 25: voice devoice
│10:19:30 BNC -- | mediabot ([email protected]): Level 0: access chaninfo login pass newpass ident showcommands
The user foo has access to all channel related commands from 0 to 500. Having a 500 channel level means that the user is the owner of the channel (#irc in this example).
part command
You can make the bot part the channel
08:22:24 @foo | m part
08:22:24 <-- | mediabot ([email protected]) a quitté #irc (At the request of foo)
join command
It's hard to use the syntax (which exists for example from the console channel)
m join #channel
If the bot has been parted from #irc example channel with the previous command but you can also do
/msg mediabot join #channel
Example
09:06:58 BNC -- | MSG(mediabot): join #irc
09:06:58 --> | mediabot ([email protected]) a rejoint #irc
chanset command
The available chanset flags are
- Youtube
- UrlTitle
- Weather
- YoutubeSearch
- NoColors
- AntiFlood
- Hailo
- HailoChatter
- RadioPub
The syntax is (ex for Youtube)
m chanset +Youtube
and
m chanset -Youtube
To set or unset a flag for the channel