1.3.8 • Published 3 years ago

snowyjs v1.3.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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');
1.1.1

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.2.7

3 years ago

1.0.0

3 years ago