Skip to content

Kisscord

In-game messaging platform (Discord-like). Create users, manage friends, and send messages.

No permission required.

Methods

createUser(options)

Create a Kisscord user.

typescript
Kisscord.createUser({
    id: "informant",
    username: "shadow_runner",
    avatar: "./assets/informant.png",
});

addFriend(userId)

Add a user as a friend (shows in contacts).

typescript
Kisscord.addFriend("informant");

sendMessage(options)

Send a message from a user.

typescript
Kisscord.sendMessage({
    contactId: "informant",
    content: "Meet me at the usual place.",
    isMine: false,
});

changeStatus(userId, status)

Change a user's online status.

typescript
Kisscord.changeStatus("informant", "offline");

Status values: "online", "offline", "idle", "dnd"

Quest Integration

For quest-related messaging, use the KisscordChats property on the Quest class:

typescript
@RegisterQuest
class MyQuest extends Quest {

    KisscordChats = [
        {
            contactId: "informant",
            messages: [
                { content: "I have the files.", isMine: false, delayMs: 2000 },
                { content: "Send them over.", isMine: true, delayMs: 1000 },
                { content: "Check your downloads.", isMine: false },
            ],
        },
    ];

}

HotBunny Interactive Entertainment Inc.