Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

CodsworthBot/Codsworth

Repository files navigation

Codsworth

🛑This repo is no longer maintained!🛑

to install this use npm install

Hits

guide for beginners.

You need to have Node.js V 16.3.0 or v14.17.0 LTS open codsworths folder in cmd and do npm install and it should install all of its dependencies.

Config.json

{ "TOKEN": "Discord Bot Token", //Put your discord bot token

"YOUTUBE_API_KEY": "YOUTUBE_API_KEY", // put your youtube api key from Here

"SOUNDCLOUD_CLIENT_ID": "",

"MAX_PLAYLIST_SIZE": 100,

"PREFIX": "PREFIX", //Pick a prefix

"PRUNING": false, // if you want the bot to delete its own messages

"LOCALE": "en", // Keep the same if you want english

"STAY_TIME": 30, // how long you want it to stay in the vc for

"DEFAULT_VOLUME": 100 }

shard.js

if you plan on this being a big bot use shard.js

const { ShardingManager } = require('discord.js'); const manager = new ShardingManager('./index.js', { token: 'Token' }); // Put your token here.

manager.on('shardCreate', shard => console.log(Launched shard ${shard.id})); manager.spawn();