0.0.27 • Published 4 months ago
hischool.js v0.0.27
hischool.js
hischool.js is a JavaScript (TypeScript) library for interacting with Hischool.
Example Usage
// esm / typescript
import { Client } from "hischool.js";
// ...or commonjs
const { Client } = require("hischool.js");
let client = new Client();
client.on("ready", async () =>
console.info(`Logged in as ${client.user.username}!`)
);
client.on("messageCreate", async (message) => {
if (message.content === "hello") {
message.channel.sendMessage("world");
}
});
client.loginBot("..");
Reactivity with Signals & Solid.js Primitives
All objects have reactivity built-in and can be dropped straight into any Solid.js project.
const client = new Client();
// initialise the client
function MyApp() {
return (
<h1>Your username is: {client.user?.username ?? "[logging in...]"}</h1>
);
}
0.0.20
6 months ago
0.0.21
6 months ago
0.0.22
6 months ago
0.0.23
6 months ago
0.0.24
5 months ago
0.0.25
5 months ago
0.0.19
6 months ago
0.0.26
5 months ago
0.0.27
4 months ago
0.0.18
8 months ago
0.0.10
9 months ago
0.0.11
9 months ago
0.0.12
9 months ago
0.0.13
9 months ago
0.0.14
9 months ago
0.0.15
8 months ago
0.0.16
8 months ago
0.0.17
8 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
11 months ago
0.0.1
11 months ago