{"id":20692210,"url":"https://github.com/developerjosh/pickle-bot","last_synced_at":"2026-04-27T03:32:08.180Z","repository":{"id":106376801,"uuid":"308917591","full_name":"DeveloperJosh/Pickle-Bot","owner":"DeveloperJosh","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-22T19:02:49.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T15:10:48.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeveloperJosh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-31T15:55:14.000Z","updated_at":"2021-01-22T19:02:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"37a5e38b-45ce-49fa-9b2a-61060326e6c9","html_url":"https://github.com/DeveloperJosh/Pickle-Bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DeveloperJosh/Pickle-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FPickle-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FPickle-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FPickle-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FPickle-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloperJosh","download_url":"https://codeload.github.com/DeveloperJosh/Pickle-Bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FPickle-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T23:19:51.317Z","updated_at":"2026-04-27T03:32:08.172Z","avatar_url":"https://github.com/DeveloperJosh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting Up Commando\n\n## Getting Super Powers\n\nHow Mr.Commando's Index.js file looks\n\n{% code title=\"Index.js\" %}\n```javascript\nconst { CommandoClient } = require('discord.js-commando');\nconst { Structures } = require('discord.js');\nconst { MessageEmbed } = require('discord.js');\nconst DBL = require(\"dblapi.js\");\nconst path = require('path');\nconst fs = require('fs');\nrequire('dotenv').config();\nStructures.extend('Guild', Guild =\u003e {\n  class MusicGuild extends Guild {\n    constructor(client, data) {\n      super(client, data);\n      this.musicData = {\n        queue: [],\n        isPlaying: false,\n        nowPlaying: null,\n        songDispatcher: null,\n        volume: 1\n      };\n      this.triviaData = {\n        isTriviaRunning: false,\n        wasTriviaEndCalled: false,\n        triviaQueue: [],\n        triviaScore: new Map()\n      };\n    }\n  }\n  return MusicGuild;\n});\n\nconst client = new CommandoClient({\n    commandPrefix: process.env.PREFIX,\n    unknownCommandResponse: false,\n    owner: 'your id here',\n    invite: 'your support server here',\n    disableEveryone: true\n});\n\nclient.registry\n    .registerDefaultTypes()\n    .registerGroups([\n    { id: 'fun', name: 'Fun' },\n    { id: 'mod', name: 'Moderation' },\n    { id: 'music', name: 'Music' },\n    { id: 'util', name: 'Utility' },\n    { id: 'other', name: 'Other' },\n    \n    ])\n\n    .registerCommandsIn(path.join(__dirname, 'commands'));\n\nfs.readdir('./events/', (err, files) =\u003e {\n    if (err) return console.error;\n    files.forEach(file =\u003e {\n        if (!file.endsWith('.js')) return;\n        const evt = require(`./events/${file}`);\n        let evtName = file.split('.')[0];\n        console.log(`Loaded event '${evtName}'`);\n        client.on(evtName, evt.bind(null, client));\n    });\n});\n\nconst dbl = new DBL(process.env.DBL, client);\n\ndbl.on('posted', () =\u003e {\n  console.log('Server count posted!');\n})\n\ndbl.on('error', e =\u003e {\n console.log(`Oops! ${e}`);\n});\n\nclient.login(process.env.TOKEN);\n```\n{% endcode %}\n\nThe .env file use this to put your tokens and the prefix\n\n{% code title=\".env\" %}\n```javascript\nTOKEN=\nPREFIX=?\nDBL=\n```\n{% endcode %}\n\nThe config.json file use this for your apt tokens\n\n{% code title=\"config.json\" %}\n```javascript\n{\n    \"YoutubeAPI\": \"\",\n    \"top\": \"\",\n    \"newsAPI\": \"\"\n}\n```\n{% endcode %}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fpickle-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperjosh%2Fpickle-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fpickle-bot/lists"}