@guildedts/framework

0.2.14 • Public • Published

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

Package Sidebar

Install

npm i @guildedts/framework

Weekly Downloads

2

Version

0.2.14

License

Apache-2.0

Unpacked Size

75.6 kB

Total Files

48

Last publish

Collaborators

  • gamertike