Dateien nach "/" hochladen

This commit is contained in:
M_Viper 2024-02-07 14:39:46 +00:00
parent fc4789b5c7
commit 71ab06ff0a
16 changed files with 7295 additions and 0 deletions

2
.replit Normal file
View File

@ -0,0 +1,2 @@
run = "node index.js"
entrypoint = "main.sh"

2
.replit.backup Normal file
View File

@ -0,0 +1,2 @@
language = "nodejs"
run = "node index.js"

29
ExtendedMessage.js Normal file
View File

@ -0,0 +1,29 @@
const { APIMessage, Structures } = require("discord.js");
class ExtAPIMessage extends APIMessage {
resolveData() {
if (this.data) return this;
super.resolveData();
const allowedMentions = this.options.allowedMentions || this.target.client.options.allowedMentions || {};
if (allowedMentions.repliedUser !== undefined) {
if (this.data.allowed_mentions === undefined) this.data.allowed_mentions = {};
Object.assign(this.data.allowed_mentions, { replied_user: allowedMentions.repliedUser });
}
if (this.options.replyTo !== undefined) {
Object.assign(this.data, { message_reference: { message_id: this.options.replyTo.id } });
}
return this;
}
}
class Message extends Structures.get("Message") {
inlineReply(content, options) {
return this.channel.send(ExtAPIMessage.create(this, content, options, { replyTo: this }).resolveData());
}
edit(content, options) {
return super.edit(ExtAPIMessage.create(this, content, options).resolveData());
}
}
Structures.extend("Message", () => Message);

3
colors.json Normal file
View File

@ -0,0 +1,3 @@
{
"uptime":"51ff23"
}

32
config.json Normal file
View File

@ -0,0 +1,32 @@
{
"default_prefix": "$",
"owners": ["612686200318459914"],
"guildid": "968725419077550170",
"emoji": {
"play": "▶️",
"stop": "⏹️",
"queue": "📄",
"success": "☑️",
"repeat": "🔁",
"error": "❌",
"YOUTUBE_API_KEY": "AIzaSyBh3IuBJGuNTYp70xeMSUpOBMmW2S5gFSA",
"premium": "682981714523586606",
"PREFIX": "$",
"mongodb": "mongodb+srv://DCKN:ZDZeewBm1AyijklQ@cluster0.ufnmb.mongodb.net/myFirstDatabase?retryWrites=true&w=majority",
"database": "",
"BOT_ID": "974563800319676446",
"embedcolor": "BLUE",
"COOLDOWN": "3",
"EMOJI_ARROW":"🔄",
"WELCOME_CHANNEL": "972129391092039720",
"QUEUE_LIMIT": 2,
"owners": "612686200318459914",
"AME_API": "36d73cb74451722a36fe5321526fa29649bdc850444fea8269e6f21276ece44925ae934dd478a803886f53420dfe3e3498f7dc3d0380e278a60d2f50cdc92e72",
"COLOR": "00FFFF",
"mongourl": "mongodb+srv://DCKN:ZDZeewBm1AyijklQ@cluster0.ufnmb.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"
}
}

11
database.js Normal file
View File

@ -0,0 +1,11 @@
const mongoose = require("mongoose");
const config = require("./config");
mongoose.connect("mongodb+srv://MasonmMasonn:Masonn14@galaxies.b117q.mongodb.net/myFirstDatabase?retryWrites=true&w=majority", {
useNewUrlParser: true,
useUnifiedTopology: true,
});
mongoose.connection.on("connected", () => {
console.log("[✅ Datenbank] Connected!");
});
module.exports = mongoose;

174
functions.js Normal file
View File

