This commit is contained in:
sam 2024-04-23 20:37:20 +02:00
commit 8ca9b01243
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
30 changed files with 1885 additions and 0 deletions

16
packages/cli/package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "cli",
"dependencies": {
"foxchat.js": "workspace:^"
},
"devDependencies": {
"tsx": "^3.12.7",
"typescript": "^5.1.6"
},
"scripts": {
"build": "tsc",
"dev": "tsx --watch --conditions=development src/index.ts",
"start": "node build/index.js"
},
"type": "module"
}

11
packages/cli/src/index.ts Normal file
View file

@ -0,0 +1,11 @@
import { Client } from "foxchat.js";
const client = new Client({
instance: "id.fox.localhost",
token: "NbV7gaEZaTnhJFF19tt5IkOsscAWkKhuLk7WdkIPfmM",
debug: true,
});
(async () => {
await client.connect();
})();

View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"moduleResolution": "NodeNext",
"module": "NodeNext",
"outDir": "build",
"strict": true,
"target": "ES2022",
"allowSyntheticDefaultImports": true
}
}