Skip to content

About

Example Root Apps and Bots

Resources

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Root developer samples

This repository contains a collection of example Root Apps and Bots.

Repository structure

Samples repository
│
├── Apps
│   ├── sample-app
│   │   ├── client
│   │   │   └── src
│   │   ├── server
│   │   │   └── src
│   │   └── networking
│   │       └── src
│   │
│   └── (other samples)
│
└── Bots
    ├── sample-bot
    │   └── src
    │
    └── (other samples)

Sample Apps

Sample Description
HelloWorld Echoes messages back to clients. The simplest App with no persistence.
ProtobufService Community voting between two options. Demonstrates building a service without persistence.
DataStorage Simple task list with persistence. Shows three data-access implementations: in-memory, Knex + SQLite, and Prisma + SQLite.
CommunityLog Demonstrates the Community Log API for writing audit/activity logs.
SuggestionBox Shared suggestion box with voting. Shows client UI, multiple services, and database persistence.
Themes Visual theme customization. Demonstrates applying custom themes to the client UI.
TicTacToe Multiplayer Tic Tac Toe game. Features AI opponent, online matchmaking, spectator mode, and leaderboard.
AudioPlayer Plays a music track and a sound effect bundled with the client. Shows where audio files live in the package and how to play them with an <audio> element.
Localization Shared like counter shown in the member's language. Shows translation tables, plurals, Intl formatting, translated server errors and a build-time translation check.

To run a sample App, follow the steps to build and test an App.

Sample Bots

Sample Description
HelloWorld Echoes messages back to the originating channel. The simplest Bot.
AllChannelBroadcast Broadcasts a message to all text channels. Demonstrates enumerating channel groups and channels.
NewMemberWelcome Posts a welcome message when a new member joins. Shows handling the member-joined event.
RoleList Lists community roles and member roles. Shows retrieving role information.
RoleAssignment Auto-assigns a role to members who post messages. Shows programmatic role assignment.
ResetChannelDescription Clears a voice channel's description when empty. Demonstrates WebRTC participant events.
VoiceCount Keeps a live count of participants in a voice channel's description. Shows both WebRTC join and leave events.
Notifications Sends a notification to the member who requested it. Shows the notification API, the title and description limits, and how to detect a send that reached nobody.

To run a sample Bot, follow the steps to build and test a Bot.

About

Example Root Apps and Bots

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages