0.2.14 • Published 1 year ago

@guildedts/framework v0.2.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago