├── Komutlar ├── avatar.js ├── davet.js └── merhaba.md ├── README.md ├── ayarlar.json ├── package.json ├── space-giveaway.js └── utils ├── loader.js └── selam.md /Komutlar/avatar.js: -------------------------------------------------------------------------------- 1 | const Discord = require("discord.js") 2 | const db = require("croxydb") 3 | const {MessageActionRow, MessageButton} = require("discord.js") 4 | 5 | module.exports = { 6 | 7 | name: "avatar", 8 | 9 | options: [ 10 | 11 | { 12 | 13 | name: 'user', 14 | 15 | description: '❔ If you want to look at someone else s avatar, present what s going on!', 16 | 17 | type: 'USER', 18 | 19 | required: false 20 | 21 | } 22 | 23 | ], 24 | 25 | description: '👤 You\' ll see your avatar or someone else \'s avatar.', 26 | 27 | run: async (client, interaction) => { 28 | 29 | const u = interaction.options.getUser('user'); 30 | 31 | let kullanıcı = u || interaction.user 32 | 33 | const row = new MessageActionRow() 34 | 35 | .addComponents(new MessageButton() 36 | 37 | .setStyle("LINK") 38 | 39 | .setLabel("Avatar URL") 40 | 41 | .setURL(`${kullanıcı.avatarURL({ dynamic: true, size: 2048 })}`) 42 | 43 | ); 44 | 45 | 46 | const embed = new Discord.MessageEmbed() 47 | 48 | .setTitle("*Amazing avatar 2000*") 49 | 50 | .setColor('#0099ff') 51 | 52 | .setImage(kullanıcı.avatarURL({ dynamic: true, size: 2048 })) 53 | 54 | interaction.reply({embeds: [embed], components: [row], ephemeral: true}) 55 | 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /Komutlar/davet.js: -------------------------------------------------------------------------------- 1 | const Discord = require('discord.js'); 2 | 3 | const db = require("croxydb") 4 | 5 | const {MessageActionRow, MessageButton} = require("discord.js") 6 | 7 | module.exports = { 8 | 9 | name: "invite", 10 | 11 | options: [], 12 | 13 | 14 | 15 | description: '📎 Shows invitation links.', 16 | 17 | run: async (client, interaction) => { 18 | 19 | 20 | const embed = new Discord.MessageEmbed() 21 | 22 | .setDescription("You can go to any link you want from below!") 23 | 24 | .setColor("GREEN") 25 | 26 | const row = new MessageActionRow() 27 | 28 | .addComponents( 29 | 30 | new Discord.MessageButton() 31 | 32 | .setStyle("LINK") 33 | 34 | .setLabel("My invitation link") 35 | 36 | .setURL("https://discord.com/oauth2/authorize?client_id=765207268408033322&scope=bot+applications.commands&permissions=2147483656"), 37 | 38 | new Discord.MessageButton() 39 | 40 | .setStyle("LINK") 41 | 42 | .setLabel("My support server") 43 | 44 | .setURL("https://discord.gg/KZfAEjrPUF"), 45 | 46 | new Discord.MessageButton() 47 | 48 | .setStyle("LINK") 49 | 50 | .setLabel("My voting link") 51 | 52 | .setURL("https://top.gg/bot/765207268408033322/vote") 53 | 54 | ); 55 | 56 | await interaction.reply({embeds: [embed], ephemeral: true, components: [row]}) 57 | 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Komutlar/merhaba.md: -------------------------------------------------------------------------------- 1 | Burası komutlar bulunduğu yer. 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kurulum 😋 2 | - .env' e TOKEN=token yapın sonra botun açılmasını bekleyin 3 | - Developer portal da slash command oluşturma falan yapın davet edin bitti. 4 | # Destek 🌐 5 | https://discord.gg/KZfAEjrPUF 6 | # Bilgi 😎 7 | Star atmayan kullanmasın o kadar yapıyoruz bir tıklayın yaw. 8 | -------------------------------------------------------------------------------- /ayarlar.json: -------------------------------------------------------------------------------- 1 | { 2 | "sahip": "753842258457002036", 3 | "ugur": "753842258457002036", 4 | } 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gways", 3 | "version": "1.0.0", 4 | "description": "Space Giveaway Alt yapı", 5 | "main": "space-giveaway.js", 6 | "dependencies": { 7 | "@mapbox/node-pre-gyp": "^1.0.5", 8 | "canvacord": "^5.2.3", 9 | "wio.db": "^4.0.21", 10 | "chalk": "^4.1.2", 11 | "croxydb": "^0.0.7", 12 | "dblapi.js": "^2.4.0", 13 | "discord-canvas": "^1.4.1", 14 | "discord-giveaways": "^5.0.1", 15 | "discord-xp": "^1.1.16", 16 | "discord.js": "^13.1.0", 17 | "express": "^4.17.1", 18 | "fs": "^0.0.2", 19 | "got": "^11.8.2", 20 | "hastebin-gen": "^2.0.5", 21 | "math-expression-evaluator": "^1.3.8", 22 | "moment": "^2.29.1", 23 | "moment-duration-format": "^2.3.2", 24 | "mongodb": "^4.1.3", 25 | "ms": "^2.1.3", 26 | "node-fetch": "^3.0.0", 27 | "node-superfetch": "^0.2.3", 28 | "parse-ms": "^3.0.0", 29 | "request": "^2.88.2", 30 | "ws": "^8.2.3", 31 | "@top-gg/sdk": "^3.1.2", 32 | "simply-djs": "^2.1.3", 33 | "xfinity": "^1.0.61", 34 | "axios": "^0.24.0" 35 | }, 36 | "scripts": { 37 | "start": "node space-giveaway.js" 38 | }, 39 | "engines": { 40 | "node": "16.x" 41 | }, 42 | "keywords": [ 43 | "Uğur Bediroğlu", 44 | "youtube" 45 | ], 46 | "author": "", 47 | "license": "YOK" 48 | } -------------------------------------------------------------------------------- /space-giveaway.js: -------------------------------------------------------------------------------- 1 | const Discord = require("discord.js"); 2 | const { MessageEmbed } = require("discord.js"); 3 | const INTENTS = Object.entries(Discord.Intents.FLAGS).filter(([K]) => !["GUILD_PRESENCES", "GUILD_MEMBERS"].includes(K)).reduce((t, [, V]) => t | V, 0) 4 | const client = new Discord.Client({intents: INTENTS})  5 | const db = require("croxydb"); 6 | const {MessageActionRow, MessageButton } = require("discord.js"); 7 | client.commands = new Discord.Collection(); 8 | const fetch = ("node-fetch"); 9 | const fs = require("fs"); 10 | require("./utils/loader.js")(client) 11 | 12 | client.login(process.env.TOKEN) 13 | -------------------------------------------------------------------------------- /utils/loader.js: -------------------------------------------------------------------------------- 1 | const {Collection} = require("discord.js"), 2 | {readdirSync} = require("fs") 3 | module.exports = (client, interaction) => { 4 | client.commands = new Collection() 5 | var files = readdirSync("./Komutlar") 6 | var props; 7 | for(var file in files) { 8 | props = require("../Komutlar/" + files[file]) 9 | client.commands.set(props.name, props) 10 | console.log(`🎉 ${props.name} Yüklendi!`) 11 | } 12 | var allFiles = client.commands.map(a => { 13 | return {name: a.name, description: a.description, options: a.options} 14 | }) 15 | client.on("ready", async() => { 16 | client.application.commands.set(allFiles) 17 | console.log("BOT | Slash command loaded for " + client.guilds.cache.size + ".") 18 | console.log("BOT | Slash commands loaded successfully.") 19 | client.user.setPresence({ activities: [{ name: '☕ /invite | 🌐 /language', url :'https://twitch.tv/iugur1', type: 'PLAYING' }] }); 20 | }) 21 | client.on("interactionCreate", (interaction) => { 22 | if (!interaction.isCommand()) return; 23 | if (!client.commands.get(interaction.commandName)) return 24 | interaction.selectedValue = (interaction.options._hoistedOptions[0]) ? interaction.options._hoistedOptions[0].value : undefined 25 | const komut = client.commands.get(interaction.commandName) 26 | komut.run(client, interaction) 27 | }) 28 | } 29 | -------------------------------------------------------------------------------- /utils/selam.md: -------------------------------------------------------------------------------- 1 | Burası botunun handler kısmı. 2 | --------------------------------------------------------------------------------