Module @guildedts/framework

Guilded.TS

About

@guildedts/framework is a powerful framework for creating a Guilded bot.

Links

Installation

  • npm i @guildedts/framework guilded.ts
  • yarn add @guildedts/framework guilded.ts
  • pnpm add @guildedts/framework guilded.ts

Example usage

commands/echo.js:

import { Command, StringArgument } from '@guildedts/framework';
// Or
const { Command, StringArgument } = require('@guildedts/framework');

class Echo extends Command {
description = 'Echo a message.';
arguments = [
class extends StringArgument {
name = 'content';
description = 'The content to echo.';
},
];

execute(message, { content }) {
return message.reply(content);
}
}

export default Echo;
// Or
module.exports = Echo;

Start the bot:

# Start the bot
gts start
# Start the bot in development mode
gts dev

Maintained by Gamertike | Contribute

References

Renames and re-exports Client