Discord.js Snowflake
Simple discord.js framework.
Note: This package is under development. Do not use it in production!
Installing
$ npm install discord.js-snowflake
Example
index.js
const Discord = ;const client = defaultPrefix: "!" ignoreBots: true commandsDir: __dirname + "/commands" eventsDir: __dirname + "/events" handleCommands: true // set this to false if you want to handle it manually. If true, it runs command handler in every msg loadDefaultCommands: true owner: "YOUR_DISCORD_ID" logErrors: true commandErrorMessage: "❌ | Something went wrong while running command **{{command}}**\n```xl\n{{error}}\n```" commandNotFound: "❌ | Command **{{command}}** not found!";
events/ready.js
{ thisclient = client; } { console; } moduleexports = Ready;
commands/avatar.js
const Command MessageEmbed = ; { superclient name: "avatar" aliases: "av" description: "Shows avatar of the user" ; } async { const user = messagementionsusers || messageauthor; const avatar = user; const embed = ; return messagechannel; } moduleexports = Avatar;
Default Commands Available
- ping
- eval