├── .vscode └── settings.json ├── .gitattributes ├── Helpers ├── Localizations │ ├── En │ │ ├── Sets │ │ │ ├── NoName.js │ │ │ ├── Resets.js │ │ │ ├── Remove.js │ │ │ ├── No.js │ │ │ ├── Yes.js │ │ │ └── Index.js │ │ ├── Messages │ │ │ ├── MissingDatas.js │ │ │ ├── UnknownErrors.js │ │ │ ├── MessageArrows.js │ │ │ ├── Buttons.js │ │ │ ├── SelectMenu.js │ │ │ ├── OnOrOff.js │ │ │ └── Permissions.js │ │ ├── Switchs │ │ │ ├── Commands │ │ │ │ ├── Help.js │ │ │ │ ├── Language.js │ │ │ │ ├── AutoResponse.js │ │ │ │ ├── SetRegisterType.js │ │ │ │ ├── SetupRegister.js │ │ │ │ ├── SetCustomNames.js │ │ │ │ ├── Vip.js │ │ │ │ ├── RegisterCountRoles.js │ │ │ │ ├── Authorized.js │ │ │ │ ├── Partner.js │ │ │ │ ├── Alisa.js │ │ │ │ └── Premium.js │ │ │ ├── CancelOrReset.js │ │ │ ├── OnOrOff.js │ │ │ └── Index.js │ │ └── Index.js │ └── Tr │ │ ├── Sets │ │ ├── NoName.js │ │ ├── Remove.js │ │ ├── Resets.js │ │ ├── Yes.js │ │ ├── No.js │ │ └── Index.js │ │ ├── Messages │ │ ├── MissingDatas.js │ │ ├── UnknownErrors.js │ │ ├── MessageArrows.js │ │ ├── Buttons.js │ │ ├── SelectMenu.js │ │ ├── OnOrOff.js │ │ └── Permissions.js │ │ ├── Switchs │ │ ├── Commands │ │ │ ├── Help.js │ │ │ ├── Language.js │ │ │ ├── AutoResponse.js │ │ │ ├── SetupRegister.js │ │ │ ├── SetRegisterType.js │ │ │ ├── RegisterCountRoles.js │ │ │ ├── Vip.js │ │ │ ├── SetCustomNames.js │ │ │ ├── Alisa.js │ │ │ ├── Partner.js │ │ │ ├── Authorized.js │ │ │ └── Premium.js │ │ ├── OnOrOff.js │ │ ├── CancelOrReset.js │ │ └── Index.js │ │ └── Index.js └── Random │ ├── GuildDelete.js │ └── GuildCreate.js ├── start.bat ├── Events ├── Alisa │ └── Errors │ │ ├── Error.js │ │ └── Warn.js ├── Message │ ├── MessageUpdate.js │ └── MessageDelete.js └── Guild │ └── MemberAction │ └── GuildMemberRemove.js ├── package.json ├── LICENSE ├── Commands ├── Button │ └── RegisterCommands │ │ ├── BotRegister.js │ │ ├── RegisterAgain.js │ │ ├── GirlRegister.js │ │ ├── BoyRegister.js │ │ └── MemberRegister.js ├── Slash │ ├── 1-BotCommands │ │ ├── Help.js │ │ ├── Ping.js │ │ ├── Invite.js │ │ ├── Support.js │ │ ├── VoteBot.js │ │ └── CommandHelp.js │ ├── 3-StatCommands │ │ ├── Top.js │ │ ├── Voice.js │ │ ├── Message.js │ │ ├── TopMembers.js │ │ ├── VoiceList.js │ │ ├── MessageList.js │ │ ├── TextChannelList.js │ │ ├── VoiceChannelList.js │ │ ├── Me.js │ │ └── Channel.js │ ├── 2-InformationCommands │ │ ├── Count.js │ │ ├── GuildInfo.js │ │ ├── GuildTotalRegister.js │ │ ├── RegisterLeaderboard.js │ │ ├── MemberNames.js │ │ ├── Afk.js │ │ ├── Snipe.js │ │ ├── Banner.js │ │ ├── Pp.js │ │ ├── RegisterRank.js │ │ ├── UserInfo.js │ │ └── RegisterAuthInfo.js │ ├── 4-RegisterCommands │ │ ├── Information.js │ │ ├── Test.js │ │ ├── Unregister.js │ │ ├── SetUnregisterRole.js │ │ ├── SetAuthorizedRole.js │ │ ├── SetGuildTag.js │ │ ├── SetAgeLimit.js │ │ ├── SetRegisterChannel.js │ │ ├── SetGuildSymbol.js │ │ ├── SetRegisterLogChannel.js │ │ ├── SetAfterRegisterChannel.js │ │ ├── SetBotRoles.js │ │ ├── SetBoyRoles.js │ │ ├── SetGirlRoles.js │ │ ├── SetAutoname.js │ │ └── SetMemberRoles.js │ ├── 8-PremiumCommands │ │ ├── UnregisterMembers.js │ │ ├── UserLogs.js │ │ └── ShowAllNames.js │ ├── 5-ModerationCommands │ │ ├── Lock.js │ │ ├── Unlock.js │ │ ├── Unmute.js │ │ ├── Unban.js │ │ ├── SetBanRole.js │ │ ├── SetKickRole.js │ │ ├── SetMuteRole.js │ │ └── SetModLogChannel.js │ ├── 7-JailCommands │ │ ├── Unjail.js │ │ ├── SetJailRole.js │ │ ├── SetJailAuthRole.js │ │ └── SetJailLogChannel.js │ ├── 6-AuthorizedCommands │ │ ├── Suspicious.js │ │ ├── SetSuspiciousRole.js │ │ ├── SetSuspiciousTime.js │ │ ├── SetVoiceChannel.js │ │ └── ChangePrefix.js │ └── 9-FunCommands │ │ └── Spotify.js ├── Prefix │ ├── 01-BotCommands │ │ ├── Ping.js │ │ └── VoteBot.js │ ├── 04-RegisterCommands │ │ ├── SetAutoname.js │ │ ├── BotRegister.js │ │ ├── MemberRegister.js │ │ ├── BoyRegister.js │ │ └── GirlRegister.js │ ├── 07-JailCommands │ │ └── Advert.js │ └── 10-OwnerCommands │ │ ├── UserAndGuildCount.js │ │ ├── IBAN.js │ │ ├── UseCommand.js │ │ └── Events.js └── Interaction │ └── ContextMenu │ ├── Banner.js │ ├── Pp.js │ ├── Permissions.js │ ├── UserInfo.js │ └── Stats.js └── Handlers └── LoadEvents.js /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/NoName.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["no name", "noname"]); -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/Resets.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["reset", "clear", "delete", "remove"]); -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/NoName.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["isimsiz", "isim yok", "no name", "noname"]); -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/Remove.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["leave", "reset", "remove", "clear", "delete", "takeoff"]) -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/Remove.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = new Set(["çıkar", "kaldır", "kaldir", "cikar", "sıfırla", "sifirla"]); -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/Resets.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["sıfırla", "sifirla", "reset", "temizle", "sil", "kaldır"]); -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/Yes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["evet", "doğru", "doğru", "olur", "olur", "tamam", "tmm", "tm"]); -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/No.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["no", "nope", "false", "not", "n", "nah", "nay", "naw", "nein", "nix", "nay"]); -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/No.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["hayır", "hayir", "yanlış", "yanlis", "no", "yok", "yoksa", "yok", "değil", "degil"]); -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/Yes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports = new Set(["yes", "yeah", "yep", "true", "ok", "okay", "okey", "sure", "fine", "y", "ye", "yee"]); -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/MissingDatas.js: -------------------------------------------------------------------------------- 1 | const allMissingDatas = { 2 | tag: "Please tag someone or enter his/her ID", 3 | wrongId: "It seems like you entered something else's ID :(" 4 | }; 5 | 6 | module.exports = allMissingDatas; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/MissingDatas.js: -------------------------------------------------------------------------------- 1 | const allMissingDatas = { 2 | tag: "Lütfen bir kişiyi etiketleyiniz ya da ID'sini giriniz", 3 | wrongId: "Görünen o ki başka bir şeyin ID'sini yazdınız :(" 4 | } 5 | 6 | module.exports = allMissingDatas; -------------------------------------------------------------------------------- /start.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | SETLOCAL EnableDelayedExpansion 3 | 4 | :: Botu çalıştırma ve yeniden başlatma döngüsü 5 | :RESTART_LOOP 6 | 7 | :: Botu başlat 8 | node Shard.js 9 | 10 | :: Botun kapanmasını bekle ve döngüyü tekrarla 11 | timeout /t 5 /nobreak >nul 12 | goto RESTART_LOOP -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/UnknownErrors.js: -------------------------------------------------------------------------------- 1 | const allUnknownErrors = { 2 | unknownError(error) { 3 | return `Umm.. An error occurred, can you try again later?\n` + 4 | `\`\`\`js\n` + 5 | `${error}\`\`\`` 6 | } 7 | } 8 | 9 | module.exports = allUnknownErrors; -------------------------------------------------------------------------------- /Helpers/Localizations/En/Sets/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Sets/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | noName: require("./NoName"), 6 | no: require("./No"), 7 | remove: require("./Remove"), 8 | resets: require("./Resets"), 9 | yes: require("./Yes"), 10 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/UnknownErrors.js: -------------------------------------------------------------------------------- 1 | const allUnknownErrors = { 2 | unknownError(error) { 3 | return `Iıııı şey.. Bir hata oluştu da daha sonra tekrar dener misin?\n` + 4 | `\`\`\`js\n` + 5 | `${error}\`\`\`` 6 | } 7 | } 8 | 9 | module.exports = allUnknownErrors; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Sets/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Sets/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | noName: require("./NoName"), 6 | no: require("./No"), 7 | remove: require("./Remove"), 8 | resets: require("./Resets"), 9 | yes: require("./Yes"), 10 | } -------------------------------------------------------------------------------- /Events/Alisa/Errors/Error.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | Events, 4 | } = require("discord.js"); 5 | 6 | module.exports = { 7 | name: Events.Error, 8 | /** 9 | * 10 | * @param {Error} error 11 | */ 12 | async execute(error) { 13 | console.error(error); 14 | } 15 | } -------------------------------------------------------------------------------- /Events/Alisa/Errors/Warn.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | Events, 4 | } = require("discord.js"); 5 | 6 | module.exports = { 7 | name: Events.Warn, 8 | /** 9 | * 10 | * @param {String} error 11 | */ 12 | async execute(error) { 13 | console.error(error); 14 | } 15 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/MessageArrows.js: -------------------------------------------------------------------------------- 1 | const messageArrows = { 2 | notWorking: "**• If the pages are not changing when you press the buttons, please delete this message and create a new one**", 3 | inactive: "• This message is no longer active", 4 | page: "Page" 5 | }; 6 | 7 | module.exports = messageArrows; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/MessageArrows.js: -------------------------------------------------------------------------------- 1 | const messageArrows = { 2 | notWorking: "**• Eğer düğmelere bastığınız halde sayfalar değişmiyorsa lütfen bu mesajı siliniz ve yeni bir tane oluşturunuz**", 3 | inactive: "• Bu mesaj artık aktif değildir", 4 | page: "Sayfa" 5 | } 6 | 7 | module.exports = messageArrows; -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Help.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | "All commands": "allCommands", 3 | "Owner commands": "ownerCommands", 4 | } 5 | 6 | /** 7 | * "language.js dosyası" Girilen anahtar kelimeye göre switch yapar 8 | * @param {String} switchKey 9 | * @returns {"allCommands" | "ownerCommands" | null} 10 | */ 11 | module.exports = function (switchKey) { 12 | return set[switchKey] || null; 13 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/Buttons.js: -------------------------------------------------------------------------------- 1 | 2 | const allMessages = { 3 | notAuthor(authorId) { 4 | return `Bu butonu sadece komutu kullanan kişi (<@${authorId}>) kullanabilir :(` 5 | }, 6 | embedDeleted(prefix) { 7 | return `Mesajda gösterilen embed silindiği için artık bu butonlar işe yaramaz. Lütfen **${prefix}yardım** yazarak yeni bir mesaj daha oluşturunuz` 8 | }, 9 | } 10 | 11 | module.exports = allMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/Buttons.js: -------------------------------------------------------------------------------- 1 | 2 | const allMessages = { 3 | notAuthor(authorId) { 4 | return `Only the person using the command (<@${authorId}>) can use this button :(` 5 | }, 6 | embedDeleted(prefix) { 7 | return `These buttons are no longer useful because the embed shown in the message has been deleted. Please create a new message by typing **${prefix}help**` 8 | }, 9 | } 10 | 11 | module.exports = allMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Help.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | "Tüm komutlar": "allCommands", 3 | "Sahip komutları": "ownerCommands", 4 | } 5 | 6 | /** 7 | * "language.js dosyası" Girilen anahtar kelimeye göre switch yapar 8 | * @param {String} switchKey 9 | * @param {"tr" | "en"} language 10 | * @returns {"allCommands" | "ownerCommands" | null} 11 | */ 12 | module.exports = function (switchKey) { 13 | return set[switchKey] || null; 14 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/SelectMenu.js: -------------------------------------------------------------------------------- 1 | const allMessages = { 2 | notAuthor(authorId) { 3 | return `This menu can only be used by the person who used the command (<@${authorId}>) :(` 4 | }, 5 | notFoundCategory: `We can't get help commands right now, please try again later!`, 6 | embedDeleted(prefix) { 7 | return `This menu is no longer useful because the embed shown in the message has been deleted. Please create a new message by typing **${prefix}help**`; 8 | } 9 | } 10 | 11 | module.exports = allMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/SelectMenu.js: -------------------------------------------------------------------------------- 1 | 2 | const allMessages = { 3 | notAuthor(authorId) { 4 | return `Bu menüyü sadece komutu kullanan kişi (<@${authorId}>) kullanabilir :(` 5 | }, 6 | notFoundCategory: `Yardım komutlarını şu anda çekemiyoruz, lütfen daha sonra tekrar deneyiniz!`, 7 | embedDeleted(prefix) { 8 | return `Mesajda gösterilen embed silindiği için artık bu menü işe yaramaz. Lütfen **${prefix}yardım** yazarak yeni bir mesaj daha oluşturunuz`; 9 | } 10 | } 11 | 12 | module.exports = allMessages; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alisa", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "Index.js", 6 | "scripts": { 7 | "test": "node Shard.js", 8 | "start": "node Shard.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@discordjs/voice": "^0.16.0", 14 | "axios": "^1.7.7", 15 | "chalk": "^5.4.1", 16 | "discord.js": "^14.19.0", 17 | "fs": "^0.0.1-security", 18 | "heapdump": "^0.3.15", 19 | "lru-cache": "^11.0.2", 20 | "mongodb": "^6.12.0", 21 | "mongoose": "^8.8.1", 22 | "topgg-autoposter": "^2.0.1" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Language.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | tr: new Set([ 3 | "tr", 4 | "türkçe", 5 | "turkish", 6 | "turkce" 7 | ]), 8 | en: new Set([ 9 | "en", 10 | "ingilizce", 11 | "english" 12 | ]), 13 | } 14 | 15 | /** 16 | * "language.js dosyası" Girilen anahtar kelimeye göre switch yapar 17 | * @param {String} switchKey 18 | * @returns {"tr" | "en" | null} 19 | */ 20 | module.exports = function (switchKey) { 21 | for (const key in set) { 22 | if (set[key].has(switchKey)) return key; 23 | } 24 | return null; 25 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Language.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | tr: new Set([ 3 | "tr", 4 | "türkçe", 5 | "turkish", 6 | "turkce" 7 | ]), 8 | en: new Set([ 9 | "en", 10 | "ingilizce", 11 | "english" 12 | ]), 13 | } 14 | 15 | /** 16 | * "language.js dosyası" Girilen anahtar kelimeye göre switch yapar 17 | * @param {String} switchKey 18 | * @returns {"tr" | "en" | null} 19 | */ 20 | module.exports = function (switchKey) { 21 | for (const key in set) { 22 | if (set[key].has(switchKey)) return key; 23 | } 24 | return null; 25 | } -------------------------------------------------------------------------------- /Events/Message/MessageUpdate.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | Events, 4 | Message 5 | } = require("discord.js"); 6 | const { 7 | ownerId 8 | } = require("../../settings.json"); 9 | const messageCreate = require("./MessageCreate"); 10 | 11 | module.exports = { 12 | name: Events.MessageUpdate, 13 | /** 14 | * 15 | * @param {Message} _ 16 | * @param {Message} newMessage 17 | */ 18 | async execute(_, newMessage) { 19 | 20 | // Eğer kişi bot sahibiyse messageCreate eventini çalıştır 21 | if (newMessage.author?.id == ownerId) return messageCreate.execute(newMessage); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/CancelOrReset.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../Sets/Resets") 2 | const set = { 3 | cancel: new Set([ 4 | "cancel", 5 | "close", 6 | "off", 7 | "deactive", 8 | ]), 9 | reset: resetSet, 10 | } 11 | 12 | /** 13 | * "İptal mi ettiğini yoksa sıfırlamak istediğini mi döndürür" Girilen anahtar kelimeye göre switch yapar 14 | * @param {String} switchKey 15 | * @returns {"cancel" | "reset" | null} 16 | */ 17 | module.exports = function (switchKey) { 18 | for (const key in set) { 19 | if (set[key].has(switchKey)) return key; 20 | } 21 | return null; 22 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/OnOrOff.js: -------------------------------------------------------------------------------- 1 | /** 2 | * on ve off komutları için mesajları döndürür 3 | * @param {String} optionName 4 | * @returns {{ alreadyOn: String, successOn: String, alreadyOff: String, successOff: String }} 5 | */ 6 | function allOnOffMessages(optionName) { 7 | return { 8 | alreadyOn: `${optionName} ayarım zaten __**açık**__ durumda`, 9 | successOn: `${optionName} ayarım başarıyla açıldı!`, 10 | alreadyOff: `${optionName} ayarım zaten __**kapalı**__ durumda`, 11 | successOff: `${optionName} ayarım başarıyla kapatıldı!` 12 | } 13 | } 14 | 15 | module.exports = allOnOffMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/OnOrOff.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | on: new Set([ 3 | "on", 4 | "open", 5 | "active", 6 | ]), 7 | off: new Set([ 8 | "off", 9 | "close", 10 | "deactive", 11 | ]), 12 | } 13 | 14 | /** 15 | * "Açık mı kapalı mı olduğunu döndürür" Girilen anahtar kelimeye göre switch yapar 16 | * @param {String} switchKey 17 | * @param {"tr" | "en"} language 18 | * @returns {"on" | "off" | null} 19 | */ 20 | module.exports = function (switchKey) { 21 | for (const key in set) { 22 | if (set[key].has(switchKey)) return key; 23 | } 24 | return null; 25 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/OnOrOff.js: -------------------------------------------------------------------------------- 1 | /** 2 | * on ve off komutları için mesajları döndürür 3 | * @param {String} optionName 4 | * @returns {{ alreadyOn: String, successOn: String, alreadyOff: String, successOff: String }} 5 | */ 6 | function allOnOffMessages(optionName) { 7 | return { 8 | alreadyOn: `${optionName} setting is already __**on**__`, 9 | successOn: `${optionName} setting has been successfully __**on**__!`, 10 | alreadyOff: `${optionName} setting is already __**off**__`, 11 | successOff: `${optionName} setting has been successfully __**off**__!` 12 | } 13 | }; 14 | 15 | module.exports = allOnOffMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/OnOrOff.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | on: new Set([ 3 | "aç", 4 | "ac", 5 | "açık", 6 | "acik", 7 | "aktif", 8 | ]), 9 | off: new Set([ 10 | "kapat", 11 | "kapalı", 12 | "kapali", 13 | "deaktif", 14 | ]), 15 | } 16 | 17 | /** 18 | * "Açık mı kapalı mı olduğunu döndürür" Girilen anahtar kelimeye göre switch yapar 19 | * @param {String} switchKey 20 | * @returns {"on" | "off" | null} 21 | */ 22 | module.exports = function (switchKey) { 23 | for (const key in set) { 24 | if (set[key].has(switchKey)) return key; 25 | } 26 | return null; 27 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/AutoResponse.js: -------------------------------------------------------------------------------- 1 | const removeSet = require("../../Sets/Remove") 2 | const set = { 3 | add: new Set([ 4 | "set", 5 | "save", 6 | "register", 7 | "add", 8 | ]), 9 | remove: removeSet, 10 | list: new Set([ 11 | "list", 12 | ]), 13 | } 14 | 15 | /** 16 | * "auto response.js dosyası" Girilen anahtar kelimeye göre switch yapar 17 | * @param {String} switchKey 18 | * @returns {"set" | "remove" | "list" | null} 19 | */ 20 | module.exports = function (switchKey) { 21 | for (const key in set) { 22 | if (set[key].has(switchKey)) return key; 23 | } 24 | return null; 25 | } -------------------------------------------------------------------------------- /Helpers/Random/GuildDelete.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * Bot sunucudan atıldığında atılacak mesajlar 5 | * @param {String} guildName 6 | * @returns {Array} 7 | */ 8 | module.exports = function (guildName) { 9 | return [ 10 | `**${guildName}** sunucusundan ayrıldım`, 11 | `**${guildName}** beni attılar yazıklar olsun`, 12 | `**${guildName}** hepsi bunun için miydi :(`, 13 | `**${guildName}** zaten ben burayı hak etmiyordum`, 14 | `**${guildName}** ben daha iyilerine layığım hıh`, 15 | `**${guildName}** atmasaydınız keşke...`, 16 | `**${guildName}** niye beni üzüyorsunuz :(`, 17 | `**${guildName}** kalbim kırıldı` 18 | ] 19 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/SetRegisterType.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | gender: new Set([ 3 | "gender", 4 | "g", 5 | "malefemale", 6 | "maleandfemale", 7 | "maleorfemale", 8 | ]), 9 | member: new Set([ 10 | "member", 11 | "memberregister", 12 | "singlerole", 13 | ]) 14 | } 15 | 16 | /** 17 | * "set register type.js dosyası" Girilen anahtar kelimeye göre switch yapar 18 | * @param {String} switchKey 19 | * @returns {"gender" | "member" | null} 20 | */ 21 | module.exports = function (switchKey) { 22 | for (const key in set) { 23 | if (set[key].has(switchKey)) return key; 24 | } 25 | return null; 26 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/SetupRegister.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | cancel: new Set([ 3 | "cancel", 4 | "end", 5 | "close", 6 | "stop" 7 | ]), 8 | skip: new Set([ 9 | "skip", 10 | "pass" 11 | ]), 12 | back: new Set([ 13 | "back", 14 | "previous" 15 | ]), 16 | } 17 | 18 | /** 19 | * "setup register.js dosyası" Girilen anahtar kelimeye göre switch yapar 20 | * @param {String} switchKey 21 | * @returns {"cancel" | "skip" | "back" | null} 22 | */ 23 | module.exports = function (switchKey) { 24 | for (const key in set) { 25 | if (set[key].has(switchKey)) return key; 26 | } 27 | return null; 28 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/AutoResponse.js: -------------------------------------------------------------------------------- 1 | const removeSet = require("../../Sets/Remove") 2 | const set = { 3 | add: new Set([ 4 | "ayarla", 5 | "set", 6 | "kaydet", 7 | "kayıt", 8 | "ekle", 9 | "add", 10 | ]), 11 | remove: removeSet, 12 | list: new Set([ 13 | "liste", 14 | "list", 15 | ]), 16 | } 17 | 18 | /** 19 | * "auto response.js dosyası" Girilen anahtar kelimeye göre switch yapar 20 | * @param {String} switchKey 21 | * @returns {"set" | "remove" | "list" | null} 22 | */ 23 | module.exports = function (switchKey) { 24 | for (const key in set) { 25 | if (set[key].has(switchKey)) return key; 26 | } 27 | return null; 28 | } -------------------------------------------------------------------------------- /Helpers/Random/GuildCreate.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * Bot sunucuya eklendiğinde atılacak mesajlar 5 | * @param {String} guildName 6 | * @returns {Array} 7 | */ 8 | module.exports = function (guildName) { 9 | return [ 10 | `**${guildName}** sunucusuna eklendim`, 11 | `**${guildName}** sunucusuna ayak bastım`, 12 | `**${guildName}** burada hava baya hoşmuş`, 13 | `**${guildName}** yeni sunucudan selamlaaarrrr`, 14 | `**${guildName}** sizde gelin burası çok güzel`, 15 | `**${guildName}** yeni yerleri gezmeyi seviyorum be`, 16 | `**${guildName}** sunucusundan gizli bir görev için çağırıldım`, 17 | `**${guildName}** sunucusu beni gizli bir operasyon için çağırdı` 18 | ] 19 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/SetCustomNames.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | register: new Set([ 3 | "register", 4 | ]), 5 | registerbot: new Set([ 6 | "registerbot", 7 | "botregister", 8 | ]), 9 | login: new Set([ 10 | "login", 11 | ]), 12 | loginbot: new Set([ 13 | "loginbot", 14 | "botlogin", 15 | ]), 16 | } 17 | 18 | /** 19 | * "set custom names.js dosyası" Girilen anahtar kelimeye göre switch yapar 20 | * @param {String} switchKey 21 | * @returns {"register" | "registerbot" | "login" | "loginbot" | null} 22 | */ 23 | module.exports = function (switchKey) { 24 | for (const key in set) { 25 | if (set[key].has(switchKey)) return key; 26 | } 27 | return null; 28 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Vip.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | role: new Set([ 3 | "rol", 4 | "setrole", 5 | "role", 6 | "set", 7 | ]), 8 | authorized: new Set([ 9 | "authorized", 10 | "authrole", 11 | "authorizedrole", 12 | "auth", 13 | ]), 14 | take: new Set([ 15 | "take", 16 | "takerole", 17 | "remove", 18 | "removerole" 19 | ]), 20 | } 21 | 22 | /** 23 | * "vip.js dosyası" Girilen anahtar kelimeye göre switch yapar 24 | * @param {String} switchKey 25 | * @returns {"role" | "authorized" | "take" | null} 26 | */ 27 | module.exports = function (switchKey) { 28 | for (const key in set) { 29 | if (set[key].has(switchKey)) return key; 30 | } 31 | return null; 32 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/CancelOrReset.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../Sets/Resets") 2 | const set = { 3 | cancel: new Set([ 4 | "iptal", 5 | "vazgeç", 6 | "kapat", 7 | "kapatma", 8 | "kapatmak", 9 | "vazgeçmek", 10 | "iptal et", 11 | "iptal etme", 12 | "cancel", 13 | "close", 14 | "off", 15 | "deactive", 16 | ]), 17 | reset: resetSet, 18 | } 19 | 20 | /** 21 | * "İptal mi ettiğini yoksa sıfırlamak istediğini mi döndürür" Girilen anahtar kelimeye göre switch yapar 22 | * @param {String} switchKey 23 | * @returns {"cancel" | "reset" | null} 24 | */ 25 | module.exports = function (switchKey) { 26 | for (const key in set) { 27 | if (set[key].has(switchKey)) return key; 28 | } 29 | return null; 30 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/SetupRegister.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | cancel: new Set([ 3 | "iptal", 4 | "bitir", 5 | "kapat", 6 | "vazgeç", 7 | "vazgec", 8 | "cancel" 9 | ]), 10 | skip: new Set([ 11 | "geç", 12 | "gec", 13 | "atla", 14 | "skip" 15 | ]), 16 | back: new Set([ 17 | "geri", 18 | "back", 19 | "onceki", 20 | "önceki" 21 | ]), 22 | } 23 | 24 | /** 25 | * "setup register.js dosyası" Girilen anahtar kelimeye göre switch yapar 26 | * @param {String} switchKey 27 | * @returns {"cancel" | "skip" | "back" | null} 28 | */ 29 | module.exports = function (switchKey) { 30 | for (const key in set) { 31 | if (set[key].has(switchKey)) return key; 32 | } 33 | return null; 34 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/SetRegisterType.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | gender: new Set([ 3 | "cinsiyet", 4 | "cin", 5 | "c", 6 | "erkekkız", 7 | "erkekvekız", 8 | "erkekveyakız", 9 | "kızerkek", 10 | "kızveerkek", 11 | "kızveyaerkek", 12 | "gender", 13 | "ikirol" 14 | ]), 15 | member: new Set([ 16 | "üye", 17 | "üyekayıt", 18 | "tekrol", 19 | "birrol" 20 | ]) 21 | } 22 | 23 | /** 24 | * "set register type.js dosyası" Girilen anahtar kelimeye göre switch yapar 25 | * @param {String} switchKey 26 | * @returns {"gender" | "member" | null} 27 | */ 28 | module.exports = function (switchKey) { 29 | for (const key in set) { 30 | if (set[key].has(switchKey)) return key; 31 | } 32 | return null; 33 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/RegisterCountRoles.js: -------------------------------------------------------------------------------- 1 | const removeSet = require("../../Sets/Remove"); 2 | const resetSet = require("../../Sets/Resets"); 3 | const set = { 4 | set: new Set([ 5 | "set", 6 | "add" 7 | ]), 8 | remove: removeSet, 9 | change: new Set([ 10 | "change", 11 | "edit" 12 | ]), 13 | reset: resetSet, 14 | list: new Set([ 15 | "list", 16 | "show", 17 | "see" 18 | ]), 19 | } 20 | 21 | /** 22 | * "RegisterCountRole.js dosyası" Girilen anahtar kelimeye göre switch yapar 23 | * @param {String} switchKey 24 | * @returns {"set" | "remove" | "change" | "reset" | "list" | null} 25 | */ 26 | module.exports = function (switchKey) { 27 | for (const key in set) { 28 | if (set[key].has(switchKey)) return key; 29 | } 30 | return null; 31 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Authorized.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../../Sets/Resets") 2 | const set = { 3 | set: new Set([ 4 | "set", 5 | "add" 6 | ]), 7 | reset: resetSet, 8 | view: new Set([ 9 | "see", 10 | "view" 11 | ]), 12 | tag: new Set([ 13 | "tag", 14 | "tagrole" 15 | ]), 16 | role: new Set([ 17 | "role", 18 | "roles", 19 | "authorized", 20 | "authorizedrole" 21 | ]), 22 | } 23 | 24 | /** 25 | * "authorized.js dosyası" Girilen anahtar kelimeye göre switch yapar 26 | * @param {String} switchKey 27 | * @returns {"set" | "reset" | "see" | "tag" | "role" | null} 28 | */ 29 | module.exports = function (switchKey) { 30 | for (const key in set) { 31 | if (set[key].has(switchKey)) return key; 32 | } 33 | return null; 34 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/RegisterCountRoles.js: -------------------------------------------------------------------------------- 1 | const removeSet = require("../../Sets/Remove"); 2 | const resetSet = require("../../Sets/Resets"); 3 | const set = { 4 | set: new Set([ 5 | "ekle", 6 | "oluştur", 7 | "ayarla" 8 | ]), 9 | remove: removeSet, 10 | change: new Set([ 11 | "değiştir", 12 | "düzenle" 13 | ]), 14 | reset: resetSet, 15 | list: new Set([ 16 | "liste", 17 | "göster", 18 | "gör" 19 | ]), 20 | } 21 | 22 | /** 23 | * "RegisterCountRole.js dosyası" Girilen anahtar kelimeye göre switch yapar 24 | * @param {String} switchKey 25 | * @returns {"set" | "remove" | "change" | "reset" | "list" | null} 26 | */ 27 | module.exports = function (switchKey) { 28 | for (const key in set) { 29 | if (set[key].has(switchKey)) return key; 30 | } 31 | return null; 32 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Vip.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | role: new Set([ 3 | "rol", 4 | "rolayarla", 5 | "role", 6 | "setrole", 7 | "set", 8 | ]), 9 | authorized: new Set([ 10 | "yetkili", 11 | "yetkilirol", 12 | "authorized", 13 | "authorizedrole", 14 | "authrole", 15 | "auth", 16 | ]), 17 | take: new Set([ 18 | "al", 19 | "alrol", 20 | "take", 21 | "takerole", 22 | "remove", 23 | "removerole" 24 | ]), 25 | } 26 | 27 | /** 28 | * "vip.js dosyası" Girilen anahtar kelimeye göre switch yapar 29 | * @param {String} switchKey 30 | * @returns {"role" | "authorized" | "take" | null} 31 | */ 32 | module.exports = function (switchKey) { 33 | for (const key in set) { 34 | if (set[key].has(switchKey)) return key; 35 | } 36 | return null; 37 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Switchs/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | cancelOrReset: require("./CancelOrReset"), 6 | onOrOff: require("./OnOrOff"), 7 | alisa: require("./Commands/Alisa"), 8 | authorized: require("./Commands/Authorized"), 9 | autoResponse: require("./Commands/AutoResponse"), 10 | help: require("./Commands/Help"), 11 | language: require("./Commands/Language"), 12 | partner: require("./Commands/Partner"), 13 | premium: require("./Commands/Premium"), 14 | registerCountRoles: require("./Commands/RegisterCountRoles"), 15 | setCountOptions: require("./Commands/SetCountOptions"), 16 | setCustomNames: require("./Commands/SetCustomNames"), 17 | setRegisterType: require("./Commands/SetRegisterType"), 18 | setupRegister: require("./Commands/SetupRegister"), 19 | vip: require("./Commands/Vip"), 20 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Switchs/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | cancelOrReset: require("./CancelOrReset"), 6 | onOrOff: require("./OnOrOff"), 7 | alisa: require("./Commands/Alisa"), 8 | authorized: require("./Commands/Authorized"), 9 | autoResponse: require("./Commands/AutoResponse"), 10 | help: require("./Commands/Help"), 11 | language: require("./Commands/Language"), 12 | partner: require("./Commands/Partner"), 13 | premium: require("./Commands/Premium"), 14 | registerCountRoles: require("./Commands/RegisterCountRoles"), 15 | setCountOptions: require("./Commands/SetCountOptions"), 16 | setCustomNames: require("./Commands/SetCustomNames"), 17 | setRegisterType: require("./Commands/SetRegisterType"), 18 | setupRegister: require("./Commands/SetupRegister"), 19 | vip: require("./Commands/Vip"), 20 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Partner.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../../Sets/Resets") 2 | const set = { 3 | set: new Set([ 4 | "set", 5 | "save", 6 | "register", 7 | "role", 8 | "setrole", 9 | ]), 10 | reset: resetSet, 11 | view: new Set([ 12 | "view", 13 | "show", 14 | "see", 15 | "display", 16 | ]), 17 | tag: new Set([ 18 | "tag", 19 | "mention", 20 | ]), 21 | role: new Set([ 22 | "role", 23 | "rol", 24 | ]), 25 | } 26 | 27 | /** 28 | * "set register type.js dosyası" Girilen anahtar kelimeye göre switch yapar 29 | * @param {String} switchKey 30 | * @returns {"set" | "reset" | "view" | "tag" | "role" | null} 31 | */ 32 | module.exports = function (switchKey) { 33 | for (const key in set) { 34 | if (set[key].has(switchKey)) return key; 35 | } 36 | return null; 37 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/SetCustomNames.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | register: new Set([ 3 | "kayıt", 4 | "register", 5 | ]), 6 | registerbot: new Set([ 7 | "kayıtbot", 8 | "kayitbot", 9 | "botkayıt", 10 | "botregister", 11 | ]), 12 | login: new Set([ 13 | "giriş", 14 | "giris", 15 | "login", 16 | ]), 17 | loginbot: new Set([ 18 | "girişbot", 19 | "girisbot", 20 | "botgiriş", 21 | "botgiris", 22 | "botlogin", 23 | ]), 24 | } 25 | /** 26 | * "set custom names.js dosyası" Girilen anahtar kelimeye göre switch yapar 27 | * @param {String} switchKey 28 | * @returns {"register" | "registerbot" | "login" | "loginbot" | null} 29 | */ 30 | module.exports = function (switchKey) { 31 | for (const key in set) { 32 | if (set[key].has(switchKey)) return key; 33 | } 34 | return null; 35 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Alisa.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | leaderboard: new Set([ 3 | "sıra", 4 | "sıralama", 5 | "liderlik" 6 | ]), 7 | commands: new Set([ 8 | "komutlar", 9 | "komut", 10 | "commands", 11 | "command" 12 | ]), 13 | total: new Set([ 14 | "toplam", 15 | "total" 16 | ]), 17 | guilds: new Set([ 18 | "sunucu", 19 | "sunucular", 20 | "guild", 21 | "guilds" 22 | ]), 23 | who: new Set([ 24 | "kim", 25 | "who" 26 | ]), 27 | } 28 | 29 | /** 30 | * "alisa.js dosyası" Girilen anahtar kelimeye göre switch yapar 31 | * @param {String} switchKey 32 | * @returns {"leaderboard" | "commands" | "total" | "guilds" | "who" | null} 33 | */ 34 | module.exports = function (switchKey) { 35 | for (const key in set) { 36 | if (set[key].has(switchKey)) return key; 37 | } 38 | return null; 39 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Partner.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../../Sets/Resets") 2 | const set = { 3 | set: new Set([ 4 | "ayarla", 5 | "set", 6 | "kaydet", 7 | "kayıt", 8 | "rolayarla", 9 | ]), 10 | reset: resetSet, 11 | view: new Set([ 12 | "görüntüle", 13 | "gör", 14 | "view", 15 | "show", 16 | "see" 17 | ]), 18 | tag: new Set([ 19 | "etiket", 20 | "etiketle", 21 | "bahset", 22 | "tag" 23 | ]), 24 | role: new Set([ 25 | "rol", 26 | "role" 27 | ]), 28 | } 29 | 30 | /** 31 | * "set register type.js dosyası" Girilen anahtar kelimeye göre switch yapar 32 | * @param {String} switchKey 33 | * @returns {"set" | "reset" | "view" | "tag" | "role" | null} 34 | */ 35 | module.exports = function (switchKey) { 36 | for (const key in set) { 37 | if (set[key].has(switchKey)) return key; 38 | } 39 | return null; 40 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Messages/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | afterRegister: require("./Messages/AfterRegister"), 6 | buttons: require("./Messages/Buttons"), 7 | channels: require("./Messages/Channels"), 8 | commands: require("./Messages/Commands"), 9 | guildMemberAdd: require("./Messages/GuildMemberAdd"), 10 | members: require("./Messages/Members"), 11 | messageArrows: require("./Messages/MessageArrows"), 12 | missingDatas: require("./Messages/MissingDatas"), 13 | onOrOff: require("./Messages/OnOrOff"), 14 | others: require("./Messages/Others"), 15 | permissions: require("./Messages/Permissions"), 16 | registers: require("./Messages/Registers"), 17 | roles: require("./Messages/Roles"), 18 | unknownErrors: require("./Messages/UnknownErrors"), 19 | selectMenu: require("./Messages/SelectMenu"), 20 | sets: require("./Sets/Index.js"), 21 | switchs: require("./Switchs/Index.js"), 22 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // Messages/ adlı klasördeki tüm dosyaları obje olarak döndürür 4 | module.exports = { 5 | afterRegister: require("./Messages/AfterRegister"), 6 | buttons: require("./Messages/Buttons"), 7 | channels: require("./Messages/Channels"), 8 | commands: require("./Messages/Commands"), 9 | guildMemberAdd: require("./Messages/GuildMemberAdd"), 10 | members: require("./Messages/Members"), 11 | messageArrows: require("./Messages/MessageArrows"), 12 | missingDatas: require("./Messages/MissingDatas"), 13 | onOrOff: require("./Messages/OnOrOff"), 14 | others: require("./Messages/Others"), 15 | permissions: require("./Messages/Permissions"), 16 | registers: require("./Messages/Registers"), 17 | roles: require("./Messages/Roles"), 18 | unknownErrors: require("./Messages/UnknownErrors"), 19 | selectMenu: require("./Messages/SelectMenu"), 20 | sets: require("./Sets/Index.js"), 21 | switchs: require("./Switchs/Index.js"), 22 | } -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Authorized.js: -------------------------------------------------------------------------------- 1 | const resetSet = require("../../Sets/Resets") 2 | const set = { 3 | set: new Set([ 4 | "ayarla", 5 | "set", 6 | "ekle", 7 | "add" 8 | ]), 9 | reset: resetSet, 10 | view: new Set([ 11 | "gör", 12 | "bak", 13 | "see", 14 | "view" 15 | ]), 16 | tag: new Set([ 17 | "etiket", 18 | "etiketle", 19 | "tag", 20 | "tagrole" 21 | ]), 22 | role: new Set([ 23 | "rol", 24 | "role", 25 | "yetkili", 26 | "yetkilirol", 27 | "authorized", 28 | "authorizedrole" 29 | ]), 30 | } 31 | 32 | /** 33 | * "authorized.js dosyası" Girilen anahtar kelimeye göre switch yapar 34 | * @param {String} switchKey 35 | * @returns {"set" | "reset" | "see" | "tag" | "role" | null} 36 | */ 37 | module.exports = function (switchKey) { 38 | for (const key in set) { 39 | if (set[key].has(switchKey)) return key; 40 | } 41 | return null; 42 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Ali İhsan Çelik 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Helpers/Localizations/En/Messages/Permissions.js: -------------------------------------------------------------------------------- 1 | const allPermissionMessages = { 2 | administrator: "Administrator", 3 | roleOrAdministrator(roleId) { 4 | return `<@&${roleId}> role **or** Administrator` 5 | }, 6 | ban: "Ban Members", 7 | roleOrBan(roleId) { 8 | return `<@&${roleId}> role **or** Ban Members` 9 | }, 10 | moveMembers: "Move Members", 11 | manageMessages: "Manage Messages", 12 | manageRoles: "Manage Roles", 13 | manageChannels: "Manage Channels", 14 | manageEmojisAndStickers: "Manage Emojis and Stickers", 15 | kick: "Kick Members", 16 | roleOrKick(roleId) { 17 | return `<@&${roleId}> role **or** Kick Members` 18 | }, 19 | moderate: "Timeout Members", 20 | roleOrModerate(roleId) { 21 | return `<@&${roleId}> role **or** Timeout Members",` 22 | }, 23 | manageNicknames: "Manage Nicknames", 24 | manageRolesOrNicknames: "Manage Roles **or** Manage Nicknames", 25 | manageRolesOrMoveMembers: "Manage Roles **or** Move Members", 26 | rich: "**either** you should boost the server **or** Change Username" 27 | }; 28 | 29 | module.exports = allPermissionMessages; -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Messages/Permissions.js: -------------------------------------------------------------------------------- 1 | const allPermissionMessages = { 2 | administrator: "Yönetici", 3 | roleOrAdministrator(roleId) { 4 | return `<@&${roleId}> rolüne **veya** Yönetici` 5 | }, 6 | ban: "Üyeleri Yasakla", 7 | roleOrBan(roleId) { 8 | return `<@&${roleId}> rolüne **veya** Üyeleri Yasakla` 9 | }, 10 | moveMembers: "Üyeleri Taşı", 11 | manageMessages: "Mesajları Yönet", 12 | manageRoles: "Rolleri Yönet", 13 | manageChannels: "Kanalları Yönet", 14 | manageEmojisAndStickers: "Emojileri ve Stickerları Yönet", 15 | kick: "Üyeleri At", 16 | roleOrKick(roleId) { 17 | return `<@&${roleId}> rolüne **veya** Üyeleri At` 18 | }, 19 | moderate: "Üyelere Zaman Aşımı Uygula", 20 | roleOrModerate(roleId) { 21 | return `<@&${roleId}> rolüne **veya** Üyelere Zaman Aşımı Uygula",` 22 | }, 23 | manageNicknames: "Kullanıcı Adlarını Yönet", 24 | manageRolesOrNicknames: "Rolleri Yönet **veya** Kullanıcı Adlarını Yönet", 25 | manageRolesOrMoveMembers: "Rolleri Yönet **veya** Üyeleri Taşı", 26 | rich: "**ya** sunucuya boost basmalısın **ya da** Kullanıcı Adlarını Değiştir" 27 | } 28 | 29 | module.exports = allPermissionMessages; -------------------------------------------------------------------------------- /Commands/Button/RegisterCommands/BotRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: "registerBot", // Butonun ismi 6 | id: "bot", // Butonun ID'si 7 | cooldown: 3, // Butonun bekleme süresi 8 | description: "Botu bot olarak kayıt eder", // Butonun açıklaması 9 | care: false, // Butonun bakım modunda olup olmadığını ayarlar 10 | premium: false, // Butonun sadece premium kullanıcılara özel olup olmadığını ayarlar 11 | 12 | /** 13 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 14 | * @param {import("../../../Typedef").ExportsRunButtons} params 15 | */ 16 | async execute({ 17 | alisa, 18 | guildDatabase, 19 | int, 20 | guild, 21 | errorEmbed, 22 | language, 23 | splitCustomId, 24 | }) { 25 | return new Register({ 26 | msgOrInt: int, 27 | guildDatabase, 28 | guild, 29 | msgMember: int.member, 30 | guildMe: guild.members.me, 31 | language, 32 | registerType: "bot", 33 | alisa, 34 | errorEmbed 35 | }).checkControlsAndRegister(splitCustomId[1]); 36 | }, 37 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/Help.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/Help.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/Ping.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/Ping.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/Top.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/Top.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: true, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/Invite.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/Invite.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/Voice.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/Voice.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/Support.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/Support.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/VoteBot.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Util = require("../../../Helpers/Util.js"); 3 | const { 4 | SlashCommandBuilder 5 | } = require("discord.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/VoteBot.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/Message.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/Message.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Button/RegisterCommands/RegisterAgain.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: "registerAgain", // Butonun ismi 6 | id: "yeniden", // Butonun ID'si 7 | cooldown: 3, // Butonun bekleme süresi 8 | description: "Kullanıcıyı önceki verilerle yeniden kayıt eder", // Butonun açıklaması 9 | care: false, // Butonun bakım modunda olup olmadığını ayarlar 10 | premium: false, // Butonun sadece premium kullanıcılara özel olup olmadığını ayarlar 11 | 12 | /** 13 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 14 | * @param {import("../../../Typedef").ExportsRunButtons} params 15 | */ 16 | async execute({ 17 | alisa, 18 | guildDatabase, 19 | int, 20 | guild, 21 | errorEmbed, 22 | language, 23 | splitCustomId 24 | }) { 25 | return new Register({ 26 | msgOrInt: int, 27 | guildDatabase, 28 | guild, 29 | msgMember: int.member, 30 | guildMe: guild.members.me, 31 | language, 32 | alisa, 33 | errorEmbed, 34 | isAgainRegister: true, 35 | }).checkControlsAndRegister(splitCustomId[1]); 36 | }, 37 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/TopMembers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/TopMembers.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/VoiceList.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/VoiceList.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/Count.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/Count.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/MessageList.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/MessageList.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/TextChannelList.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/TextChannelList.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/Information.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js") 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/04-RegisterCommands/Information.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/GuildInfo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/GuildInfo.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/VoiceChannelList.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/VoiceChannelList.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Button/RegisterCommands/GirlRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: "registerGirl", // Butonun ismi 6 | id: "kız", // Butonun ID'si 7 | cooldown: 3, // Butonun bekleme süresi 8 | description: "Kullanıcıyı kız olarak kayıt eder", // Butonun açıklaması 9 | care: false, // Butonun bakım modunda olup olmadığını ayarlar 10 | premium: false, // Butonun sadece premium kullanıcılara özel olup olmadığını ayarlar 11 | 12 | /** 13 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 14 | * @param {import("../../../Typedef").ExportsRunButtons} params 15 | */ 16 | async execute({ 17 | alisa, 18 | guildDatabase, 19 | int, 20 | guild, 21 | errorEmbed, 22 | language, 23 | splitCustomId, 24 | extras 25 | }) { 26 | return new Register({ 27 | msgOrInt: int, 28 | guildDatabase, 29 | guild, 30 | msgMember: int.member, 31 | guildMe: guild.members.me, 32 | language, 33 | registerType: "girl", 34 | alisa, 35 | errorEmbed, 36 | extras 37 | }).checkControlsAndRegister(splitCustomId[1]); 38 | }, 39 | }; -------------------------------------------------------------------------------- /Commands/Slash/8-PremiumCommands/UnregisterMembers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/08-PremiumCommands/UnregisterMembers.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: true, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Button/RegisterCommands/BoyRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: "registerBoy", // Butonun ismi 6 | id: "erkek", // Butonun ID'si 7 | cooldown: 3, // Butonun bekleme süresi 8 | description: "Kullanıcıyı erkek olarak kayıt eder", // Butonun açıklaması 9 | care: false, // Butonun bakım modunda olup olmadığını ayarlar 10 | premium: false, // Butonun sadece premium kullanıcılara özel olup olmadığını ayarlar 11 | 12 | /** 13 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 14 | * @param {import("../../../Typedef").ExportsRunButtons} params 15 | */ 16 | async execute({ 17 | alisa, 18 | guildDatabase, 19 | int, 20 | guild, 21 | errorEmbed, 22 | language, 23 | splitCustomId, 24 | extras 25 | }) { 26 | return new Register({ 27 | msgOrInt: int, 28 | guildDatabase, 29 | guild, 30 | msgMember: int.member, 31 | guildMe: guild.members.me, 32 | language, 33 | registerType: "boy", 34 | alisa, 35 | errorEmbed, 36 | extras 37 | }).checkControlsAndRegister(splitCustomId[1]); 38 | }, 39 | }; -------------------------------------------------------------------------------- /Commands/Button/RegisterCommands/MemberRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: "registerMember", // Butonun ismi 6 | id: "kayıt", // Butonun ID'si 7 | cooldown: 3, // Butonun bekleme süresi 8 | description: "Kullanıcıyı üye olarak kayıt eder", // Butonun açıklaması 9 | care: false, // Butonun bakım modunda olup olmadığını ayarlar 10 | premium: false, // Butonun sadece premium kullanıcılara özel olup olmadığını ayarlar 11 | 12 | /** 13 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 14 | * @param {import("../../../Typedef").ExportsRunButtons} params 15 | */ 16 | async execute({ 17 | alisa, 18 | guildDatabase, 19 | int, 20 | splitCustomId, 21 | guild, 22 | errorEmbed, 23 | language, 24 | extras 25 | }) { 26 | return new Register({ 27 | msgOrInt: int, 28 | guildDatabase, 29 | guild, 30 | msgMember: int.member, 31 | guildMe: guild.members.me, 32 | language, 33 | registerType: "member", 34 | alisa, 35 | errorEmbed, 36 | extras 37 | }).checkControlsAndRegister(splitCustomId[1]); 38 | }, 39 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/GuildTotalRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/GuildTotalRegister.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/RegisterLeaderboard.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/RegisterLeaderboard.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr), 16 | en: new SlashCommandBuilder() 17 | .setName(prefixCommand.name.en) 18 | .setDescription(prefixCommand.description.en) 19 | }, 20 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 21 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 22 | 23 | /** 24 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 25 | * @param {import("../../../Typedef").ExportsRunSlash} params 26 | */ 27 | async execute(params) { 28 | Util.interactionToMessage(params); 29 | 30 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 31 | }, 32 | }; -------------------------------------------------------------------------------- /Events/Guild/MemberAction/GuildMemberRemove.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | GuildMember, 4 | Events 5 | } = require("discord.js"); 6 | const database = require("../../../Helpers/Database.js"); 7 | const Util = require("../../../Helpers/Util.js"); 8 | 9 | module.exports = { 10 | name: Events.GuildMemberRemove, 11 | /** 12 | * 13 | * @param {GuildMember} member 14 | */ 15 | async execute(member) { 16 | try { 17 | 18 | const NOW_TIME = Date.now(); 19 | const guildId = member.guild.id; 20 | 21 | const guildDatabase = await database.getGuild(guildId); 22 | 23 | // Kullanıcının log bilgilerini güncelle 24 | const userLogs = guildDatabase.userLogs[member.id] ??= []; 25 | const userLogObject = { 26 | type: "leaveGuild", 27 | timestamp: NOW_TIME 28 | }; 29 | userLogs.unshift(userLogObject); 30 | 31 | await database.updateGuild(guildId, { 32 | $push: { 33 | [`userLogs.${member.id}`]: { 34 | $each: [userLogObject], 35 | $position: 0, 36 | } 37 | } 38 | }); 39 | 40 | } catch (e) { 41 | console.error(e) 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Alisa.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | leaderboard: new Set([ 3 | "leaderboard", 4 | "leaderboards", 5 | "leader", 6 | "leaders", 7 | "lb", 8 | "rank", 9 | "ranks" 10 | ]), 11 | commands: new Set([ 12 | "commands", 13 | "command", 14 | "cmd", 15 | "cmds" 16 | ]), 17 | total: new Set([ 18 | "total", 19 | "all" 20 | ]), 21 | guilds: new Set([ 22 | "guilds", 23 | "guild", 24 | "server", 25 | "servers", 26 | "guildlb", 27 | "guildleaderboard", 28 | "serverlb", 29 | "serverleaderboard", 30 | "lbguild", 31 | "lbguilds", 32 | "leaderboardguild", 33 | "leaderboardsguild", 34 | "leaderboardsguilds", 35 | "leaderboardsserver", 36 | "leaderboardservers" 37 | ]), 38 | who: new Set([ 39 | "who", 40 | "whos", 41 | "whois" 42 | ]), 43 | }; 44 | 45 | /** 46 | * "alisa.js dosyası" Girilen anahtar kelimeye göre switch yapar 47 | * @param {String} switchKey 48 | * @returns {"leaderboard" | "commands" | "total" | "guilds" | "who" | null} 49 | */ 50 | module.exports = function (switchKey) { 51 | for (const key in set) { 52 | if (set[key].has(switchKey)) return key; 53 | } 54 | return null; 55 | } -------------------------------------------------------------------------------- /Commands/Prefix/01-BotCommands/Ping.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = { 4 | name: { // Komutun ismi 5 | tr: "ping", 6 | en: "ping" 7 | }, 8 | id: "ping", // Komutun ID'si 9 | cooldown: 3, // Komutun bekleme süresi 10 | aliases: { // Komutun diğer çağırma isimleri 11 | tr: [ 12 | "ping" 13 | ], 14 | en: [ 15 | "ping" 16 | ] 17 | }, 18 | description: { // Komutun açıklaması 19 | tr: "Botun pingini gösterir", 20 | en: "Shows the bot's ping" 21 | }, 22 | category: { // Komutun kategorisi (yardım menüsü için) 23 | tr: "Bot komutları", 24 | en: "Bot commands" 25 | }, 26 | usage: { // Komutun kullanım şekli 27 | tr: "ping", 28 | en: "ping" 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 32 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 33 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 34 | 35 | /** 36 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 37 | * @param {import("../../../Typedef").ExportsRunCommands} params 38 | */ 39 | async execute({ 40 | msg, 41 | }) { 42 | 43 | msg.reply(`🏓 Pong! **${msg.client.ws.ping}** ms!`); 44 | 45 | }, 46 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/Test.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/Test.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), 18 | en: new SlashCommandBuilder() 19 | .setName(prefixCommand.name.en) 20 | .setDescription(prefixCommand.description.en) 21 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), 22 | }, 23 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 24 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 25 | 26 | /** 27 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 28 | * @param {import("../../../Typedef").ExportsRunSlash} params 29 | */ 30 | async execute(params) { 31 | Util.interactionToMessage(params); 32 | 33 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 34 | }, 35 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/Lock.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/Lock.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels), 18 | en: new SlashCommandBuilder() 19 | .setName(prefixCommand.name.en) 20 | .setDescription(prefixCommand.description.en) 21 | .setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels) 22 | }, 23 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 24 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 25 | 26 | /** 27 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 28 | * @param {import("../../../Typedef").ExportsRunSlash} params 29 | */ 30 | async execute(params) { 31 | Util.interactionToMessage(params); 32 | 33 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 34 | }, 35 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/Unlock.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/Unlock.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels), 18 | en: new SlashCommandBuilder() 19 | .setName(prefixCommand.name.en) 20 | .setDescription(prefixCommand.description.en) 21 | .setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels) 22 | }, 23 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 24 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 25 | 26 | /** 27 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 28 | * @param {import("../../../Typedef").ExportsRunSlash} params 29 | */ 30 | async execute(params) { 31 | Util.interactionToMessage(params); 32 | 33 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 34 | }, 35 | }; -------------------------------------------------------------------------------- /Commands/Interaction/ContextMenu/Banner.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | ContextMenuCommandBuilder, 4 | ApplicationCommandType 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | 8 | module.exports = { 9 | name: { // Komutun ismi 10 | tr: "Banner", 11 | en: "Banner" 12 | }, 13 | id: "banner", // Komutun ID'si 14 | cooldown: 5, // Komutun bekleme süresi 15 | data: { // Komutun nasıl çalışacağını ayarlama 16 | tr: new ContextMenuCommandBuilder() 17 | .setName("Banner") 18 | .setType( 19 | ApplicationCommandType.User 20 | ), 21 | en: new ContextMenuCommandBuilder() 22 | .setName("Banner") 23 | .setType( 24 | ApplicationCommandType.User 25 | ) 26 | }, 27 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 28 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 29 | 30 | /** 31 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 32 | * @param {import("../../../Typedef").ExportsRunUserContextMenu} params 33 | */ 34 | async execute(params) { 35 | const user = params.int.targetUser; 36 | 37 | Util.interactionToMessage(params, { 38 | mentions: { 39 | user 40 | } 41 | }); 42 | 43 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /Commands/Interaction/ContextMenu/Pp.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | ContextMenuCommandBuilder, 4 | ApplicationCommandType 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | 8 | module.exports = { 9 | name: { // Komutun ismi 10 | tr: "Profil fotoğrafı", 11 | en: "Profile picture" 12 | }, 13 | id: "pp", // Komutun ID'si 14 | cooldown: 5, // Komutun bekleme süresi 15 | data: { // Komutun nasıl çalışacağını ayarlama 16 | tr: new ContextMenuCommandBuilder() 17 | .setName("Profil fotoğrafı") 18 | .setType( 19 | ApplicationCommandType.User 20 | ), 21 | en: new ContextMenuCommandBuilder() 22 | .setName("Profile picture") 23 | .setType( 24 | ApplicationCommandType.User 25 | ) 26 | }, 27 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 28 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığ 29 | 30 | /** 31 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 32 | * @param {import("../../../Typedef").ExportsRunUserContextMenu} params 33 | */ 34 | async execute(params) { 35 | const user = params.int.targetUser; 36 | 37 | Util.interactionToMessage(params, { 38 | mentions: { 39 | user 40 | } 41 | }); 42 | 43 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /Commands/Prefix/04-RegisterCommands/SetAutoname.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const Util = require("../../../Helpers/Util.js"); 4 | 5 | module.exports = { 6 | name: { // Komutun ismi 7 | tr: "otoisim", 8 | en: "autoname" 9 | }, 10 | id: "isim-özel", // Komutun ID'si 11 | cooldown: 3, // Komutun bekleme süresi 12 | aliases: { // Komutun diğer çağırma isimleri 13 | tr: [ 14 | "otoisim", 15 | "otoname" 16 | ], 17 | en: [ 18 | "autoname", 19 | "auto-name", 20 | ] 21 | }, 22 | description: { // Komutun açıklaması 23 | tr: "Sunucuya giren kullanıcılara otomatik isim verir", 24 | en: "Automatically assigns a name to users who join the server" 25 | }, 26 | category: "", // Komutun kategorisi (yardım menüsü için) 27 | usage: "", // Komutun kullanım şekli 28 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 29 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 30 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 31 | addHelpCommand: false, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunCommands} params 36 | */ 37 | async execute(params) { 38 | 39 | return Util.maps.prefixCommandIds.get("isim-özel").execute(params); 40 | 41 | }, 42 | }; -------------------------------------------------------------------------------- /Commands/Interaction/ContextMenu/Permissions.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | ContextMenuCommandBuilder, 4 | ApplicationCommandType 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | 8 | module.exports = { 9 | name: { // Komutun ismi 10 | tr: "Yetkileri", 11 | en: "Permissions" 12 | }, 13 | id: "yetkiler", // Komutun ID'si 14 | cooldown: 5, // Komutun bekleme süresi 15 | data: { // Komutun nasıl çalışacağını ayarlama 16 | tr: new ContextMenuCommandBuilder() 17 | .setName("Yetkileri") 18 | .setType( 19 | ApplicationCommandType.User 20 | ), 21 | en: new ContextMenuCommandBuilder() 22 | .setName("Permissions") 23 | .setType( 24 | ApplicationCommandType.User 25 | ) 26 | }, 27 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 28 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 29 | 30 | /** 31 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 32 | * @param {import("../../../Typedef").ExportsRunUserContextMenu} params 33 | */ 34 | async execute(params) { 35 | const member = params.int.targetMember; 36 | 37 | Util.interactionToMessage(params, { 38 | mentions: { 39 | member 40 | } 41 | }); 42 | 43 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /Commands/Interaction/ContextMenu/UserInfo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | ContextMenuCommandBuilder, 4 | ApplicationCommandType 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | 8 | module.exports = { 9 | name: { // Komutun ismi 10 | tr: "Kullanıcı bilgisi", 11 | en: "User info" 12 | }, 13 | id: "üyebilgi", // Komutun ID'si 14 | cooldown: 5, // Komutun bekleme süresi 15 | data: { // Komutun nasıl çalışacağını ayarlama 16 | tr: new ContextMenuCommandBuilder() 17 | .setName("Kullanıcı bilgisi") 18 | .setType( 19 | ApplicationCommandType.User 20 | ), 21 | en: new ContextMenuCommandBuilder() 22 | .setName("User info") 23 | .setType( 24 | ApplicationCommandType.User 25 | ) 26 | }, 27 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 28 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 29 | 30 | /** 31 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 32 | * @param {import("../../../Typedef").ExportsRunUserContextMenu} params 33 | */ 34 | async execute(params) { 35 | const member = params.int.targetMember; 36 | 37 | Util.interactionToMessage(params, { 38 | mentions: { 39 | member 40 | } 41 | }); 42 | 43 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /Commands/Interaction/ContextMenu/Stats.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | ContextMenuCommandBuilder, 4 | ApplicationCommandType 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | 8 | module.exports = { 9 | name: { // Komutun ismi 10 | tr: "Mesaj ve ses istatistiği", 11 | en: "Message and voice statistics" 12 | }, 13 | id: "ben", // Komutun ID'si 14 | cooldown: 5, // Komutun bekleme süresi 15 | data: { // Komutun nasıl çalışacağını ayarlama 16 | tr: new ContextMenuCommandBuilder() 17 | .setName("Mesaj ve ses istatistiği") 18 | .setType( 19 | ApplicationCommandType.User 20 | ), 21 | en: new ContextMenuCommandBuilder() 22 | .setName("Message and voice statistics") 23 | .setType( 24 | ApplicationCommandType.User 25 | ) 26 | }, 27 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 28 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 29 | 30 | /** 31 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 32 | * @param {import("../../../Typedef").ExportsRunUserContextMenu} params 33 | */ 34 | async execute(params) { 35 | const member = params.int.targetMember; 36 | 37 | Util.interactionToMessage(params, { 38 | mentions: { 39 | member 40 | } 41 | }); 42 | 43 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /Commands/Prefix/07-JailCommands/Advert.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const Util = require("../../../Helpers/Util.js"); 4 | 5 | const advertLang = { 6 | tr: "Reklam", 7 | en: "Advert" 8 | }; 9 | 10 | module.exports = { 11 | name: { // Komutun ismi 12 | tr: "reklam", 13 | en: "ad" 14 | }, 15 | id: "jail", // Komutun ID'si 16 | cooldown: 3, // Komutun bekleme süresi 17 | aliases: { // Komutun diğer çağırma isimleri 18 | tr: [ 19 | "reklam" 20 | ], 21 | en: [ 22 | "ad", 23 | "ads", 24 | "advert" 25 | ] 26 | }, 27 | description: { // Komutun açıklaması 28 | tr: "Kullanıcıyı \"Reklam\" sebebiyle jaile atar", 29 | en: "Jails the user for \"Advert\" reason" 30 | }, 31 | category: "", // Komutun kategorisi (yardım menüsü için) 32 | usage: "", // Komutun kullanım şekli 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 35 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 36 | addHelpCommand: false, // Komutun yardım komutlarına eklenip eklenmeyeceğini gösterir 37 | 38 | /** 39 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 40 | * @param {import("../../../Typedef").ExportsRunCommands} params 41 | */ 42 | async execute(params) { 43 | 44 | params.args.unshift(advertLang[params.language]); 45 | 46 | return Util.maps.prefixCommandIds.get("jail").execute(params); 47 | 48 | }, 49 | }; -------------------------------------------------------------------------------- /Helpers/Localizations/En/Switchs/Commands/Premium.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | use: new Set([ 3 | "use", 4 | "usecode", 5 | ]), 6 | change: new Set([ 7 | "change", 8 | "changecode", 9 | ]), 10 | remain: new Set([ 11 | "time", 12 | "remaining", 13 | "remainingtime", 14 | "remain", 15 | "remaintime", 16 | "expire", 17 | "expiretime", 18 | "expires" 19 | ]), 20 | features: new Set([ 21 | "features", 22 | "feature", 23 | ]), 24 | price: new Set([ 25 | "price", 26 | "pricing", 27 | ]), 28 | ekle: new Set([ 29 | "ekle", 30 | "ekleme", 31 | "add", 32 | "addcode", 33 | "oluştur", 34 | "oluşturma", 35 | ]), 36 | uzat: new Set([ 37 | "uzat", 38 | "uzatma", 39 | "extend", 40 | "extendcode", 41 | ]), 42 | sil: new Set([ 43 | "sil", 44 | "silme", 45 | "delete", 46 | "deletecode", 47 | ]), 48 | sunucu: new Set([ 49 | "sunucu", 50 | "sunucular", 51 | "server", 52 | "servercode", 53 | "servercodes" 54 | ]), 55 | } 56 | 57 | /** 58 | * "premium.js dosyası" Girilen anahtar kelimeye göre switch yapar 59 | * @param {String} switchKey 60 | * @returns {"use" | "change" | "remain" | "features" | "price" | "ekle" | "uzat" | "sil" | "sunucu" | null} 61 | */ 62 | module.exports = function (switchKey) { 63 | for (const key in set) { 64 | if (set[key].has(switchKey)) return key; 65 | } 66 | return null; 67 | } -------------------------------------------------------------------------------- /Commands/Prefix/01-BotCommands/VoteBot.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const allMessages = require("../../../Helpers/Localizations/Index.js"); 3 | const { 4 | topgglink 5 | } = require("../../../settings.json"); 6 | 7 | module.exports = { 8 | name: { // Komutun ismi 9 | tr: "oy", 10 | en: "vote" 11 | }, 12 | id: "oy", // Komutun ID'si 13 | cooldown: 3, // Komutun bekleme süresi 14 | aliases: [ // Komutun diğer çağırma isimleri 15 | "vote" 16 | ], 17 | description: { // Komutun açıklaması 18 | tr: "Bota oy verirsiniz", 19 | en: "You vote for the bot" 20 | }, 21 | category: { // Komutun kategorisi (yardım menüsü için) 22 | tr: "Bot komutları", 23 | en: "Bot commands" 24 | }, 25 | usage: { // Komutun kullanım şekli 26 | tr: "oy", 27 | en: "vote" 28 | }, 29 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 30 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 33 | 34 | /** 35 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 36 | * @param {import("../../../Typedef").ExportsRunCommands} params 37 | */ 38 | async execute({ 39 | msg, 40 | language 41 | }) { 42 | 43 | const { 44 | commands: { 45 | oy: messages 46 | } 47 | } = allMessages[language]; 48 | 49 | return msg.reply( 50 | messages.voteMessage(topgglink) 51 | ); 52 | 53 | }, 54 | }; -------------------------------------------------------------------------------- /Events/Message/MessageDelete.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | Message, 4 | Events 5 | } = require("discord.js"); 6 | const database = require("../../Helpers/Database.js"); 7 | const Util = require("../../Helpers/Util.js"); 8 | 9 | module.exports = { 10 | name: Events.MessageDelete, 11 | /** 12 | * 13 | * @param {Message} msg 14 | */ 15 | async execute(msg) { 16 | 17 | // Eğer mesajın sahibi null ise veya botsa hiçbir şey yapma 18 | if (!msg.author || msg.author.bot) return; 19 | 20 | const guildDatabase = await database.getGuild(msg.guildId); 21 | 22 | const snipeDatabase = guildDatabase.snipe[msg.channelId] ??= {}; 23 | const authorId = msg.author.id; 24 | const messageData = { 25 | content: msg.content, 26 | createdTimestamp: msg.createdTimestamp, 27 | deletedTimestamp: Date.now(), 28 | attachments: { 29 | image: 0, 30 | video: 0, 31 | audio: 0, 32 | text: 0, 33 | font: 0, 34 | others: 0 35 | }, 36 | }; 37 | 38 | // Mesajdaki dosyalarını kontrol eder ve neler olduğunu yazar 39 | let isHaveAttachment = false; 40 | for (const attachment of msg.attachments.values()) { 41 | isHaveAttachment = true; 42 | const [type] = attachment.contentType?.split("/") ?? []; 43 | 44 | messageData.attachments[type in messageData.attachments ? type : "other"] += 1; 45 | } 46 | 47 | // Snipe databasesini düzenle 48 | snipeDatabase.lastUserId = authorId; 49 | snipeDatabase[authorId] = messageData; 50 | 51 | const setObject = { 52 | [`snipe.${msg.channelId}.${authorId}`]: messageData 53 | }; 54 | if (snipeDatabase.lastUserId !== authorId) setObject[`snipe.${msg.channelId}.lastUserId`] = authorId; 55 | 56 | // Snipe databasesini kaydeder 57 | await database.updateGuild(msg.guildId, { 58 | $set: setObject 59 | }); 60 | 61 | }, 62 | }; 63 | -------------------------------------------------------------------------------- /Helpers/Localizations/Tr/Switchs/Commands/Premium.js: -------------------------------------------------------------------------------- 1 | const set = { 2 | use: new Set([ 3 | "kullan", 4 | "kullanım", 5 | "kodkullan", 6 | "use", 7 | "usecode", 8 | ]), 9 | change: new Set([ 10 | "değiş", 11 | "değiştir", 12 | "koddeğiş", 13 | "change", 14 | "changecode", 15 | ]), 16 | remain: new Set([ 17 | "süre", 18 | "sürekod", 19 | "zaman", 20 | "kalan", 21 | "kalanzaman", 22 | "time", 23 | "remaining", 24 | "remainingtime", 25 | "remain", 26 | "remaintime", 27 | "expire", 28 | "expiretime", 29 | "expires" 30 | ]), 31 | features: new Set([ 32 | "özellik", 33 | "özellikler", 34 | "yenilik", 35 | "yenilikler", 36 | "features", 37 | "feature", 38 | ]), 39 | price: new Set([ 40 | "fiyat", 41 | "ücret", 42 | "fiyatlandırma", 43 | "price", 44 | "pricing", 45 | ]), 46 | ekle: new Set([ 47 | "ekle", 48 | "ekleme", 49 | "add", 50 | "addcode", 51 | "oluştur", 52 | "oluşturma", 53 | ]), 54 | uzat: new Set([ 55 | "uzat", 56 | "uzatma", 57 | "extend", 58 | "extendcode", 59 | ]), 60 | sil: new Set([ 61 | "sil", 62 | "silme", 63 | "delete", 64 | "deletecode", 65 | ]), 66 | sunucu: new Set([ 67 | "sunucu", 68 | "server", 69 | "servercode", 70 | "servercodes" 71 | ]), 72 | } 73 | 74 | /** 75 | * "premium.js dosyası" Girilen anahtar kelimeye göre switch yapar 76 | * @param {String} switchKey 77 | * @returns {"use" | "change" | "remain" | "features" | "price" | "ekle" | "uzat" | "sil" | "sunucu" | null} 78 | */ 79 | module.exports = function (switchKey) { 80 | for (const key in set) { 81 | if (set[key].has(switchKey)) return key; 82 | } 83 | return null; 84 | } -------------------------------------------------------------------------------- /Commands/Slash/7-JailCommands/Unjail.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/07-JailCommands/Unjail.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Jail'den çıkarılacak üye") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("Member to be unjailed") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | member 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Prefix/04-RegisterCommands/BotRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "bot", 7 | en: "bot" 8 | }, 9 | id: "bot", // Komutun ID'si 10 | cooldown: 2, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "b", 14 | "bot", 15 | "botkayıt", 16 | ], 17 | en: [ 18 | "b", 19 | "bot", 20 | "botregister", 21 | ] 22 | }, 23 | description: { // Komutun açıklaması 24 | tr: "Botu kayıt eder", 25 | en: "Register the bot" 26 | }, 27 | category: { // Komutun kategorisi (yardım menüsü için) 28 | tr: "Kayıt komutları", 29 | en: "Register commands" 30 | }, 31 | usage: { // Komutun kullanım şekli 32 | tr: "bot <@bot veya Bot ID'si> [Yeni ismi]", 33 | en: "bot <@bot or Bot ID> [New name]" 34 | }, 35 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 36 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 37 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 38 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 39 | 40 | /** 41 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 42 | * @param {import("../../../Typedef").ExportsRunCommands} params 43 | */ 44 | async execute({ 45 | alisa, 46 | msg, 47 | guildDatabase, 48 | guildMe, 49 | guild, 50 | msgMember, 51 | language, 52 | errorEmbed, 53 | args 54 | }) { 55 | return new Register({ 56 | msgOrInt: msg, 57 | guildDatabase, 58 | guild, 59 | msgMember, 60 | guildMe, 61 | language, 62 | registerType: "bot", 63 | alisa, 64 | errorEmbed 65 | }).checkControlsAndRegister(args); 66 | }, 67 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/Unmute.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/05-ModerationCommands/Unmute.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Susturması kaldırılacak üye") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("Member to be unmuted") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | member 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/Unregister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/04-RegisterCommands/Unregister.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Kayıtsıza atılacak üye") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("The member to be unregistered") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | member 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/MemberNames.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/MemberNames.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("İsimleri gösterilecek kullanıcı") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("User whose names will be shown") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | user 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/6-AuthorizedCommands/Suspicious.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/06-AuthorizedCommands/Suspicious.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Şüpheliye atılacak üye") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("Member to be thrown to suspicious") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | member 51 | }, 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/Afk.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/Afk.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addStringOption(option => option 17 | .setName("sebep") 18 | .setDescription("AFK olma sebebiniz") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addStringOption(option => option 25 | .setName("reason") 26 | .setDescription("Your reason for being AFK") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let reason; 39 | switch (params.language) { 40 | case "tr": 41 | reason = params.int.options.getString("sebep"); 42 | break; 43 | case "en": 44 | reason = params.int.options.getString("reason"); 45 | break; 46 | } 47 | reason ||= ""; 48 | 49 | Util.interactionToMessage(params, { 50 | message: { 51 | content: reason 52 | } 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/9-FunCommands/Spotify.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/09-FunCommands/Spotify.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Spotify dinleyen üye") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("Member listening to Spotify") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | member ||= params.int.member; 48 | 49 | Util.interactionToMessage(params, { 50 | main: { 51 | args: [member.id], 52 | } 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/Snipe.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/Snipe.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Silinen son mesajını görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("The user whose last message you want to see") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | mentions: { 50 | user 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/Unban.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/05-ModerationCommands/Unban.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addStringOption(option => option 17 | .setName("üye_id") 18 | .setDescription("Yasaklanması kaldırılacak üyenin ID'si") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addStringOption(option => option 25 | .setName("member_id") 26 | .setDescription("ID of the member to be unbanned") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let memberId; 39 | switch (params.language) { 40 | case "tr": 41 | memberId = params.int.options.getString("üye_id"); 42 | break; 43 | case "en": 44 | memberId = params.int.options.getString("member_id"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | main: { 50 | args: [memberId] 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/Me.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/Me.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Bilgilerini görmek istediğiniz üye") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("Member whose information you want to see") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | member ||= params.int.member; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | member 52 | } 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Handlers/LoadEvents.js: -------------------------------------------------------------------------------- 1 | const { Client } = require("discord.js"); 2 | const fs = require("fs"); 3 | const pathModule = require("path"); 4 | 5 | /** 6 | * 7 | * @param {Client} client - Discord.js client nesnesi 8 | * @param {String} dirname - - Komutların bulunduğu dizin 9 | * @param {Boolean} printConsole - Konsola hata mesajı yazdırma durumu (Eğer false ise sadece hataların olduğu bir dizi döner) 10 | * @returns {?Array} - Komutları yükler ve dosyaya kaydeder (Eğer hata varsa bir dizi döner) 11 | */ 12 | module.exports = (client, dirname, printConsole) => { 13 | 14 | client.removeAllListeners(); // Bütün eventleri kaldır 15 | 16 | const result = []; 17 | 18 | function printError(error, onlyConsole = false) { 19 | if (onlyConsole || printConsole) { 20 | console.error(error); 21 | } else { 22 | result.push(`- **${error.match(/(?<=! )\S+/)?.[0] || error}**`); 23 | } 24 | } 25 | 26 | function loadEvents(path) { 27 | let files; 28 | 29 | try { 30 | files = fs.readdirSync(path); 31 | } catch (error) { 32 | printError(error, true); 33 | return; 34 | } 35 | 36 | for (const file of files) { 37 | const filePath = pathModule.resolve(path, file); 38 | if (fs.lstatSync(filePath).isDirectory()) { 39 | // Eğer dosya bir klasör ise onun da içini kontrol et 40 | loadEvents(filePath); 41 | } else if (file.endsWith(".js")) { 42 | try { 43 | delete require.cache[require.resolve(filePath)]; 44 | 45 | const command = require(filePath); 46 | client[command.once ? "once" : "on"](command.name, (...args) => command.execute(...args)); 47 | } catch (error) { 48 | printError(`! ${file} adlı komut yüklenirken bir hata oluştu!`); 49 | printError(error, true); 50 | } 51 | } 52 | } 53 | } 54 | loadEvents(pathModule.resolve(dirname, "Events")); 55 | 56 | if (!printConsole) { 57 | return result; 58 | } 59 | }; 60 | -------------------------------------------------------------------------------- /Commands/Prefix/04-RegisterCommands/MemberRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "kayıt", 7 | en: "member" 8 | }, 9 | id: "kayıt", // Komutun ID'si 10 | cooldown: 2, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "kayıt", 14 | "üyekayıt", 15 | "üye" 16 | ], 17 | en: [ 18 | "member", 19 | "memberregister", 20 | "register", 21 | ] 22 | }, 23 | description: { // Komutun açıklaması 24 | tr: "Kullanıcıyı üye olarak kaydeder", 25 | en: "Registers the person as a member" 26 | }, 27 | category: { // Komutun kategorisi (yardım menüsü için) 28 | tr: "Kayıt komutları", 29 | en: "Register commands" 30 | }, 31 | usage: { // Komutun kullanım şekli 32 | tr: "kayıt <@kişi veya Kişi ID'si> ", 33 | en: "member <@user or User ID> " 34 | }, 35 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 36 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 37 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 38 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 39 | 40 | /** 41 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 42 | * @param {import("../../../Typedef").ExportsRunCommands} params 43 | */ 44 | async execute({ 45 | alisa, 46 | msg, 47 | guildDatabase, 48 | guildMe, 49 | guild, 50 | msgMember, 51 | language, 52 | errorEmbed, 53 | args 54 | }) { 55 | return new Register({ 56 | msgOrInt: msg, 57 | guildDatabase, 58 | guild, 59 | msgMember, 60 | guildMe, 61 | language, 62 | registerType: "member", 63 | alisa, 64 | errorEmbed 65 | }).checkControlsAndRegister(args); 66 | }, 67 | }; -------------------------------------------------------------------------------- /Commands/Slash/8-PremiumCommands/UserLogs.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/08-PremiumCommands/UserLogs.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Bilgilerini görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("User whose information you want to see") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: true, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/Banner.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/Banner.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Bannerini göstermek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("The user whose banner you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | } 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Prefix/04-RegisterCommands/BoyRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "erkek", 7 | en: "boy" 8 | }, 9 | id: "erkek", // Komutun ID'si 10 | cooldown: 2, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "erkek", 14 | "erkekkayıt", 15 | "e" 16 | ], 17 | en: [ 18 | "boy", 19 | "boyregister", 20 | "male", 21 | "maleregister" 22 | ] 23 | }, 24 | description: { // Komutun açıklaması 25 | tr: "Kullanıcıyı erkek olarak kaydeder", 26 | en: "Registers the person as a boy" 27 | }, 28 | category: { // Komutun kategorisi (yardım menüsü için) 29 | tr: "Kayıt komutları", 30 | en: "Register commands" 31 | }, 32 | usage: { // Komutun kullanım şekli 33 | tr: "erkek <@kişi veya Kişi ID'si> ", 34 | en: "boy <@user or User ID> " 35 | }, 36 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 37 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 38 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 39 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 40 | 41 | /** 42 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 43 | * @param {import("../../../Typedef").ExportsRunCommands} params 44 | */ 45 | async execute({ 46 | alisa, 47 | msg, 48 | guildDatabase, 49 | guildMe, 50 | guild, 51 | msgMember, 52 | language, 53 | errorEmbed, 54 | args 55 | }) { 56 | return new Register({ 57 | msgOrInt: msg, 58 | guildDatabase, 59 | guild, 60 | msgMember, 61 | guildMe, 62 | language, 63 | registerType: "boy", 64 | alisa, 65 | errorEmbed 66 | }).checkControlsAndRegister(args); 67 | }, 68 | }; -------------------------------------------------------------------------------- /Commands/Slash/8-PremiumCommands/ShowAllNames.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/08-PremiumCommands/ShowAllNames.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Bilgilerini görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("User whose information you want to see") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: true, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/Pp.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/Pp.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Profil fotoğrafını görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("The user whose profile picture you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/RegisterRank.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/RegisterRank.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Rankını görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("The user whose rank you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/1-BotCommands/CommandHelp.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/01-BotCommands/CommandHelp"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addStringOption(option => option 17 | .setName("komut") 18 | .setDescription("Bilgi almak istediğiniz komutun adını girin") 19 | .setRequired(true) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addStringOption(option => option 25 | .setName("command") 26 | .setDescription("Enter the name of the command you want to get information about") 27 | .setRequired(true) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let commandName; 39 | switch (params.language) { 40 | case "tr": 41 | commandName = params.int.options.getString("komut"); 42 | break; 43 | case "en": 44 | commandName = params.int.options.getString("command"); 45 | break; 46 | } 47 | 48 | Util.interactionToMessage(params, { 49 | main: { 50 | args: [commandName] 51 | } 52 | }); 53 | 54 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 55 | }, 56 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/UserInfo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js") 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/UserInfo.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("üye") 18 | .setDescription("Bilgilerini görmek istediğiniz üye") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("member") 26 | .setDescription("The member whose information you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let member; 39 | switch (params.language) { 40 | case "tr": 41 | member = params.int.options.getMember("üye"); 42 | break; 43 | case "en": 44 | member = params.int.options.getMember("member"); 45 | break; 46 | } 47 | member ||= params.int.member; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | member 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Prefix/04-RegisterCommands/GirlRegister.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Register = require("../../../Helpers/Functions/Register.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "kız", 7 | en: "girl" 8 | }, 9 | id: "kız", // Komutun ID'si 10 | cooldown: 2, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "kız", 14 | "kızkayıt", 15 | "k" 16 | ], 17 | en: [ 18 | "girl", 19 | "girlregister", 20 | "female", 21 | "femaleregister", 22 | "g" 23 | ] 24 | }, 25 | description: { // Komutun açıklaması 26 | tr: "Kullanıcıyı kız olarak kaydeder", 27 | en: "Registers the person as a girl" 28 | }, 29 | category: { // Komutun kategorisi (yardım menüsü için) 30 | tr: "Kayıt komutları", 31 | en: "Register commands" 32 | }, 33 | usage: { // Komutun kullanım şekli 34 | tr: "kız <@kişi veya Kişi ID'si> ", 35 | en: "girl <@user or User ID> " 36 | }, 37 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 38 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 39 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 40 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 41 | 42 | /** 43 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 44 | * @param {import("../../../Typedef").ExportsRunCommands} params 45 | */ 46 | async execute({ 47 | alisa, 48 | msg, 49 | guildDatabase, 50 | guildMe, 51 | guild, 52 | msgMember, 53 | language, 54 | errorEmbed, 55 | args 56 | }) { 57 | return new Register({ 58 | msgOrInt: msg, 59 | guildDatabase, 60 | guild, 61 | msgMember, 62 | guildMe, 63 | language, 64 | registerType: "girl", 65 | alisa, 66 | errorEmbed 67 | }).checkControlsAndRegister(args); 68 | }, 69 | }; -------------------------------------------------------------------------------- /Commands/Slash/3-StatCommands/Channel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/03-StatCommands/Channel.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addChannelOption(option => option 17 | .setName("kanal") 18 | .setDescription("Bilgileri gösterilecek kanal") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addChannelOption(option => option 25 | .setName("channel") 26 | .setDescription("Channel whose message or voice information you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let channel; 39 | switch (params.language) { 40 | case "tr": 41 | channel = params.int.options.getChannel("kanal"); 42 | break; 43 | case "en": 44 | channel = params.int.options.getChannel("channel"); 45 | break; 46 | } 47 | channel ||= params.int.channel; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | channel 52 | } 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Slash/2-InformationCommands/RegisterAuthInfo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | } = require("discord.js"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | const prefixCommand = require("../../Prefix/02-InformationCommands/RegisterAuthInfo.js"); 7 | 8 | module.exports = { 9 | name: prefixCommand.name, // Komutun ismi 10 | id: prefixCommand.id, // Komutun ID'si 11 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 12 | data: { // Komutun verileri 13 | tr: new SlashCommandBuilder() 14 | .setName(prefixCommand.name.tr) 15 | .setDescription(prefixCommand.description.tr) 16 | .addUserOption(option => option 17 | .setName("kullanıcı") 18 | .setDescription("Bilgilerini görmek istediğiniz kullanıcı") 19 | .setRequired(false) 20 | ), 21 | en: new SlashCommandBuilder() 22 | .setName(prefixCommand.name.en) 23 | .setDescription(prefixCommand.description.en) 24 | .addUserOption(option => option 25 | .setName("user") 26 | .setDescription("The user whose register information you want to show") 27 | .setRequired(false) 28 | ) 29 | }, 30 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 31 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 32 | 33 | /** 34 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 35 | * @param {import("../../../Typedef").ExportsRunSlash} params 36 | */ 37 | async execute(params) { 38 | let user; 39 | switch (params.language) { 40 | case "tr": 41 | user = params.int.options.getUser("kullanıcı"); 42 | break; 43 | case "en": 44 | user = params.int.options.getUser("user"); 45 | break; 46 | } 47 | user ||= params.int.user; 48 | 49 | Util.interactionToMessage(params, { 50 | mentions: { 51 | user 52 | }, 53 | }); 54 | 55 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 56 | }, 57 | }; -------------------------------------------------------------------------------- /Commands/Prefix/10-OwnerCommands/UserAndGuildCount.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Util = require("../../../Helpers/Util.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "s-say", 7 | en: "s-say" 8 | }, 9 | id: "s-say", // Komutun ID'si 10 | cooldown: -1, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "s-say" 14 | ], 15 | en: [ 16 | "s-say" 17 | ] 18 | }, 19 | description: { // Komutun açıklaması 20 | tr: "Kaç kullanıcıya ve sunucuya hizmet ettiğini gösterir", 21 | en: "Shows how many users and servers it serves" 22 | }, 23 | category: { // Komutun kategorisi (yardım menüsü için) 24 | tr: "Sahip komutları", 25 | en: "Owner commands" 26 | }, 27 | usage: { // Komutun kullanım şekli 28 | tr: "s-say", 29 | en: "s-say" 30 | }, 31 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 32 | ownerOnly: true, // Komutun sadece sahiplere özel olup olmadığını ayarlar 33 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 34 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunCommands} params 39 | */ 40 | async execute({ 41 | msg, 42 | }) { 43 | 44 | const guildsAndUsers = await msg.client.shard.broadcastEval( 45 | client => ({ guilds: client.guilds.cache.size, users: client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0) }) 46 | ); 47 | 48 | let userCount = 0; 49 | let guildCount = 0; 50 | 51 | for (let i = 0; i < guildsAndUsers.length; i++) { 52 | const shardInfo = guildsAndUsers[i]; 53 | userCount += shardInfo.users; 54 | guildCount += shardInfo.guilds; 55 | } 56 | 57 | return msg.reply( 58 | `• **${Util.toHumanize(guildCount, "tr")}** sunucu ve **${Util.toHumanize(userCount, "tr")}** kullanıcıya hizmet ediyorum!` 59 | ); 60 | 61 | }, 62 | }; -------------------------------------------------------------------------------- /Commands/Slash/7-JailCommands/SetJailRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/07-JailCommands/SetJailRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Jail rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Jail role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/SetBanRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/SetBanRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Ban yetkili rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Ban authorized role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/SetKickRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/SetKickRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Kick yetkili rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Kick authorized role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/SetMuteRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/SetMuteRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Mute yetkili rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Mute authorized role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/7-JailCommands/SetJailAuthRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/07-JailCommands/SetJailAuthRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Jail yetkili rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Jail authorized role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetUnregisterRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetUnregisterRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Kayıtsız rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Unregistered role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/6-AuthorizedCommands/SetSuspiciousRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/06-AuthorizedCommands/SetSuspiciousRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Şüpheli rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Suspicious role") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetAuthorizedRole.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetAuthorizedRole.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addRoleOption(option => option 19 | .setName("rol") 20 | .setDescription("Kayıt yetkilisi rolü") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addRoleOption(option => option 28 | .setName("role") 29 | .setDescription("Authorized role for registration") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let role; 42 | switch (params.language) { 43 | case "tr": 44 | role = params.int.options.getRole("rol"); 45 | break; 46 | case "en": 47 | role = params.int.options.getRole("role"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | role 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/7-JailCommands/SetJailLogChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/07-JailCommands/SetJailLogChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Jail log kanalı") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Jail log channel") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetGuildTag.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetGuildTag.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("tag") 20 | .setDescription("Kayıt tagı (sıfırlamak için: sıfırla)") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("tag") 29 | .setDescription("Registration tag (to reset: reset)") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let tag; 42 | switch (params.language) { 43 | case "tr": 44 | tag = params.int.options.getString("tag"); 45 | break; 46 | case "en": 47 | tag = params.int.options.getString("tag"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [tag] 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/5-ModerationCommands/SetModLogChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/05-ModerationCommands/SetModLogChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Moderasyon log kanalı") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Moderation log channel") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/6-AuthorizedCommands/SetSuspiciousTime.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/06-AuthorizedCommands/SetSuspiciousTime.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("süre") 20 | .setDescription("Şüpheliye atılması için gereken süre") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("time") 29 | .setDescription("Time required to be sent to suspicious") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let time; 42 | switch (params.language) { 43 | case "tr": 44 | time = params.int.options.getString("süre"); 45 | break; 46 | case "en": 47 | time = params.int.options.getString("time"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [time] 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Prefix/10-OwnerCommands/IBAN.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | EmbedBuilder 4 | } = require("discord.js"); 5 | 6 | module.exports = { 7 | name: { // Komutun ismi 8 | tr: "iban", 9 | en: "iban" 10 | }, 11 | id: "iban", // Komutun ID'si 12 | cooldown: 3, // Komutun bekleme süresi 13 | aliases: { // Komutun diğer çağırma isimleri 14 | tr: [ 15 | "iban" 16 | ], 17 | en: [ 18 | "iban" 19 | ], 20 | }, 21 | description: { // Komutun açıklaması 22 | tr: "IBAN ve Papara bilgilerini gösterir", 23 | en: "Shows IBAN and Papara information" 24 | }, 25 | category: { // Komutun kategorisi (yardım menüsü için) 26 | tr: "Sahip komutları", 27 | en: "Owner commands" 28 | }, 29 | usage: { // Komutun kullanım şekli 30 | tr: "iban", 31 | en: "iban" 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | ownerOnly: true, // Komutun sadece sahiplere özel olup olmadığını ayarlar 35 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 36 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 37 | 38 | /** 39 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 40 | * @param {import("../../../Typedef").ExportsRunCommands} params 41 | */ 42 | async execute({ 43 | msg 44 | }) { 45 | 46 | const embed = new EmbedBuilder() 47 | .setTitle("IBAN ve Papara Bilgileri") 48 | .setDescription( 49 | `**• Banka adı:** Ziraat Bankası\n` + 50 | `**• IBAN:** TR10 0001 0090 1060 4729 8050 02\n` + 51 | `**• Ad Soyad:** Ali İhsan Çelik\n\n` + 52 | `**• Banka adı:** Vakıfbank\n` + 53 | `**• IBAN:** TR68 0001 5001 5800 7306 5088 77\n` + 54 | `**• Ad Soyad:** Ali İhsan Çelik\n\n` + 55 | `**• Papara Numara:** 1836883977\n` + 56 | `**• Papara IBAN:** TR45 0082 9000 0949 1836 8839 77\n` + 57 | `**• Ad Soyad:** Ali İhsan Çelik` 58 | ) 59 | .setColor("Blue") 60 | .setTimestamp(); 61 | 62 | msg.reply({ 63 | embeds: [ 64 | embed 65 | ] 66 | }); 67 | }, 68 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetAgeLimit.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetAgeLimit.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("yaş") 20 | .setDescription("Yaş sınırı (eğer kaldırmak istiyorsanız \"kaldır\" yazın)") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("age") 29 | .setDescription("Age limit (if you want to remove, type \"remove\")") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let age; 42 | switch (params.language) { 43 | case "tr": 44 | age = params.int.options.getString("yaş"); 45 | break; 46 | case "en": 47 | age = params.int.options.getString("age"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [age], 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetRegisterChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetRegisterChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Kayıtların yapılacağı kanal") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Channel where registrations will be made") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/6-AuthorizedCommands/SetVoiceChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/06-AuthorizedCommands/SetVoiceChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Botun giriş yapacağı ses kanalı") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Voice channel that the bot will join") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetGuildSymbol.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetGuildSymbol.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("sembol") 20 | .setDescription("Kayıt sembolü (sıfırlamak için: sıfırla)") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("symbol") 29 | .setDescription("Symbol for registration (to reset: reset)") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let symbol; 42 | switch (params.language) { 43 | case "tr": 44 | symbol = params.int.options.getString("sembol"); 45 | break; 46 | case "en": 47 | symbol = params.int.options.getString("symbol"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [symbol] 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Prefix/10-OwnerCommands/UseCommand.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const Util = require("../../../Helpers/Util.js"); 3 | 4 | module.exports = { 5 | name: { // Komutun ismi 6 | tr: "skomut", 7 | en: "skomut" 8 | }, 9 | id: "skomut", // Komutun ID'si 10 | cooldown: 3, // Komutun bekleme süresi 11 | aliases: { // Komutun diğer çağırma isimleri 12 | tr: [ 13 | "skomut", 14 | "sk" 15 | ], 16 | en: [ 17 | "skomut", 18 | "sk" 19 | ], 20 | }, 21 | description: { // Komutun açıklaması 22 | tr: "Belirtilen komutu yönetici olarak kullanır", 23 | en: "Uses the specified command as an administrator" 24 | }, 25 | category: { // Komutun kategorisi (yardım menüsü için) 26 | tr: "Sahip komutları", 27 | en: "Owner commands" 28 | }, 29 | usage: { // Komutun kullanım şekli 30 | tr: "skomut [Komut argümanları]", 31 | en: "skomut [Command arguments]" 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | ownerOnly: false, // Komutun sadece sahiplere özel olup olmadığını ayarlar 35 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 36 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 37 | 38 | /** 39 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 40 | * @param {import("../../../Typedef").ExportsRunCommands} params 41 | */ 42 | async execute(params) { 43 | 44 | const { 45 | msg, 46 | guild, 47 | args, 48 | language, 49 | errorEmbed 50 | } = params; 51 | 52 | const commandName = args.shift(); 53 | const command = Util.getCommand(Util.maps.prefixCommands.get(language), commandName); 54 | 55 | if (!command) return msg.reply("Komut bulunamadı"); 56 | 57 | // Sunucu sahibini geçici olarak değiştir 58 | const ownerId = guild.ownerId; 59 | guild.ownerId = msg.author.id; 60 | try { 61 | await command.execute(params); 62 | } catch (error) { 63 | errorEmbed(error); 64 | } finally { 65 | // Sunucu sahibini geri değiştir 66 | guild.ownerId = ownerId; 67 | } 68 | }, 69 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetRegisterLogChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetRegisterLogChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Kayıt loglarının yapılacağı kanal") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Channel where registration logs will be made") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/6-AuthorizedCommands/ChangePrefix.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/06-AuthorizedCommands/ChangePrefix.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("prefix") 20 | .setDescription("Sunucunun yeni prefixi (sıfırlamak için: sıfırla)") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("prefix") 29 | .setDescription("New prefix of the server (to reset: reset)") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let prefix; 42 | switch (params.language) { 43 | case "tr": 44 | prefix = params.int.options.getString("prefix"); 45 | break; 46 | case "en": 47 | prefix = params.int.options.getString("prefix"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [prefix] 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetAfterRegisterChannel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetAfterRegisterChannel.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addChannelOption(option => option 19 | .setName("kanal") 20 | .setDescription("Kayıt sonrası mesajların gönderileceği kanal") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addChannelOption(option => option 28 | .setName("channel") 29 | .setDescription("Channel where messages will be sent after registration") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let channel; 42 | switch (params.language) { 43 | case "tr": 44 | channel = params.int.options.getChannel("kanal"); 45 | break; 46 | case "en": 47 | channel = params.int.options.getChannel("channel"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | mentions: { 53 | channel, 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetBotRoles.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetBotRoles.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("roller") 20 | .setDescription("Bot rollerini ayarlamak için etiketleyin veya sıfırlamak için **sıfırla** yazın") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("roles") 29 | .setDescription("Tag the roles to set the bot roles or type **reset** to reset") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let roles; 42 | switch (params.language) { 43 | case "tr": 44 | roles = params.int.options.getString("roller"); 45 | break; 46 | case "en": 47 | roles = params.int.options.getString("roles"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | message: { 53 | content: roles 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetBoyRoles.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetBoyRoles.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("roller") 20 | .setDescription("Erkek rollerini ayarlamak için etiketleyin veya sıfırlamak için **sıfırla** yazın") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("roles") 29 | .setDescription("Tag the roles to set the boy roles or type **reset** to reset") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let roles; 42 | switch (params.language) { 43 | case "tr": 44 | roles = params.int.options.getString("roller"); 45 | break; 46 | case "en": 47 | roles = params.int.options.getString("roles"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | message: { 53 | content: roles 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetGirlRoles.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetGirlRoles.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("roller") 20 | .setDescription("Kız rollerini ayarlamak için etiketleyin veya sıfırlamak için **sıfırla** yazın") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("roles") 29 | .setDescription("Tag the roles to set the girl roles or type **reset** to reset") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let roles; 42 | switch (params.language) { 43 | case "tr": 44 | roles = params.int.options.getString("roller"); 45 | break; 46 | case "en": 47 | roles = params.int.options.getString("roles"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | message: { 53 | content: roles 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetAutoname.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetAutoname.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("isim") 20 | .setDescription("Değiştirilecek isim (, ve kullanılabilir) (sıfırlamak için: sıfırla)") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("name") 29 | .setDescription("The name to be changed (, and can be used) (to reset: reset)") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let name; 42 | switch (params.language) { 43 | case "tr": 44 | name = params.int.options.getString("isim"); 45 | break; 46 | case "en": 47 | name = params.int.options.getString("name"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | main: { 53 | args: [name] 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Slash/4-RegisterCommands/SetMemberRoles.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | SlashCommandBuilder, 4 | PermissionFlagsBits 5 | } = require("discord.js"); 6 | const Util = require("../../../Helpers/Util.js"); 7 | const prefixCommand = require("../../Prefix/04-RegisterCommands/SetMemberRoles.js"); 8 | 9 | module.exports = { 10 | name: prefixCommand.name, // Komutun ismi 11 | id: prefixCommand.id, // Komutun ID'si 12 | cooldown: prefixCommand.cooldown, // Komutun bekleme süresi 13 | data: { // Komutun verileri 14 | tr: new SlashCommandBuilder() 15 | .setName(prefixCommand.name.tr) 16 | .setDescription(prefixCommand.description.tr) 17 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 18 | .addStringOption(option => option 19 | .setName("roller") 20 | .setDescription("Üye rollerini ayarlamak için etiketleyin veya sıfırlamak için **sıfırla** yazın") 21 | .setRequired(true) 22 | ), 23 | en: new SlashCommandBuilder() 24 | .setName(prefixCommand.name.en) 25 | .setDescription(prefixCommand.description.en) 26 | .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) 27 | .addStringOption(option => option 28 | .setName("roles") 29 | .setDescription("Tag the roles to set the member roles or type **reset** to reset") 30 | .setRequired(true) 31 | ) 32 | }, 33 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 34 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 35 | 36 | /** 37 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 38 | * @param {import("../../../Typedef").ExportsRunSlash} params 39 | */ 40 | async execute(params) { 41 | let roles; 42 | switch (params.language) { 43 | case "tr": 44 | roles = params.int.options.getString("roller"); 45 | break; 46 | case "en": 47 | roles = params.int.options.getString("roles"); 48 | break; 49 | } 50 | 51 | Util.interactionToMessage(params, { 52 | message: { 53 | content: roles 54 | } 55 | }); 56 | 57 | return Util.maps.prefixCommandIds.get(this.id).execute(params); 58 | }, 59 | }; -------------------------------------------------------------------------------- /Commands/Prefix/10-OwnerCommands/Events.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const { 3 | EMOJIS 4 | } = require("../../../settings.json"); 5 | const Util = require("../../../Helpers/Util.js"); 6 | 7 | module.exports = { 8 | name: { // Komutun ismi 9 | tr: "event", 10 | en: "event" 11 | }, 12 | id: "event", // Komutun ID'si 13 | cooldown: 3, // Komutun bekleme süresi 14 | aliases: { // Komutun diğer çağırma isimleri 15 | tr: [ 16 | "event" 17 | ], 18 | en: [ 19 | "event" 20 | ], 21 | }, 22 | description: { // Komutun açıklaması 23 | tr: "client.emit fonksiyonunu kullanarak event tetiklersiniz", 24 | en: "You trigger the event using the client.emit function" 25 | }, 26 | category: { // Komutun kategorisi (yardım menüsü için) 27 | tr: "Sahip komutları", 28 | en: "Owner commands" 29 | }, 30 | usage: { // Komutun kullanım şekli 31 | tr: "event ", 32 | en: "event " 33 | }, 34 | care: false, // Komutun bakım modunda olup olmadığını ayarlar 35 | ownerOnly: true, // Komutun sadece sahiplere özel olup olmadığını ayarlar 36 | premium: false, // Komutun sadece premium kullanıcılara özel olup olmadığını ayarlar 37 | addHelpCommand: true, // Komutun yardım komuta eklenip eklenmeyeceğini ayarlar 38 | 39 | /** 40 | * Parametrelerdeki isimlerin ne olduklarını tanımlar 41 | * @param {import("../../../Typedef").ExportsRunCommands} params 42 | */ 43 | async execute({ 44 | msg, 45 | guild, 46 | args, 47 | errorEmbed, 48 | }) { 49 | 50 | const eventName = args.shift(); 51 | 52 | switch (eventName?.toLocaleLowerCase("tr")) { 53 | case "a": 54 | case "add": 55 | case "guildadd": 56 | case "guildmemberadd": 57 | case "memberadd": 58 | const member = msg.mentions.members.first() || await Util.fetchMember(guild, args[0]); 59 | if (!member) return errorEmbed("Lütfen bir üye veya üye ID'si girin"); 60 | 61 | msg.client.emit("guildMemberAdd", member); 62 | break; 63 | 64 | default: 65 | return errorEmbed("Lütfen geçerli bir event adı girin (guildMemberAdd)"); 66 | } 67 | 68 | return msg.react(EMOJIS.yes) 69 | }, 70 | }; --------------------------------------------------------------------------------