Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement