mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
chore: fancy stuff
This commit is contained in:
parent
94cfd9805c
commit
61cb7b26fb
@ -17,6 +17,8 @@ pnpm add @oasisjs/biscuit
|
||||
yarn add @oasisjs/biscuit
|
||||
```
|
||||
|
||||
get a quick bot: `deno run --allow-net https://crux.land/2CENgN [token]`
|
||||
|
||||
The biscuit Discord library is built ontop of Discordeno and webspec APIs, we aim to provide portability. Join our
|
||||
[Discord](https://discord.gg/zmuvzzEFz2)
|
||||
|
||||
|
18
hello.ts
Normal file
18
hello.ts
Normal file
@ -0,0 +1,18 @@
|
||||
// Biscuit Discord library showcase
|
||||
|
||||
import Biscuit, { GatewayIntents } from "https://deno.land/x/biscuit/mod.ts";
|
||||
|
||||
const intents = GatewayIntents.MessageContent | GatewayIntents.Guilds | GatewayIntents.GuildMessages;
|
||||
const session = new Biscuit({ token: Deno.args[0], intents });
|
||||
|
||||
session.on("ready", ({ user }) => {
|
||||
console.log("Logged in as: %s!\nUse !ping to get a reply", user.username);
|
||||
});
|
||||
|
||||
session.on("messageCreate", (message) => {
|
||||
if (message.content.startsWith("!ping")) {
|
||||
message.reply({ content: "pong!" });
|
||||
}
|
||||
});
|
||||
|
||||
session.start();
|
Loading…
x
Reference in New Issue
Block a user