Nexus

From Botdom Documentation

Jump to: navigation, search
Read general information about Nexus on the Botdom Wiki.

Installing Ruby

You can download the Ruby programming language from

  • Here: http://www.ruby-lang.org/en/downloads/
  • Then either compile or run it depending on if you downloaded the installer
    • (You most likely downloaded the Windows Installer)
  • On Ubuntu or Debian, you can use apt-get to install rdoc, irb and ruby
    • sudo apt-get install rdoc ruby irb

Setting up Nexus

You can Download Nexus from Nexus if you havent already. Then you have to try to set up your bot's options.

  • You must edit the file 'config.txt'. Make sure the string values such as username and password are in " ' quotes ' " and the rooms are an ["Array", "with", "each", "Room", "In", "Quotes"] Also, if you edit the $autorejoin or $ai variables, it is either TRUE or FALSE with NO QUOTES

Example below:

$username = "Manjy-Bot"
$password = "OnionRings"
$owner = "ManjyomeThunder"
$trigger = "$"
$autorejoin = true
$ai = true
$homerooms = ["Botdom", "iRPG"]

Easy peasy.

More?

Plugins are placed in the plugin directory. A simple example is shown below.

class C_Example < Command
	def startup
		self::info('ManjyomeThunder', '0.1', 'Example plugin.') # Author, Version, Help Info
		self::init(true, 25) #Status (Boolean), Priv (numeric)
	end
	def exec
		#Command Code
		$dAmn::msg(@f + 'this is an example, woo!', @c)
	end
end
Plugin::addCmd('example', C_Example)

Commands are classes which extend the Command class. You used Plugin::addCmd to add a new instance of the command to the command hash. Use Plugin::addEvt for events and Plugin::addRegex for regular expression commands (Not yet tested).

Personal tools