createTrixnityBotModules

Use this module, if you want to create a bot with basic functionality. You don't have access to usual services like RoomService or UserService.

Instead, you need to manually listen to the sync events via SyncApiClient (can be received via MatrixClient.api). You can encrypt and decrypt events by iterating through all RoomEventEncryptionService (can be received via MatrixClient.roomEventEncryptionServices) and use the first non-null result.