0.2.14 • Published 3 years ago

@guildedts/framework v0.2.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years 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

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago