Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct { *ningen.State Account store.Account // contains filtered or unexported fields }
Session is a Discord SMS gateway session.
func NewSession ¶
func NewSession(store store.AccountStore, sms twisms.MessageSender, logger *slog.Logger) *Session
NewSession creates a new session.
func (*Session) Execute ¶
func (s *Session) Execute(ctx context.Context, req *twicmdproto.ExecuteRequest) (*twicmdproto.ExecuteResponse, error)
Execute executes the given command.
Click to show internal directories.
Click to hide internal directories.