mirror of
				https://github.com/aydenjahola/discord-multipurpose-bot.git
				synced 2025-11-04 08:11:34 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "23fb3a95fa3d5178e4f655182b7f529020561759" and "68e3c27f9231459efe86b1d33059f3f42bff87f6" have entirely different histories.
		
	
	
		
			23fb3a95fa
			...
			68e3c27f92
		
	
		
					 2 changed files with 13 additions and 17 deletions
				
			
		
							
								
								
									
										11
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								index.js
									
									
									
									
									
								
							| 
						 | 
					@ -9,7 +9,7 @@ const {
 | 
				
			||||||
} = require("discord.js");
 | 
					} = require("discord.js");
 | 
				
			||||||
const { DisTube, isVoiceChannelEmpty } = require("distube");
 | 
					const { DisTube, isVoiceChannelEmpty } = require("distube");
 | 
				
			||||||
const { SpotifyPlugin } = require("@distube/spotify");
 | 
					const { SpotifyPlugin } = require("@distube/spotify");
 | 
				
			||||||
const { YtDlpPlugin } = require("@distube/yt-dlp");
 | 
					const { YouTubePlugin } = require("@distube/youtube");
 | 
				
			||||||
const { SoundCloudPlugin } = require("@distube/soundcloud");
 | 
					const { SoundCloudPlugin } = require("@distube/soundcloud");
 | 
				
			||||||
const mongoose = require("mongoose");
 | 
					const mongoose = require("mongoose");
 | 
				
			||||||
const fs = require("fs");
 | 
					const fs = require("fs");
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,7 @@ const ServerSettings = require("./models/ServerSettings");
 | 
				
			||||||
const seedShopItems = require("./utils/seedShopItems");
 | 
					const seedShopItems = require("./utils/seedShopItems");
 | 
				
			||||||
const seedSpyfallLocations = require("./utils/seedSpyfallLocations");
 | 
					const seedSpyfallLocations = require("./utils/seedSpyfallLocations");
 | 
				
			||||||
const setupDisTubeEvents = require("./events/distubeEvents");
 | 
					const setupDisTubeEvents = require("./events/distubeEvents");
 | 
				
			||||||
 | 
					const ffmpeg = require("ffmpeg-static");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Console colors
 | 
					// Console colors
 | 
				
			||||||
