mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
feat: better readme ig
This commit is contained in:
parent
4dd48d9bb4
commit
4d4d12342a
@ -40,12 +40,10 @@ that you should not make software that does things it is not supposed to do.
|
||||
### Example bot (TS/JS)
|
||||
|
||||
```js
|
||||
import { GatewayIntents, Session } from "@oasisjs/biscuit";
|
||||
|
||||
const token = "your token goes here";
|
||||
import Biscuit, { GatewayIntents } from "@oasisjs/biscuit";
|
||||
|
||||
const intents = GatewayIntents.MessageContent | GatewayIntents.Guilds | GatewayIntents.GuildMessages;
|
||||
const session = new Session({ token, intents });
|
||||
const session = new Biscuit({ token: "your token", intents });
|
||||
|
||||
session.on("ready", ({ user }) => {
|
||||
console.log("Logged in as:", user.username);
|
||||
|
6319
biscuit.js
Normal file
6319
biscuit.js
Normal file
File diff suppressed because it is too large
Load Diff
50
egg.json
50
egg.json
@ -1,27 +1,27 @@
|
||||
{
|
||||
"$schema": "https://x.nest.land/eggs@0.3.10/src/schema.json",
|
||||
"name": "biscuit",
|
||||
"entry": "./mod.ts",
|
||||
"description": "A brand new bleeding edge non bloated Discord library",
|
||||
"homepage": "https://github.com/oasisjs/biscuit",
|
||||
"version": "0.1.0",
|
||||
"releaseType": "patch",
|
||||
"unstable": false,
|
||||
"unlisted": false,
|
||||
"files": [
|
||||
"./packages/**/*",
|
||||
"./mod.ts",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"ignore": [
|
||||
"npm",
|
||||
"build.ts",
|
||||
"scripts.ts",
|
||||
".git"
|
||||
],
|
||||
"checkFormat": true,
|
||||
"checkTests": false,
|
||||
"checkInstallation": false,
|
||||
"check": true
|
||||
"$schema": "https://x.nest.land/eggs@0.3.10/src/schema.json",
|
||||
"name": "biscuit",
|
||||
"entry": "./mod.ts",
|
||||
"description": "A brand new bleeding edge non bloated Discord library",
|
||||
"homepage": "https://github.com/oasisjs/biscuit",
|
||||
"version": "0.1.1",
|
||||
"releaseType": "patch",
|
||||
"unstable": false,
|
||||
"unlisted": false,
|
||||
"files": [
|
||||
"./packages/**/*",
|
||||
"./mod.ts",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"ignore": [
|
||||
"npm",
|
||||
"build.ts",
|
||||
"scripts.ts",
|
||||
".git"
|
||||
],
|
||||
"checkFormat": true,
|
||||
"checkTests": false,
|
||||
"checkInstallation": false,
|
||||
"check": true
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
* this example should work on most systems, but if it doesn't just clone the library and import everything from mod.ts
|
||||
*/
|
||||
|
||||
const { GatewayIntents, Session } = require("@oasisjs/biscuit");
|
||||
const { GatewayIntents, Session } = require("../mod.ts");
|
||||
|
||||
// if it didn't worked use:
|
||||
// const { GatewayIntents, Session } = require("@oasisjs/biscuit");
|
||||
|
Loading…
x
Reference in New Issue
Block a user