2018-09-30 11:00:59 +00:00
|
|
|
# Events
|
|
|
|
Below is a list of each event that is propagated through BitBot and the keyword arguments (and their types!) that come with them.
|
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## Newly created objects
|
2018-09-30 11:07:00 +00:00
|
|
|
#### new.user
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### new.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### new.server
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## Default events
|
2018-09-30 11:07:00 +00:00
|
|
|
#### raw.[command]
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), last (string), prefix (IRCPrefix), args (string[]), arbitrary (string), tags (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.numeric.[numeric]
|
2018-09-30 10:56:54 +00:00
|
|
|
> line (string), server (IRCServer), tags (dict), last (string), line_split (string[]), number (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.[command]
|
2018-09-30 10:56:54 +00:00
|
|
|
> line (string), line_split (string[]), command (string), server (IRCServer), tags (dict), last (string)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## RPL_ISUPPORT
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.numeric.005
|
2018-09-30 10:56:54 +00:00
|
|
|
> isupport (string), server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## Channel topics
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.numeric.332
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), server (IRCServer), topic (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.numeric.333
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), setter (string), set_at (int), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.topic
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), server (IRCServer), topic (string), user (IRCUser)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## User activity in a channel
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.join
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), user (IRCUser), server (IRCServer), account (string), realname (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.part
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), reason (string), user (IRCUser), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.kick
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), reason (string), target_user (IRCUser), user (IRCUser), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.quit
|
2018-09-30 10:56:54 +00:00
|
|
|
> reason (string), user (IRCUser), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.invite
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), target_channel (string), server (IRCServer), target_user (IRCUser)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.join
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), server (IRCServer), account (string), realname (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.part
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), reason (string), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.kick
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), reason (string), user (IRCUser), server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## NICK
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.nick
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), new_nickname (string), old_nickname (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.nick
|
2018-09-30 10:56:54 +00:00
|
|
|
> new_nickname (string), old_nickname (string), user (IRCUser), server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## Channel/user modes
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.mode
|
2018-09-30 10:56:54 +00:00
|
|
|
> modes, server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.mode.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> modes, mode_args, channel (IRCChannel), server (IRCServer), user (IRCUser)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## IRCv3
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.cap.ls
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), capabilities (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.cap.new
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), capabilities (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.cap.del
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), capabilities (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.cap.ack
|
2018-09-30 10:56:54 +00:00
|
|
|
> server (IRCServer), capabilities (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.authenticate
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.tagmsg.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> channel (IRCChannel), user (IRCUser), tags (dict), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.tagmsg.private
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), tags (dict), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.away.on
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer), message (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.away.off
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.account.login
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer), account (string)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.account.logout
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## PRIVMSG (private/channel)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.message.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), channel (IRCChannel), message (string), message_split (string[]), server (IRCServer), tags (dict), action (bool)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.message.private
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), message (string), message_split (string[]), server (IRCServer), tags (dict), action (bool)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.message.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), message_split (string[]), channel (IRCChannel), action (bool), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### self.message.private
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), message_split (string[]), user (IRCUser), action (bool), server (IRCServer)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## NOTICE (private/channel/server)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.server-notice
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), message_split (string[]), server (IRCServer)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.notice.channel
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), message_split (string[]), user (IRCUser), server (IRCServer), channel (IRCChannel), tags (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.notice.private
|
2018-09-30 10:56:54 +00:00
|
|
|
> message (string), message_split (string[]), user (IRCUser), server (IRCServer), tags (dict)
|
2018-09-30 10:43:52 +00:00
|
|
|
|
2018-09-30 10:59:37 +00:00
|
|
|
## !commands
|
2018-09-30 11:07:00 +00:00
|
|
|
#### preprocess.command
|
2018-09-30 10:56:54 +00:00
|
|
|
> hook (EventCallback), user (IRCUser), server (IRCServer), target (IRCUser|IRCChannel), is_channel (bool), tags (dict)
|
2018-09-30 11:07:00 +00:00
|
|
|
#### received.command
|
2018-09-30 10:56:54 +00:00
|
|
|
> user (IRCUser), server (IRCServer), target (IRCUser|IRCChannel), args (string), args_split (string[]), stdout, stderr, command (string), is_channel (bool), tags (dict)
|