Bot::Jabbot::Hints - Jabbot Hints
This documentation provides some hints and code snippets for you to use in your modules
my $user='someuser@jabber.org'; $msg->room()->connection()->send_iq('set', { defns => 'http://jabber.org/protocol/muc#admin', node => { name => 'query', ns=>'http://jabber.org/protocol/muc#admin', childs=>[ { name => 'item', attrs=>['role','none','nick',$user] } ] } }, undef,to => $msg->room()->jid() );
You can also use this code to manipulate user roles
my $user='someuser@jabber.org'; $msg->room()->connection()->send_iq('set', { defns => 'http://jabber.org/protocol/muc#admin', node => { name => 'query', ns=>'http://jabber.org/protocol/muc#admin', childs=>[ { name => 'item', attrs=>['affiliation','outcast','jid',$user] } ] } }, undef,to => $msg->room()->jid() );
You can also use this code to manipulate user affilations
To install Bot::Jabbot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Jabbot
CPAN shell
perl -MCPAN -e shell install Bot::Jabbot
For more information on module installation, please visit the detailed CPAN module installation guide.