kaguya v0.5.1 Kaguya.Module.Core

Core builtin functions necessary for the bot to be function. This module is always loaded into the bot.

Summary

Functions

Adds a user to a channel

Changes a user’s mode internally in a channel

Changes a user’s nick internally in a channel

Joins all channels initially specified in the configuration

Logs a PRIVMSG to a channel, or ignores it if it’s a PM

Sends a PONG response to the PING command

Remove a user from all channels

Removes a user from a channel

Resends the nick command with an appended “_” if the NICK command fails

Adds users to a channel

Functions

addNickToChan(map, arg)

Adds a user to a channel

changeUserMode(map, arg)

Changes a user’s mode internally in a channel.

changeUserNick(map, arg)

Changes a user’s nick internally in a channel.

joinInitChans(arg1, arg2)

Joins all channels initially specified in the configuration

logMessage(map, arg)

Logs a PRIVMSG to a channel, or ignores it if it’s a PM.

module_init()
module_load()
module_unload()
on_message(msg)
pingHandler(arg1, arg2)

Sends a PONG response to the PING command.

removeNickFromAllChans(map, arg)

Remove a user from all channels.

removeNickFromChan(map, arg)

Removes a user from a channel

retryNick(map, arg)

Resends the nick command with an appended “_” if the NICK command fails.

setChanNicks(map, arg)

Adds users to a channel

start_link(opts \\ [])