Overview
rebootpy supports two types of messages:- Friend Messages - Direct messages between friends
- Party Messages - Messages in party chat
Message Classes
FriendMessage
Represents a message from a friend. Attributes:client- The client instanceauthor- The Friend who sent the messagecontent- The message text (up to 256 characters)created_at- When the message was received (UTC datetime)
PartyMessage
Represents a message in party chat. Attributes:client- The client instanceauthor- The PartyMember who sent the messagecontent- The message text (up to 256 characters)party- The ClientParty where the message was sentcreated_at- When the message was received (UTC datetime)
Receiving Messages
Friend Messages
Party Messages
Sending Messages
Send to Friend
Send to Party
Replying to Messages
Message Length Limit
Messages are limited to 256 characters. Longer messages will raise an error:Command Patterns
Simple Command Handler
Command with Arguments
Party Command Handler
Conversation Flow
Ask and Wait for Response
Multi-step Conversation
Message Filtering
Ignore Bot Messages
Whitelist System
Spam Protection
Auto-responder Patterns
Keyword Auto-response
Away Message
Auto-forward Messages
Message Logging
Simple Logger
Database Logging
Party Chat Management
Announce Member Joins
Party Chat Commands
Best Practices
Check message length
Always ensure messages are under 256 characters
Ignore own messages
Filter out
message.author.id == client.user.id to avoid loopsUse timeouts
When using
wait_for(), always set a timeoutHandle errors gracefully
Catch
ChatError and other exceptionsCommon Issues
Message Loops
Avoid infinite loops by not replying to own messages:Message Too Long
Split long messages:Next Steps
Friends
Learn about friend management
Parties
Understand party chat context
Events
Handle message events
Commands Extension
Use the commands extension for advanced command handling