1.0.73 • Published 4 years ago

discord-rw v1.0.73

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

DiscordRW

Quick Start

JavaScript

const { Client, Status, addCommand, log } = require('discord-rw');

const client = new Client([PREFIX]);

client.on('ready', () => {
    client.setStatus(Status.WATCHING, 'Status');
})

client.useAutoHelp();

Discord.addCommand({ 
    name: "name", 
    desc: "description", 
    trigger: (msg, args) => {
        log(args);  // To view these logs type 'logs' when the bot terminal shows up
    }}
)

client.handleCommands();  // Handle the commands

client.login([BOT_TOKEN]);

TypeScript

import { Client, Status, addCommand, Message, log } from 'discord-rw';

const client = new Client([PREFIX]);

client.on('ready', () => {
    client.setStatus(Status.WATCHING, 'Status');
})

client.useAutoHelp();

addCommand({ 
    name: "name", 
    desc: "description", 
    trigger: (msg : Message, args : string[]) => {
        log(args);  // To view these logs type 'logs' when the bot terminal shows up
    }}
)

client.handleCommands(); // Handle the commands

client.login([BOT_TOKEN]);

Using the bot terminal

Commands

  • commands : List commands
  • events : List events
  • logs : List everything written to log() method
  • exit : Exit the bot

Using the source

DiscordRW is written over DiscordJS meaning you can still access DiscordJS through the Source object.

1.0.73

4 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago