Credits to Rui, Liane
:ai [question]
- Ask the chatbot a question, and it will generate a response using the AI API.- Example:
:ai How does photosynthesis work?
- Example:
Get the bot's current command prefix.
- Example:
prefix
View a list of available commands and their descriptions.
- Example:
:help
addUserToDB(api: object, userID: string): void
- Add a user to the SQLite database with the provided user ID.- Example usage:
addUserToDB(api, "1234567890");
- Example usage:
listUsers(api: object): void
- List users in the current SQLite database.- Example usage:
listUsers(api);
- Example usage:
getThreadInfo(threadID: string): object | null
- Get information about a thread from the SQLite database.- Example usage:
getThreadInfo("987654321");
- Example usage:
getUserInfo(userID: string): object | null
- Get information about a user from the SQLite database.- Example usage:
getUserInfo("1234567890");
- Example usage:
box.react(emoji: string): void
- React to the current message with a specified emoji.- Example usage:
box.react("😊");
- Example usage:
box.reply(msg: string): void
- Reply to the current message with a specified text.- Example usage:
box.reply("Hello, World!");
- Example usage:
box.add(uid: string): void
- Add a user with the given UID to the current group chat.- Example usage:
box.add("1234567890");
- Example usage:
box.kick(uid: string): void
- Remove a user with the given UID from the current group chat.- Example usage:
box.kick("1234567890");
- Example usage:
box.send(msg: string): void
- Send a message to the current thread without replying to a specific message.- Example usage:
box.send("Hello, World!");
- Example usage: