commands | ||
include | ||
locales | ||
util | ||
config.json | ||
index.js | ||
LICENSE | ||
noshard.bat | ||
package-lock.json | ||
package.json | ||
ReadME.md | ||
shard.bat | ||
shard.js |
Codsworth
🛑This repo is no longer maintained!🛑
to install this use npm install
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();