Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including vnft-commandhandler with all npm packages installed. Try it out:

const { CommandHandler, Command } = require("vnft-commandhandler"); const axios = require("axios"); const client = new CommandHandler(); const Discord_Token = "Discord Token"; client.prefix = "!"; const pingCommand = new Command(); pingCommand.name = "ping"; pingCommand.funct = (bot, message, args) => { message.reply("Pong!"); }; const neko = new Command(); neko.name = "neko"; neko.addAlias("cat"); neko.funct = async (bot, message, args) => { var meow = await axios.get("http://aws.random.cat/meow"); message.reply(meow.data.file); }; const activity = new Command(); activity.name = "setActivity"; activity.addAlias("activity"); activity.funct = async (bot, message, args) => { await bot.user.setActivity(args); message.reply(`Status Updated`); }; client.addCommand(pingCommand); client.addCommand(neko); client.addCommand(activity); client.login(Discord_Token);

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vnft-commandhandler v1.2.0

Discord CommandHandler for TypeScript or JavaScript

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free