This commit is contained in:
Jacob Nguyen
2023-11-05 22:52:37 -06:00
parent bcac9e4457
commit d65d63b316
10 changed files with 8086 additions and 6 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.*
node_modules/**/*

View File

@@ -1 +0,0 @@
yarnPath: .yarn/releases/yarn-3.6.3.cjs

View File

@@ -5,7 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"scripts": {
"bundle": "microbundle --target node",
"bundle": "microbundle --target node",
"watch": "microbundle watch",
"test": "microbundle --target node && node ./test/index.test.mjs"
},
@@ -22,8 +22,6 @@
"microbundle": "^0.15.1",
"typescript": "^5.0.4"
},
"peerDependencies": {
},
"keywords": [],
"author": "",
"license": "ISC"

2
packages/poster/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
dist/
.shadow-cljs

View File

@@ -0,0 +1 @@
57733

View File

@@ -0,0 +1,16 @@
{
"name": "poster",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"shadow-cljs": "^2.8.52",
"source-map-support": "^0.5.13"
},
"keywords": [],
"author": "",
"license": "ISC"
}

View File

@@ -0,0 +1,11 @@
;; shadow-cljs configuration
{:source-paths
["src"]
:dependencies
[]
:builds
{:poster {:target :node-library
:output-to "dist/index.js"
:exports-var core.poster/add}}}

View File

@@ -0,0 +1,16 @@
(ns core.poster)
(def base-url (new js/URL "https://discord.com/api/v10/applications/"))
(def excluded-keys #{ "command" "absPath" })
(defn make-global [appid token]
"makes a url which posts to global"
(new js/URL (str appid "/commands") base-url))
(defn poster [ appid token]
(let [global-url (make-global appid token)]
#js {
}))

View File

@@ -4,10 +4,10 @@
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs"
"import": "./dist/index.mjs"
},
"./djs": {
"import": "./dist/djs/index.mjs"
"import": "./dist/djs/index.mjs"
}
},
"version": "0.0.3-alpha",

8036
yarn.lock

File diff suppressed because it is too large Load Diff