{"id":20423554,"url":"https://github.com/unusualabsurd/discordjs-games","last_synced_at":"2026-04-16T23:01:22.412Z","repository":{"id":115432361,"uuid":"431394566","full_name":"UnusualAbsurd/discordjs-games","owner":"UnusualAbsurd","description":"Create games easily from discord.js client using this package!","archived":false,"fork":false,"pushed_at":"2021-11-25T03:40:13.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T14:44:49.394Z","etag":null,"topics":["discord-games","discordjs-fun","discordjs-games","djs-game"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@unusualabsurd/discordjs-games","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnusualAbsurd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-24T07:56:59.000Z","updated_at":"2021-11-25T03:40:16.000Z","dependencies_parsed_at":"2023-07-21T21:22:01.442Z","dependency_job_id":null,"html_url":"https://github.com/UnusualAbsurd/discordjs-games","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnusualAbsurd%2Fdiscordjs-games","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnusualAbsurd%2Fdiscordjs-games/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnusualAbsurd%2Fdiscordjs-games/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnusualAbsurd%2Fdiscordjs-games/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnusualAbsurd","download_url":"https://codeload.github.com/UnusualAbsurd/discordjs-games/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241966986,"owners_count":20050324,"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":["discord-games","discordjs-fun","discordjs-games","djs-game"],"created_at":"2024-11-15T07:06:55.898Z","updated_at":"2026-04-16T23:01:17.357Z","avatar_url":"https://github.com/UnusualAbsurd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003ediscordjs-games\u003c/h1\u003e\n  \u003cimg src=\"https://global-uploads.webflow.com/5e157548d6f7910beea4e2d6/604150249dd5c6c6dad513a4_grbirDygHnFrmvJI3JdoogDOaenIiZyJk60OEXEqwvhWWAgWtstyEq0dZVCC4hXrErHPhQleQ-bWtW7t3gr5vVyWJAbeyeSVJd84nENcuOYJ4z4a2Q6BXo5IpZNP7ddBdNMpTfx5.png\" alt=\"Wumpus Gaming\" width=\"256\" height=\"256\"\u003e\n  \n  \u003ch3\u003eCreate games easily from discord.js client using this package!\u003c/h3\u003e\n\u003c/div\u003e\n\n## Requirements\n```diff\n+ discord.js version 13\n+ node.js v16.6+\n```\n\n# Setup basic discord.js client starter pack and the VoiceChatGame client\n### \u003ca href=\"discordjs.guide\" target=\"__blank\"\u003eFull discord.js guide\u003c/a\u003e\n\n```js\nconst Discord = require('discord.js');\nconst { VoiceChatGame } = require('@unusualabsurd/discordjs-games')\n\nconst client = new Discord.Client({\n    intents: 32767\n})\n\nconst prefix = \"YOUR_PREFIX_HERE\"\n\nclient.on('ready', () =\u003e console.log(`Logged in as ${client.user.tag}`));\n\n\nconst vcGame = new VoiceChatGame(client);\n\nclient.on('messageCreate', async message =\u003e {\n    if(message.author.bot || !message.guild || !message.content.startsWith(prefix)) return;\n    \n    const [cmd, ...args] = message.content.slice(prefix.length)\n    .trim()\n    .split(/ +/g)\n\n    const command = cmd.toLowerCase();\n    \n    if(command === 'youtube') {\n        // Code Here\n    }\n})\n```\n\n## Creating the games\n```js\nif(command === 'youtube') {\n    // message.member.voice.channel = the voice channel the user is in\n    vcGame.createGame(message.member.voice.channel, 'youtube')\n    .then(g =\u003e message.reply(`Invite Link: ${g.invite} | Invite Code: ${g.code}`))\n}\n```\n\n# Scramble Game\n```js\nconst { scrambleGame } = require('@unusualabsurd/discordjs-games')\n\nif(command === 'scramble') {\n    // Time option must be a number and it is read as milliseconds\n    scrambleGame(message, null, { time: 30 * 1000 })  \n}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funusualabsurd%2Fdiscordjs-games","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funusualabsurd%2Fdiscordjs-games","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funusualabsurd%2Fdiscordjs-games/lists"}