snowyjs

1.3.8 • Public • Published

SnowyJS, snowy.js is a package that make it possible to startup a nodejs ( discord.js ) project within a few seconds.

TypeScript / NodeJS / Discord.js Usage:

const { botready, snowyjs, ping, math } = require("snowyjs");
const discord = require("discord.js");
const fs = require("fs");
const ms = require("ms")

const bot = new discord.Client();

bot.on("ready", () => {
  botready();
  snowyjs();
});

bot.on('message', msg => {
  if (msg.content === 'ping') {
    msg.reply('pong');
    ping();
  }
});

bot.on('message', msg => {
  if (msg.content === 'math') {
      var answer = math(args[0], args[1])
    msg.reply(answer);
  }
});

bot.login('BOT TOKEN HERE');

Package Sidebar

Install

npm i snowyjs

Weekly Downloads

2

Version

1.3.8

License

ISC

Unpacked Size

1.45 kB

Total Files

3

Last publish

Collaborators

  • snowyjs