Skip to content
nemunaire edited this page Jun 30, 2012 · 5 revisions

When you launch nemubot, you are in a simple shell in which you can type command. For the time, commands are limited to built-ins, but in the future, it will be possible to use modules to extend shell features.

Built-ins

quit or exit

Save and shutdown all modules, disconnect all servers and quit.

reset

Save and shutdhow all modules, reload the prompt and most of the code.

This doesn't reload Server code, use hotswap command for doing this after a reset.

load

Try to load a configuration file or a module.

Give to this command a relative path from the current directory to an XML file only. To load a module, just type its name, or relative path from the current directory to its XML configuration file.

Example:

nemubot§ load hello #Load the module hello
nemubot§ load modules/hello.xml #Similar to previous command
nemubot§ load bot.xml #Load servers from this file

hotswap

Refresh the code of the given Server class without breaking the connection to the IRC server.

Example:

nemubot§ hotswap irc.freenode.org:6667
irc.freenode.org:6667§ hotswap

close

Disconnect and remove a server from the list.

Example:

nemubot§ close irc.freenode.org:6667
irc.freenode.org:6667§ close

unload

Unload a module and remove it from the list.

Example:

nemubot§ unload hello

select

Select a server to avoid having to specify its name for each command.

Example:

nemubot§ select irc.freenode.org:6667
irc.freenode.org:6667§ select
nemubot§

list

Display informations about servers, modules, ...

Example:

nemubot§ list
  Please give a list to show: servers, modules, ...
nemubot§ list servers
  - irc.freenode.org:6667 ;
  - irc.quakenet.org:6667 ;
nemubot§ list modules
  - hello ;

connect

Connect to a server

Example:

nemubot§ connect irc.freenode.org:6667
irc.freenode.org:6667§ connect

join

Join a new channel.

Example:

irc.freenode.org:6667§ join #gentoo
irc.freenode.org:6667§ join #secretchannel password

leave

Leave a channel.

Example:

irc.freenode.org:6667§ leave #gentoo
irc.freenode.org:6667§ leave #secretchannel

send

Send a message on a channel.

Example:

irc.freenode.org:6667§ send #secretchannel "Hello world!"

disconnect

Disconnect from a server

Example:

irc.freenode.org:6667§ disconnect
nemubot§ disconnect irc.freenode.org:6667

zap

Reverse internal connection state without check

Example:

nemubot§ zap irc.freenode.org:6667
irc.freenode.org:6667§ zap
Clone this wiki locally