@ -0,0 +1,174 @@
const yes = ['yes', 'y', 'ye', 'yea', 'correct'];
const no = ['no', 'n', 'nah', 'nope', 'fuck off'];
const MONEY = ['', 'k', 'M', 'G', 'T', 'P', 'E'];
const inviteRegex = /(https?:\/\/)?(www\.|canary\.|ptb\.)?discord(\.gg|(app)?\.com\/invite|\.me)\/([^ ]+)\/?/gi;
const botInvRegex = /(https?:\/\/)?(www\.|canary\.|ptb\.)?discord(app)\.com\/(api\/)?oauth2\/authorize\?([^ ]+)\/?/gi;
module.exports = {
getMember(message, toFind = '') {
toFind = toFind.toLowerCase();
var target = message.guild.members.cache.get(toFind);
if (!target && message.mentions.members)
target = message.mentions.members.first();
if (!target && toFind) {
target = message.guild.members.cache.find(member => {
return member.displayName.toLowerCase().includes(toFind) ||
member.user.tag.toLowerCase().includes(toFind)
});
}
if (!target)
target = message.member;
return target;
},
delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
},
formatDate: function (date) {
return new Intl.DateTimeFormat('en-US').format(date);
},
promptMessage: async function (message, author, time, validReactions) {
time *= 1000;
for (const reaction of validReactions) await message.react(reaction);
const filter = (reaction, user) => validReactions.includes(reaction.emoji.name) && user.id === author.id;
return message
.awaitReactions(filter, { max: 1, time: time })
.then(collected => collected.first() && collected.first().emoji.name);
},
drawImageWithTint: function (ctx, image, color, x, y, width, height) {
const { fillStyle, globalAlpha } = ctx;
ctx.fillStyle = color;
ctx.drawImage(image, x, y, width, height);
ctx.globalAlpha = 0.5;
ctx.fillRect(x, y, width, height);
ctx.fillStyle = fillStyle;
ctx.globalAlpha = globalAlpha;
},
randomRange(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
},
shuffle: function (array) {
const arr = array.slice(0);
for (let i = arr.length - 1; i >= 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
const temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
return arr;
},
verify: async function (channel, user, { time = 30000, extraYes = [], extraNo = [] } = {}) {
const filter = res => {
const value = res.content.toLowerCase();
return (user ? res.author.id === user.id : true)
&& (yes.includes(value) || no.includes(value) || extraYes.includes(value) || extraNo.includes(value));
};
const verify = await channel.awaitMessages(filter, {
max: 1,
time
});
if (!verify.size) return 0;
const choice = verify.first().content.toLowerCase();
if (yes.includes(choice) || extraYes.includes(choice)) return true;
if (no.includes(choice) || extraNo.includes(choice)) return false;
return false;
},
chunk: function (array, chunkSize) {
const temp = [];
for (let i = 0; i < array.length; i += chunkSize) {
temp.push(array.slice(i, i + chunkSize));
}
return temp;
},
getWrapText: function (text, length) {
const temp = [];
for (let i = 0; i < text.length; i += length) {
temp.push(text.slice(i, i + length));
}
return temp.map(x => x.trim());
},
crFormat: function (number) {
const ranking = Math.log10(number) / 3 | 0;
if (!ranking) return number.toString();
const last = MONEY[ranking];
const scale = Math.pow(10, ranking * 3);
const scaled = number / scale;
return `${scaled.toFixed(2)}${last}`;
},
formatNumber(number, minimumFractionDigits = 0) {
return Number.parseFloat(number).toLocaleString(undefined, {
minimumFractionDigits,
maximumFractionDigits: 2
});
},
list: function (arr, conj = 'and') {
const len = arr.length;
if (len === 0) return '';
if (len === 1) return arr[0];
return `${arr.slice(0, -1).join(', ')}${len > 1 ? `${len > 2 ? ',' : ''} ${conj} ` : ''}${arr.slice(-1)}`;
},
firstUpperCase(text, split = ' ') {
return text.split(split).map(word => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');
},
shorten(text, maxLen = 2000) {
return text.length > maxLen ? `${text.substr(0, maxLen - 3)}...` : text;
},
stripInvites(str, { guild = true, bot = true, text = '[redacted invite]' } = {}) {
if (guild) str = str.replace(inviteRegex, text);
if (bot) str = str.replace(botInvRegex, text);
return str;
},
wrapText (ctx, text, maxWidth) {
return new Promise(resolve => {
if (ctx.measureText(text).width < maxWidth) return resolve([text]);
if (ctx.measureText('W').width > maxWidth) return resolve(null);
const words = text.split(' ');
const lines = [];
let line = '';
while (words.length > 0) {
let split = false;
while (ctx.measureText(words[0]).width >= maxWidth) {
const temp = words[0];
words[0] = temp.slice(0, -1);
if (split) {
words[1] = `${temp.slice(-1)}${words[1]}`;
} else {
split = true;
words.splice(1, 0, temp.slice(-1));
}
}
if (ctx.measureText(`${line}${words[0]}`).width < maxWidth) {
line += `${words.shift()} `;
} else {
lines.push(line.trim());
line = '';
}
if (words.length === 0) lines.push(line.trim());
}
return resolve(lines);
});
}
}

429
index.js Normal file
View File

@ -0,0 +1,429 @@
const express = require('express')
const app = express();
const port = 3000
app.get('/', (req, res) => res.send('Bot ist online!!'))
app.listen(port, () =>
console.log(`Ihr BOT hört auf http://localhost:${port}`)
);
require("dotenv").config();
"$TOEKN"
// if you need help ask in the help channel dont dm me
const guildDB = require("./mongo/guildDB");
const { default_prefix } = require("./config.json")
const fetch = require("node-fetch");
const db =require("quick.db");
const moment = require("moment");
const { CanvasSenpai } = require("canvas-senpai")
const canva = new CanvasSenpai();
const { emotes , emoji} =require("./config.json")
const { MessageMenuOption, MessageMenu } = require("discord-buttons")
const DiscordButtons = require('discord-buttons');
const { MessageEmbed } = require('discord.js')
const discord = require("discord.js");
const client = new discord.Client({
disableEveryone: false
});
const button = require('discord-buttons');
const disbut = require("discord-buttons")
const colors = require('./colors.json')
const yts = require('yt-search')
client.queue = new Map();
client.vote = new Map();
const { ready } = require("./handlers/ready.js")
require("./database.js");
client.commands = new discord.Collection();
client.aliases = new discord.Collection();
["command"].forEach(handler => {
require(`./handlers/${handler}`)(client);
});
client.queue = new Map()
process.on('unhandledRejection', console.error);
client.on("message", async message => {
const prefixMention = new RegExp(`^<@!?${client.user.id}>( |)$`);
if (message.content.match(prefixMention)) {
return message.reply(`My prefix is \`${default_prefix}\``);
}
if (message.author.bot) return;
if (!message.guild) return;
if (!message.content.startsWith(default_prefix)) return;
if (!message.member)
message.member = message.guild.fetchMember(message);
const args = message.content
.slice(default_prefix.length)
.trim()
.split(/ +/g);
const cmd = args.shift().toLowerCase();
if (cmd.length === 0) return;
let command = client.commands.get(cmd);
if (!command) command = client.commands.get(client.aliases.get(cmd));
if (command) command.run(client, message, args);
});
/*client.on("guildMemberAdd", async member => {
try {
let chx = db.get(`welchannel_${member.guild.id}`);
if (chx === null) {
return;
}
let data = await canva.welcome(member, { link: "https://cdn.discordapp.com/attachments/815889737750544405/827575020338675822/welcome_imgae.png",blur: false })
const attachment = new discord.MessageAttachment(
data,
"welcome-image.png"
);
client.channels.cache.get(chx).send(`Welcome to ${member.guild.name}, Server ${member.user}\nYou are our ${member.guild.memberCount}th Member. Enjoy `, attachment);*/
client.on("guildMemberAdd", async (member) => {
try {
console.log('test')
let data = await guildDB.find({ guild: member.guild.id });
var channel = data.map((guildDB) => {
return [ `${guildDB.channel}` ]})
console.log(channel)
if (!channel) return console.log('kein Kanal')
// i think i almost got it right
console.log('test')
let message = data.map((guilDB) => { return [ `${guildDB.message}` ]});
console.log('test')
if (!message) message = "[member:mention] Willkommen bei [guild:name]";
console.log(channel)
console.log(message)
//let mes = message.replace(/`?\[member:mention]`?/g, member.user).replace(/`?\[guild:name]`?/g, member.guild.name).replace(/`?\[guild:membercount]`?/g, member.guild.members.cache.size)
let guildCh = client.guilds.cache.get(member.guild.id)
let f = await guildCh.channels.cache.get(channel).send(message);
console.log(f)
setTimeout(async () => {
await f.delete();
}, 1000);
client.channels.cache.get(chx).send("Willkommen auf unserem Server " + member.user.username, attachment);
} catch (e) {
console.log(e)
}
});
client.on("guildMemberAdd", async (member) => {
let LoggingChannel = await db.get(`LoggingChannel_${member.guild.id}`);
if (!LoggingChannel)return console.log(`Einrichtung in ${member.guild.id} alias ${member.guild.name} Gilde (Kanal nicht gefunden)`);
//getting notify role
let notifyRole = await db.get(`notifyRole_${member.guild.id}`);
if (!notifyRole)return console.log(`Setup Is Not Done in ${member.guild.id} aka ${member.guild.name} Guild (role not found)`);
//to get created date in days format
let x = Date.now() - member.user.createdAt;
let created = Math.floor(x / 86400000);
//creation date
let creationDate = moment
.utc(member.user.createdAt)
.format("dddd, MMMM Do YYYY, HH:mm:ss");
//joindate
let joiningDate = moment
.utc(member.joinedAt)
.format("dddd, MMMM Do YYYY, HH:mm:ss");
//joinposition
let joinPosition = member.guild.memberCount
//altdate
let AltAge = await db.get(`altAge_${member.guild.id}`)
if (!AltAge) return db.set(`altAge_${member.guild.id}`, 31)
//only sends message when alt found
if (created < AltAge) {
//embed
let altEmbed = //main alt message
new Discord.MessageEmbed().setTitle("Alt Found!").setColor("RANDOM").setFooter("Bot von M_Viper#8085")
.setDescription(`
**__Alt Name__**: ${member.user} (${member.user.username})
**__ID__**: ${member.user.id}
**__Account Created__**: ${created} days ago
**__Account Creation Date__**: ${creationDate}
**__Join Position__**: ${joinPosition}
**__Join Date__**: ${joiningDate}
`);
member.guild.channels.cache.get(LoggingChannel).send(`__Notification:__ <@&${notifyRole}>`, altEmbed);
let AutoKick = await db.fetch(`AutoKick_${member.guild.id}`);
if (!AutoKick)return console.log(`Setup Is Not Done in ${member.guild.id} aka ${member.guild.name} Guild (AutoKick Isn't Enabled)`);
let AutoKickAge = await db.get(`AutokickAge_${member.guild.id}`)
if (!AutoKickAge) return db.set(`AutokickAge_${member.guild.id}`, 8)
if (AutoKick === true) {
let checking = await db.get(`WhiteListed_${member.guild.id}`)
if (checking === member.user.id) {
let embed = new Discord.MessageEmbed()
.setTitle(`Auto Kick System Stucked On`)
.setDescription(`
**__NAME__** - ${member.user} (${member.user.username})
**__KICKED__** - NO
**__REASON__** - WhiteListed User`)
.setColor("RANDM");
member.guild.channels.cache.get(LoggingChannel).send(embed)
} else {
if (created < AutoKickAge) {
let embed = new Discord.MessageEmbed()
.setTitle(`Auto Kick System Kicked SomeOne`)
.setDescription(`
**__NAME__** - ${member.user} (${member.user.username})
**__ID__** - ${member.user.id}
**__KICKED FROM GUILD NAME__** - ${member.guild.name}
**__KICKED REASON__** - ALT ( Created ${created} Days Ago)
`)
.setColor('RANDOM')
member.kick()
console.log(`kicked`)
member.guild.channels.cache.get(LoggingChannel).send(embed)
}
}
} else {
console.log(`Autokick ist Disabled in ${memeber.guild.name}`)
}
}
}
)
client.on("message", async message => {
if (message.channel.name == "chatbot") {
if (message.author.bot) return;
message.content = message.content.replace(/@(everyone)/gi, "everyone").replace(/@(here)/gi, "here");
if (message.content.includes(`@`)) {
return message.channel.send(`**:x: Bitte erwähne niemanden**`);
}
message.channel.startTyping();
if (!message.content) return message.channel.send("Bitte sag was.");
fetch(`https://api.affiliateplus.xyz/api/chatbot?message=${encodeURIComponent(message.content)}&botname=${client.user.username}&ownername=npg`)
.then(res => res.json())
.then(data => {
message.channel.send(`> ${message.content} \n <@${message.author.id}> ${data.message}`);
});
message.channel.stopTyping();
}
});
client.snipes = new Map()
client.on('messageDelete', function(message, channel){
client.snipes.set(message.channel.id, {
content:message.content,
author:message.author.tag,
image:message.attachments.first() ? message.attachments.first().proxyURL : null
})
})
const { GiveawaysManager } = require("discord-giveaways");
const manager = new GiveawaysManager(client, {
storage: "./handlers/giveaways.json",
updateCountdownEvery: 10000,
default: {
botsCanWin: false,
exemptPermissions: [ "MANAGE_MESSAGES", "ADMINISTRATOR" ],
embedColor: "#FF0000",
reaction: "🎉"
}
});
client.giveawaysManager = manager;
client.on("message", async message => {
if(!message.guild) return;
let prefix = db.get(`default_prefix${message.guild.id}`)
if(prefix === null) prefix =default_prefix;
if(!message.content.startsWith(default_prefix)) return;
})
client.on("ready", () => {
client.user.setStatus("online");
console.log("Bot ist online!!")
});
client.on
client.on("ready", () => {
client.user.setActivity("$help", { type: "WATCHING"})
})
const { Player } = require("discord-music-player");
const player = new Player(client, {
leaveOnEmpty: false,
});
client.player = player;
new Player(client, {
leaveOnEnd: true,
leaveOnStop: true,
leaveOnEmpty: true,
timeout: 10,
volume: 150,
quality: 'high',
});
const fs = require('fs')
client.on('guildCreate', guild =>{
const channelId = '841994461126197248'; //put your channel ID here
const channel = client.channels.cache.get(channelId);
if(!channel) return; //If the channel is invalid it returns
const embed = new discord.MessageEmbed()
.setTitle('I Joined A Guild!')
.setDescription(`**Guild Name:** ${guild.name} (${guild.id})\n**Members:** ${guild.memberCount}`)
.setTimestamp()
.setColor('RANDOM')
.setFooter(`I'm in ${client.guilds.cache.size} Guilds Now!`);
channel.send(embed);
});
client.on('guildDelete', guild =>{
const channelId = '841994754399928341';//add your channel ID
const channel = client.channels.cache.get(channelId); //This Gets That Channel
if(!channel) return; //If the channel is invalid it returns
const embed = new discord.MessageEmbed()
.setTitle('Ich habe einen Server verlassen!')
.setDescription(`**Guild Name:** ${guild.name} (${guild.id})\n**Members:** ${guild.memberCount}`)
.setTimestamp()
.setColor('RED')
.setFooter(`I'm in ${client.guilds.cache.size} Guilds Now!`);
channel.send(embed);
});
const smartestchatbot = require('smartestchatbot')
const scb = new smartestchatbot.Client()
client.on("message", async message => {
if (message.channel.name == "abotchat") {
if (message.author.bot) return;
message.content = message.content.replace(/@(everyone)/gi, "everyone").replace(/@(here)/gi, "here");
if (message.content.includes(`@`)) {
return message.channel.send(`**:x: Bitte erwähne niemanden**`);
}
message.channel.startTyping();
if (!message.content) return message.channel.send("Bitte sag was.");
scb.chat({message: message.content, name: client.user.username, owner:"M_Viper#8085", user: message.author.id, language:"auto"}).then(reply => {
message.inlineReply(`${reply}`);
})
message.channel.stopTyping();
}
});
require("./ExtendedMessage");
allowedMentions: {
// set repliedUser value to `false` to turn off the mention by default
repliedUser: true
}
let firstbutton = new disbut.MessageButton()
.setLabel("𝕊𝕥𝕖𝕡 𝟙")
.setStyle("blurple")
.setID("firstbutton")
let secondbutton = new disbut.MessageButton()
.setLabel("𝕊𝕥𝕖𝕡 𝟚")
.setStyle("blurple")
.setID("secondbutton")
let thirdbutton = new disbut.MessageButton()
.setLabel("𝕊𝕥𝕖𝕡 𝟛")
.setStyle("blurple")
.setID("thirdbutton")
let row1 = new disbut.MessageActionRow()
.addComponent(firstbutton)
.addComponent(secondbutton)
.addComponent(thirdbutton)
const step1 = new MessageEmbed()
.setColor("cccfff")
.setTitle("<a:YellowArrow:870193892492980236> How to Use Uptimer!")
.addField(
"<:857122481088495629:873454677231034368> Get the link", "Our first step is to get the webpage link. You can find the code in the bottom or side of you repl.it(see screenshot below)! If you do not have this link, copy paste this code at the top of your `index.js` and run it again.\n ```https://pastebin.com/HJGhAUZf```"
)
.setImage("https://media.discordapp.net/attachments/870077234780725281/873324807444365413/Screen_Shot_2021-08-06_at_2.57.52_PM.png?width=1017&height=534")
const step3 = new MessageEmbed()
.setColor("cccfff")
.setTitle("<a:YellowArrow:870193892492980236> How to Use Uptimer!")
.addField(
"<:5286_three_emj_png:873453086981636127> Other Commands", "Now that we have added your project, you can use other command such as `projects` `remove` `stats` and `total`. Below Is an image of the remove command! "
)
.setImage("https://media.discordapp.net/attachments/870077234780725281/873663248510107688/Screen_Shot_2021-08-07_at_1.25.22_PM.png")
const step2 = new MessageEmbed()
.setColor("cccfff")
.setTitle("<a:YellowArrow:870193892492980236> How to Use Uptimer!")
.addField(
"<:4751_two_emj_png:873364919259627551> Run the command", "Our next step is to runn the command. The syntax of this command is `*add <repl_url>`. If done correcty the bot should give embed saying: ```:white_check_mark: Added Succesfully!``` See Screenshot Below For More details."
)
.setImage("https://media.discordapp.net/attachments/870077234780725281/873366580522782820/Screen_Shot_2021-08-06_at_5.46.41_PM.png");
// Button Handler
client.on("clickButton", async (button) => {
if (button.id === "firstbutton") {
button.message.edit({
embed: step1,
component: row1,
});
} else if (button.id === "secondbutton") {
button.message.edit({
embed: step2,
component: row1,
});
} else if (button.id === "thirdbutton") {
button.message.edit({
embed: step3,
component: row1,
});
}
})
client.login(process.env.TOKEN);

BIN
json.sqlite Normal file

Binary file not shown.

27
node.sh Normal file
View File

@ -0,0 +1,27 @@
export NVM_DIR=/home/runner/nvm
export NODE_VERSION=14
if ! ls $NVM_DIR > /dev/null 2>&1
then mkdir -p $NVM_DIR
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
fi
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm use $NODE_VERSION
# You may want to run this if you change node version
#rm -rf node_modules/
#npm i
# install a custom npm version
#if [ $(npm -v) != "6.14.9" ]
#then npm i -g npm@6.14.9
#fi
#just to check if any package is missing
npm outdated | grep "MISSING"
if [ $? -eq 0 ]
then npm i
fi
node .

3
owner.json Normal file
View File

@ -0,0 +1,3 @@
{
"ownerID": ["612686200318459914"]
}

6411
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

109
package.json Normal file
View File

@ -0,0 +1,109 @@
{
"//1": "describes your app and its dependencies",
"//2": "https://docs.npmjs.com/files/package.json",
"//3": "updating this file will download and update your packages",
"name": "hello-express",
"version": "1.0.2",
"description": "A simple Node app built on Express, instantly up and running.",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"@discordjs/opus": "^0.5.0",
"@distube/ytpl": "^1.0.11",
"akaneko": "^3.0.2",
"ascii-table": "^0.0.9",
"avconv": "^3.1.0",
"await": "^0.2.6",
"axios": "^0.21.1",
"canvacord": "^5.0.8",
"canvas": "^2.8.0",
"canvas-constructor": "^4.1.0",
"canvas-senpai": "^0.1.6",
"chalk": "^4.1.2",
"common-tags": "^1.8.0",
"cpu-stat": "^2.0.1",
"di": "0.0.1",
"discord-akairo": "^8.1.0",
"discord-backup": "^2.5.0",
"discord-button-pages": "^1.1.9",
"discord-buttons": "^4.0.0",
"discord-embeds-pages-buttons": "^1.3.0",
"discord-giveaways": "^4.4.3",
"discord-music-player": "^7.2.0",
"discord-xp": "^1.1.16",
"discord.js": "^12.5.3",
"discord.js-commando": "^0.10.0",
"distube": "^2.8.12",
"dote": "^1.1.0",
"dotenv": "^8.6.0",
"env": "0.0.2",
"erela.js": "^2.3.1",
"express": "^4.17.1",
"ffmpeg-static": "^4.3.0",
"figlet": "^1.5.0",
"fs": "^0.0.2",
"hastebin-gen": "^2.0.5",
"i": "^0.3.6",
"imdb-api": "^4.2.0",
"instagram-api.js": "0.0.8",
"mal-scraper": "^2.11.3",
"mathjs": "^7.1.0",
"moment": "^2.27.0",
"moment-duration-format": "^2.3.2",
"mongoose": "^5.13.12",
"ms": "^2.1.2",
"neko-love": "^2.0.2",
"nekos.life": "^2.0.7",
"node-fetch": "^2.6.1",
"node-superfetch": "^0.1.11",
"nodejs-snowflake": "^1.6.2",
"novelcovid": "^3.0.0",
"npm": "^7.6.1",
"opusscript": "^0.0.7",
"or": "^0.2.0",
"os": "^0.1.1",
"parse-ms": "^2.1.0",
"path": "^0.12.7",
"pretty-ms": "^7.0.1",
"quick.db": "^7.1.3",
"quickmongo": "^4.0.0",
"random-code-gen": "^1.1.2",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"simple-youtube-api": "^5.2.1",
"simply-djs": "^2.1.3",
"smartestchatbot": "^2.0.0",
"snekfetch": "^4.0.4",
"something-random-on-discord": "^0.0.1",
"soundcloud-downloader": "^0.2.4",
"sourcebin_js": "0.0.3-ignore",
"spotify-url-info": "^2.2.0",
"srod-v2": "^1.0.1",
"twemoji-parser": "^13.0.0",
"twitter-api.js": "0.0.12",
"weather-js": "^2.0.0",
"yt-search": "^2.5.1",
"ytdl-core": "^3.4.2",
"ytdl-core-discord": "^1.2.5",
"ytpl": "^2.0.4",
"ytsr": "^3.2.2"
},
"engines": {
"node": "12.x"
},
"repository": {
"url": "https://glitch.com/edit/#!/hello-express"
},
"license": "MIT",
"keywords": [
"node",
"glitch",
"express"
],
"devDependencies": {
"node": "^16.13.0"
},
"author": ""
}

