blob: 0724ab82a91b92cf60df73d37daabd1f5f7a217e (
plain) (
tree)
|
|
# ircbot admin bot
Everything is supposed to be ran inside a remote IEx console: `./bin/lsg remote`.
## Connection management
### List Connections
IRC.Connection.connections()
### Add Connection
conn = %{nick: "nick", user: "user", name: "user", network: "netname", host: "irc.netname.org", tls: true, port: 6697}
IRC.Connection.add_connection(conn)
### Start Connection
IRC.Connection.start_connection(connection_id)
### Stop Connection
IRC.Connection.stop_connection(connection_id)
### Delete Connection
IRC.Connection.delete_connection(connection_id)
## Plugin management
### Enabled plugins
IRC.Plugin.enabled()
### Enable or Disable a plugin
IRC.Plugin.disable(plugin_module_or_name)
IRC.Plugin.enable(plugin_module_or_name)
IRC.Plugin.switch(plugin_module_or_name)
### Declare a plugin
IRC.Plugin.declare(module)
|