Natenoms Wiki

Weil Teilen Spaß macht :)

User Tools

Site Tools


Sidebar

Translations of this page:

Navigation



Lizenz dieses Wikis
Über dieses Wiki
Feed des Wikis
Impressum


Was gerade in meinem Blog geschieht:

en:mumble:audiobots:interconnect-bot-mumble-ruby

Interconnect-Bot with Mumble-Ruby

The Interconnect-Bot created by dafoxia is based on Mumble-Ruby and uses the new ability to receive sound, see here.

This howto was created using a Debian 7 “Wheezy”.

We want to connect two channels of two different Mumble servers with the Interconnect-Bot. The bot works both on servers using the CELT and Opus.

Demonstration

Video

The sound in this video was recorded on server2.

Screenshot

Install dependencies

apt-get install curl libyaml-dev git libopus-dev build-essential zlib1g zlib1g-dev

Create a new user

adduser interconnect

Login as the new user

su - interconnect

All following commands are executed as the user interconnect.

Install Ruby

cd
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm autolibs disable
rvm install 2.1.1
rvm --create use @interconnect

Install opus-ruby

cd
git clone https://github.com/dafoxia/opus-ruby.git
cd opus-ruby/
rvm use @interconnect
gem build opus-ruby.gemspec
rvm @interconnect do gem install opus-ruby-*.gem
cd ..

Install celt-ruby from dafoxia

One must use the repository from dafoxia because the original repository doesn't have a decoder.

cd
git clone https://github.com/dafoxia/celt-ruby.git
cd celt-ruby/
rvm use @interconnect
gem build celt-ruby.gemspec
rvm @interconnect do gem install celt-ruby-*.gem
cd ..

Install mumble-ruby from dafoxia

One must use the repository from dafoxia…

cd
git clone https://github.com/dafoxia/mumble-ruby.git
cd mumble-ruby
rvm use @interconnect
gem build mumble-ruby.gemspec
rvm @interconnect do gem install mumble-ruby-*.gem
cd ..

rumble-bots installieren

This collection contains Interconnect-Bot that we need.

cd
git clone https://github.com/dafoxia/rumble-bots.git
cd rumble-bots
rvm use @interconnect

Configure the bot and your Mumble-Server channel structure

Configure the bot

Edit the file Interconnect.rb in the directory ~/rumble-bots.

At the end of the file you find the settings, which you can change as following to interconnect dafoxia´s and Natenoms server.

#----------------------------------------------------------
#   connection configuation
#----------------------------------------------------------
@server1_name = "soa.chickenkiller.com"
@server1_port = 64739
@server1_bitrate = 72000
@server1_channel = "Interconnect Room"
@server1_awaychan = "Interconnect Away"
@server1_time2away = 20
@server1_time2disconnect = 50
@server1_BotName = "IC_Server1"
@server2_name = "mumble.natenom.com"
@server2_port = 64738
@server2_bitrate = 72000
@server2_channel = "Interconnect Room"
@server2_awaychan = "Interconnect Away"
@server2_time2away = 20
@server2_time2disconnect = 50
@server2_BotName = "IC_Server2"

#----------------------------------------------------------
#   ensure that all names are allowed on the server and
#   all channels exists!
#   otherwise the bot will stutter or stop to work!
#----------------------------------------------------------

Channel structure on both Mumble servers

Both servers must have the following channels in their tree:

  • Server1:
  • Server2:

Run the bot

cd
cd rumble-bots
rvm use @interconnect
ruby Interconnect.rb

After the next login one must run the first line again in order to establish the neccessary environment for the bot.

Alternative

Here you can find an alternative setup for two normal Mumble clients which is much more complicated :P

en/mumble/audiobots/interconnect-bot-mumble-ruby.txt · Last modified: 2017/02/16 15:02 by Natenom