5
replit.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs, legacyPolygott }: {
deps = [
pkgs.bashInteractive
] ++ legacyPolygott;
}

49
replit_zip_error_log.txt Normal file
View File

@ -0,0 +1,49 @@
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file .cache/replit/modules/replit:v4-20240206-fdbd396","time":"2024-02-07T14:35:34Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/detect-libc","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/doit","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/mathjs","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/mime","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/mkdirp","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/nfzf","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/node","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/node-pre-gyp","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/node-which","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/nopt","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/npm","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/npx","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/pixelmatch","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/prebuild-install","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/rc","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/rimraf","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/semver","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/sshpk-conv","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/sshpk-sign","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/sshpk-verify","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/uuid","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/yt-search","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/yt-search-audio","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/.bin/yt-search-video","time":"2024-02-07T14:35:35Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/@jimp/core/node_modules/.bin/mkdirp","time":"2024-02-07T14:35:38Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/canvas/node_modules/.bin/node-pre-gyp","time":"2024-02-07T14:36:00Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/make-dir/node_modules/.bin/semver","time":"2024-02-07T14:36:21Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/node-abi/node_modules/.bin/semver","time":"2024-02-07T14:36:38Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/nodejs-snowflake/node_modules/.bin/mkdirp","time":"2024-02-07T14:36:38Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/nodejs-snowflake/node_modules/.bin/prebuild-install","time":"2024-02-07T14:36:38Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/arborist","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/installed-package-contents","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/mkdirp","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/node-gyp","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/node-which","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/nopt","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/npm-packlist","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/opener","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/pacote","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/qrcode-terminal","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/rimraf","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/semver","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/sshpk-conv","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/sshpk-sign","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/sshpk-verify","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/npm/node_modules/.bin/uuid","time":"2024-02-07T14:36:39Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/require_optional/node_modules/.bin/semver","time":"2024-02-07T14:36:43Z"}
{"error":".zip archives do not support non-regular files","level":"error","msg":"unable to write file node_modules/superagent/node_modules/.bin/mime","time":"2024-02-07T14:36:44Z"}

9
sharder.js Normal file
View File

@ -0,0 +1,9 @@
const { ShardingManager } = require("discord.js");
const manager = new ShardingManager("./index.js", {
token: require("./config").token,
totalShards: 1,
shardArgs: process.argv
});
manager.on('shardCreate', shard => console.log(`DCKN Shard #${shard.id} gestartet!`));
manager.spawn();