{"id":15287512,"url":"https://github.com/cesiumlabs/discord.js-snowflake","last_synced_at":"2025-10-07T01:31:36.728Z","repository":{"id":56293073,"uuid":"312805654","full_name":"CesiumLabs/discord.js-snowflake","owner":"CesiumLabs","description":"Simple discord.js framework","archived":true,"fork":false,"pushed_at":"2020-11-16T13:16:21.000Z","size":24,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-30T15:29:50.854Z","etag":null,"topics":["bot","discordjs","framework","javascript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/discord.js-snowflake","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CesiumLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-14T11:44:42.000Z","updated_at":"2023-04-13T01:33:09.000Z","dependencies_parsed_at":"2022-08-15T16:10:23.988Z","dependency_job_id":null,"html_url":"https://github.com/CesiumLabs/discord.js-snowflake","commit_stats":null,"previous_names":["devsnowflake/discord.js-snowflake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fdiscord.js-snowflake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fdiscord.js-snowflake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fdiscord.js-snowflake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fdiscord.js-snowflake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesiumLabs","download_url":"https://codeload.github.com/CesiumLabs/discord.js-snowflake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877413,"owners_count":16554878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discordjs","framework","javascript"],"created_at":"2024-09-30T15:29:52.489Z","updated_at":"2025-10-07T01:31:31.434Z","avatar_url":"https://github.com/CesiumLabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord.js Snowflake\nSimple **[discord.js](https://npmjs.com/package/discord.js)** framework.\n\n\u003e Note: This package is under development. Do not use it in production!\n\n# Installing\n\n```sh\n$ npm install discord.js-snowflake\n```\n\n# Example\n\n## index.js\n\n```js\nconst Discord = require(\"discord.js-snowflake\");\nconst client = new Discord.Client({\n    defaultPrefix: \"!\",\n    ignoreBots: true,\n    commandsDir: __dirname + \"/commands\",\n    eventsDir: __dirname + \"/events\",\n    handleCommands: true, // set this to false if you want to handle it manually. If true, it runs command handler in every msg\n    loadDefaultCommands: true,\n    owner: \"YOUR_DISCORD_ID\",\n    logErrors: true,\n    commandErrorMessage: \"❌ | Something went wrong while running command **{{command}}**\\n```xl\\n{{error}}\\n```\",\n    commandNotFound: \"❌ | Command **{{command}}** not found!\"\n});\n```\n\n## events/ready.js\n\n```js\nclass Ready {\n\n    constructor(client) {\n        this.client = client;\n    }\n\n    execute() {\n        console.log(\"Bot is online!\");\n    }\n\n}\n\nmodule.exports = Ready;\n```\n\n## commands/avatar.js\n\n```js\nconst { Command, MessageEmbed } = require(\"discord.js-snowflake\");\n\nclass Avatar extends Command {\n\n    constructor(client) {\n        super(client, {\n            name: \"avatar\",\n            aliases: [\"av\"],\n            description: \"Shows avatar of the user\"\n        });\n    }\n\n    async execute(message, args) {\n        const user = message.mentions.users.first() || message.author;\n        const avatar = user.displayAvatarURL({ dynamic: true, size: 2048 });\n\n        const embed = new MessageEmbed()\n            .setTitle(`Avatar of ${user.tag}`)\n            .setColor(\"RANDOM\")\n            .setImage(avatar);\n\n        return message.channel.send(embed);\n    }\n\n}\n\nmodule.exports = Avatar;\n```\n\n# Default Commands Available\n- ping\n- eval\n\n# Links\n### **[Discord Server](https://discord.gg/2SUybzb)**\n\n## © 2020 - **[Snowflake Studio ❄](https://snowflakedev.xyz)**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fdiscord.js-snowflake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesiumlabs%2Fdiscord.js-snowflake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fdiscord.js-snowflake/lists"}