xbot/mods/lua/README.md

37 lines
515 B
Markdown
Raw Normal View History

2024-03-02 08:11:50 +00:00
# API
## Lua Commands
2024-03-02 08:16:58 +00:00
### `raw(message)`
2024-03-02 08:11:50 +00:00
Sends a raw message to the server.
2024-03-02 08:16:58 +00:00
### `privmsg(to, message)`
2024-03-02 08:11:50 +00:00
Sends a message to a channel or user.
2024-03-02 08:16:58 +00:00
### `notice(to, message)`
2024-03-02 08:11:50 +00:00
Sends a notice to a channel or user.
2024-03-02 08:16:58 +00:00
### `join(channel)`
2024-03-02 08:11:50 +00:00
Joins a channel.
2024-03-02 08:16:58 +00:00
### `part(channel, reason)`
2024-03-02 08:11:50 +00:00
Leaves a channel.
2024-03-02 08:16:58 +00:00
### `kick(channel, user, reason)`
2024-03-02 08:11:50 +00:00
Kicks a user from a channel. Reason is optional.
2024-03-02 08:16:58 +00:00
### `mode(channel, mode, target)`
2024-03-02 08:11:50 +00:00
Sets a mode on a channel.
2024-03-02 08:16:58 +00:00
### `ctcp(to, message)`
2024-03-02 08:11:50 +00:00
Sends a CTCP message to a channel or user.