@weeble/sdk
v0.1.1
Published
TypeScript bindings for scripts running on Weeble.
Readme
Weeble SDK
TypeScript bindings for scripts running on Weeble.
npm install @weeble/sdkimport discord from '@weeble/sdk/discord';
import weeble from '@weeble/sdk/runtime';
const commands = discord.command.group({ defaultPrefix: '!' });
commands.command(
{ name: 'ping', description: 'Check whether the bot is online.' },
() => ({}),
async (message) => {
await message.reply('Pong!');
},
);
void weeble;These imports are provided by the Weeble runtime. Installing the package gives local TypeScript projects the same module names and declarations used during a Weeble build.
The older @weeble/discord and @weeble/runtime imports remain supported.
