This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
Codsworth/ReadME.md

47 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2021-05-28 11:07:25 -07:00
# Codsworth
2021-06-11 01:58:34 -07:00
## 🛑This repo is no longer maintained!🛑
2021-05-31 14:12:48 -07:00
## to install this use npm install
2021-05-29 01:01:10 -07:00
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FSophiaAtkinson%2FCodsworth&count_bg=%23A53DC8&title_bg=%23555555&icon=node-dot-js.svg&icon_color=%23E7E7E7&title=Page+Views&edge_flat=true)](https://hits.seeyoufarm.com)
2021-06-04 14:32:06 -07:00
# guide for beginners.
You need to have [Node.js](https://nodejs.org) V 16.3.0 or v14.17.0 LTS
2021-06-07 11:51:15 -07:00
open codsworths folder in cmd and do npm install and it should install all of its dependencies.
2021-06-04 14:32:06 -07:00
### Config.json
{
"TOKEN": "Discord Bot Token", //Put your discord bot token
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"YOUTUBE_API_KEY": "YOUTUBE_API_KEY", // put your youtube api key from [Here](https://console.cloud.google.com/)
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"SOUNDCLOUD_CLIENT_ID": "",
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"MAX_PLAYLIST_SIZE": 100,
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"PREFIX": "PREFIX", //Pick a prefix
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"PRUNING": false, // if you want the bot to delete its own messages
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"LOCALE": "en", // Keep the same if you want english
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"STAY_TIME": 30, // how long you want it to stay in the vc for
2021-06-04 14:34:22 -07:00
2021-06-04 14:32:06 -07:00
"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();