const colors = {
 | 
					const colors = {
 | 
				
			||||||
| 
						 | 
					@ -86,10 +87,7 @@ client.commands = new Collection();
 | 
				
			||||||
// Initialize DisTube
 | 
					// Initialize DisTube
 | 
				
			||||||
client.distube = new DisTube(client, {
 | 
					client.distube = new DisTube(client, {
 | 
				
			||||||
  plugins: [
 | 
					  plugins: [
 | 
				
			||||||
    new YtDlpPlugin({
 | 
					    new YouTubePlugin(), // YouTube takes priority
 | 
				
			||||||
      // Let the plugin download a bundled yt-dlp if needed.
 | 
					 | 
				
			||||||
      update: true,
 | 
					 | 
				
			||||||
    }),
 | 
					 | 
				
			||||||
    new SpotifyPlugin(), // resolves Spotify → YouTube
 | 
					    new SpotifyPlugin(), // resolves Spotify → YouTube
 | 
				
			||||||
    new SoundCloudPlugin(), // resolves SoundCloud → YouTube
 | 
					    new SoundCloudPlugin(), // resolves SoundCloud → YouTube
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
| 
						 | 
					@ -98,6 +96,7 @@ client.distube = new DisTube(client, {
 | 
				
			||||||
  emitAddListWhenCreatingQueue: true,
 | 
					  emitAddListWhenCreatingQueue: true,
 | 
				
			||||||
  savePreviousSongs: false, // lower memory over long sessions
 | 
					  savePreviousSongs: false, // lower memory over long sessions
 | 
				
			||||||
  joinNewVoiceChannel: true, // smoother UX if user moves VC
 | 
					  joinNewVoiceChannel: true, // smoother UX if user moves VC
 | 
				
			||||||
 | 
					  ffmpeg: { path: ffmpeg },
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Function to recursively read commands from subdirectories
 | 
					// Function to recursively read commands from subdirectories
 | 
				
			||||||
| 
						 | 
					@ -153,7 +152,7 @@ async function registerCommands(guildId) {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
client.once("clientReady", async () => {
 | 
					client.once("ready", async () => {
 | 
				
			||||||
  printBanner();
 | 
					  printBanner();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  console.log(
 | 
					  console.log(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										19
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								package.json
									
									
									
									
									
								
							| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "name": "circuitrix",
 | 
					  "name": "multipurpose-discord-bot",
 | 
				
			||||||
  "version": "1.0.0",
 | 
					  "version": "1.0.0",
 | 
				
			||||||
  "author": "Ayden Jahola",
 | 
					  "author": "Ayden Jahola",
 | 
				
			||||||
  "description": "A multipurpose discord bot",
 | 
					  "description": "A multipurpose discord bot",
 | 
				
			||||||
  "github": "https://github.com/aydenjahola/circuitrix",
 | 
					  "github": "https://github.com/aydenjahola/discord-multipurpose-bot",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "test": "echo \"Error: no test specified\" && exit 1"
 | 
					    "test": "echo \"Error: no test specified\" && exit 1"
 | 
				
			||||||
| 
						 | 
					@ -12,16 +12,14 @@
 | 
				
			||||||
  "license": "MIT",
 | 
					  "license": "MIT",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@discordjs/opus": "^0.10.0",
 | 
					    "@discordjs/opus": "^0.10.0",
 | 
				
			||||||
    "@discordjs/voice": "0.19.0",
 | 
					    "@discordjs/voice": "^0.19.0",
 | 
				
			||||||
    "@distube/soundcloud": "2.0.4",
 | 
					    "@distube/soundcloud": "^2.0.4",
 | 
				
			||||||
    "@distube/spotify": "2.0.2",
 | 
					    "@distube/spotify": "^2.0.2",
 | 
				
			||||||
    "@distube/youtube": "^1.0.4",
 | 
					    "@distube/youtube": "^1.0.4",
 | 
				
			||||||
    "@distube/yt-dlp": "2.0.1",
 | 
					 | 
				
			||||||
    "@distube/ytdl-core": "4.16.12",
 | 
					 | 
				
			||||||
    "@snazzah/davey": "^0.1.6",
 | 
					    "@snazzah/davey": "^0.1.6",
 | 
				
			||||||
    "axios": "^1.7.7",
 | 
					    "axios": "^1.7.7",
 | 
				
			||||||
    "discord.js": "14.23.2",
 | 
					    "discord.js": "^14.15.3",
 | 
				
			||||||
    "distube": "5.0.7",
 | 
					    "distube": "^5.0.7",
 | 
				
			||||||
    "dotenv": "^16.4.5",
 | 
					    "dotenv": "^16.4.5",
 | 
				
			||||||
    "express": "^4.19.2",
 | 
					    "express": "^4.19.2",
 | 
				
			||||||
    "ffmpeg-static": "^5.2.0",
 | 
					    "ffmpeg-static": "^5.2.0",
 | 
				
			||||||
| 
						 | 
					@ -29,10 +27,9 @@
 | 
				
			||||||
    "html-entities": "^2.5.2",
 | 
					    "html-entities": "^2.5.2",
 | 
				
			||||||
    "moment": "^2.30.1",
 | 
					    "moment": "^2.30.1",
 | 
				
			||||||
    "mongoose": "^8.6.0",
 | 
					    "mongoose": "^8.6.0",
 | 
				
			||||||
    "nodemailer": "^7.0.9",
 | 
					    "nodemailer": "^6.9.14",
 | 
				
			||||||
    "openai": "^4.85.4",
 | 
					    "openai": "^4.85.4",
 | 
				
			||||||
    "owoify-js": "^2.0.0",
 | 
					    "owoify-js": "^2.0.0",
 | 
				
			||||||
    "prism-media": "1.3.5",
 | 
					 | 
				
			||||||
    "puppeteer": "^23.4.1",
 | 
					    "puppeteer": "^23.4.1",
 | 
				
			||||||
    "rcon-client": "^4.2.5",
 | 
					    "rcon-client": "^4.2.5",
 | 
				
			||||||
    "uuid": "^11.0.0"
 | 
					    "uuid": "^11.0.0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue