SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import * as Discord from "discord.js";
  2. import { IBotCommand } from "../api";
  3.  
  4. export default class testCommand implements IBotCommand {
  5.    
  6.     private readonly _command = "testCommand"
  7.  
  8.     help(): string {
  9.         return "This command is a piece of crap to be honest. Good luck using it.";
  10.     }
  11.    
  12.     isThisCommand(command: string): boolean {
  13.         return command === this._command;
  14.     }
  15.    
  16.     async runCommand(args: string[], msgObject: Discord.Message, client: Discord.Client): Promise<void> {
  17.        
  18.         //Let us know it all went well!
  19.         msgObject.channel.send("Hi big daddy, this command is working. DEV ONLY! DON'TRY IF YOU AINT A DEV")
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top