Frequently Asked Questions¶
This section tries to cover all questions you may have as a plugin developer. (If you are a user, check out the User FAQ instead.)
Where can I find the user who called a command?¶
The msg object passed to all event method as well as command methods is an
supybot.ircmsgs.IrcMsg object, which stores the content of the
message, the nick and hostname of its author, etc. Check the documentation of
supybot.ircmsgs.IrcMsg to see all available attributes.:w
Where can I find the hostname from a user’s nick?¶
The irc object passed to all event method as well as command methods is an
supybot.irclib.Irc object, use
irc.state.nickToHostmask