kaguya v0.1.3 Kaguya.Module.Builtin

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)

Adds a user to a channel

changeUserMode(map)

Changes a user’s mode internally in a channel.

changeUserNick(map)

Changes a user’s nick internally in a channel.

handle_message(arg, state)
joinInitChans(message)

Joins all channels initially specified in the configuration

logMessage(message)

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

pingHandler(message)

Sends a PONG response to the PING command.

removeNickFromAllChans(map)

Remove a user from all channels.

removeNickFromChan(map)

Removes a user from a channel

retryNick(map)

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

setChanNicks(map)

Adds users to a channel

start_link(opts \\ [])