- KenDayy#0001
- Katılım
- 26 Ağu 2021
- Mesajlar
- 247
- Tepkime puanı
- 124
- Şehir
- Yurtdışı
Herkese Merhaba Kendi Çapımda Owo Botun Shop Komutunu Farkı Bir Şekilde Tasarladım
KOMUT ÖRNEĞİ
KOD:KOMUT ÖRNEĞİ
JavaScript:
const Discord = require('discord.js');
const config = require('../config.json');
const db = require('quick.db');
module.exports = {
name: 'shop',
aliases: ['shp', 's'],
description: 'owo bot shop commands.',
execute: async(client, message, args) => {
switch(args[0]) {
case 'rings':
let ringsEmbed = new Discord.MessageEmbed()
.setColor(config.embedColor)
.setAuthor('OwO Shop: Rings', message.author.avatarURL())
.setDescription(`Purchase a ring to propose to someone!
All rings are the same. Different tiers are available to show off your love!
- \`owo buy {id}\` to buy an item
- \`owo sell {id}\` to sell an item for 75% of its original price
- \`owo marry @user {id}\` to use the ring
════════════════════════════════
\`1\` \`Common Ring\` \`--------------------- 10\` 💵
\`2\` \`Uncommon Ring\` \`------------------ 100\` 💵
\`3\` \`Rare Ring\` \`----------------------- 1K\` 💵
\`4\` \`Epic Ring\` \`---------------------- 10K\` 💵
\`5\` \`Mythical Ring\` \`----------------- 100K\` 💵
\`6\` \`Legendary Ring\` \`------------------ 1M\` 💵
\`7\` \`Fabled Ring\` \`-------------------- 10M\` 💵
`)
.setTimestamp()
.setFooter('Resets in: 0H 0M 0S')
message.channel.send({ embeds: [ringsEmbed] })
break;
case 'wallpapers':
let wallpapersEmbed = new Discord.MessageEmbed()
.setColor(config.embedColor)
.setAuthor('OwO Shop: Wallpapers', message.author.avatarURL())
.setDescription(`Purchase a wallpaper for your profile!
- \`owo shop wp {page}\` to view the wallpaper as images
- \`owo buy {id}\` to buy an item
- \`owo wallpaper\` to view your wallpapers
- \`owo profile set wallpaper {id}\` to use it
════════════════════════════════
\`201\` 🖼 [\`background 1\`](http://battle.owobot.com/background/1.png)\`------------------- 35K\` 💵
\`202\` 🖼 [\`background 2\`](http://battle.owobot.com/background/2.png)\`------------------- 35K\` 💵
\`203\` 🖼 [\`background 3\`](http://battle.owobot.com/background/3.png)\`------------------- 35K\` 💵
\`204\` 🖼 [\`background 4\`](http://battle.owobot.com/background/4.png)\`------------------- 35K\` 💵
\`205\` 🖼 [\`background 5\`](http://battle.owobot.com/background/5.png)\`------------------- 35K\` 💵
\`206\` 🖼 [\`background 6\`](http://battle.owobot.com/background/6.png)\`------------------- 35K\` 💵
\`207\` 🖼 [\`background 7\`](http://battle.owobot.com/background/7.png)\`------------------- 35K\` 💵
\`208\` 🖼 [\`background 8\`](http://battle.owobot.com/background/8.png)\`------------------- 35K\` 💵
\`209\` 🖼 [\`Majestic Corgi\`](http://battle.owobot.com/background/9.png)\`----------------- 35K\` 💵
\`210\` 🖼 [\`Herbs and Plants\`](http://battle.owobot.com/background/10.png)\`--------------- 35K\` 💵
`)
.setTimestamp()
.setFooter('Resets in: 0H 0M 0S')
message.channel.send({ embeds: [wallpapersEmbed] })
break;
case 'weapons':
let weaponsEmbed = new Discord.MessageEmbed()
.setColor(config.embedColor)
.setAuthor('OwO Shop: Weapons', message.author.avatarURL())
.setDescription(`Use your Weapon Shards to purchase weapons and crates!
Weapons are randomly generated every day!
- \`owo buy {id}\` to buy a weapon
- \`owo shop weapon\` to view the weapons
════════════════════════════════
\`100\` <:crate:975793791241949214> \`Weapon Crate\`-------------------- 40\` <:weaponshard:975793791854321664>
\`101\` <:evampstaff:975793788788289556><:fdischarge:975793791527157760> \`Epic Vampiric Staff\`\`---------- 63\` <:weaponshard:975793791854321664>
\`102\` <:eshield:975793791191613493><:ehp:975793792026280026> \`Epic Defender's Aegis\`\`-------- 63\` <:weaponshard:975793791854321664>
\`103\` <:egreatsword:975793791028051978><:ewp:975793790801543198> \`Epic Great Sword\`\`------------- 63\` <:weaponshard:975793791854321664>
\`104\` <:mgaxe:975793791032246282><:ewp:975793790801543198> \`Mythical Glacial Axe\`\`-------- 750\` <:weaponshard:975793791854321664>
\`105\` <:erstaff:975793792114393088><:esprout:975793788322713681> \`Epic Resurrection Staff\`\`------ 63\` <:weaponshard:975793791854321664>
\`106\` <:mgaxe:975793791032246282><:mlifesteal:975793790608625694> \`Epic Glacial Axe\`\`------------- 63\` <:weaponshard:975793791854321664>
\`107\` <:eawand:975793791069978677><:esafeguard:975793788817670154> \`Epic Wand of Absorption\`\`------ 63\` <:weaponshard:975793791854321664>
\`108\` <:mshield:975793791191613493><:latt:975793790885462016> \`Mythical Defender's Aegis\`\`--- 750\` <:weaponshard:975793791854321664>
\`109\` <:erstaff:975793792114393088><:latt:975793790885462016> \`Epic Defender's Aegis\`\`------ 63\` <:weaponshard:975793791854321664>
\`110\` <:eestaff:975793791019671562><:latt:975793790885462016> \`Epic Defender's Aegis\`\`------------ 63\` <:weaponshard:975793791854321664>
`)
.setTimestamp()
.setFooter('Resets in: 0H 0M 0S')
message.channel.send({ embeds: [weaponsEmbed] })
break;
default:
let shopEmbed = new Discord.MessageEmbed()
.setColor(config.embedColor)
.setDescription(`- \`owo buy {id}\` to buy an item
- \`owo sell {id}\` to sell an item for 75% of its original price
════════════════════════════════
- \`${config.prefix}shop rings\`
- \`${config.prefix}shop wallpapers\`
- \`${config.prefix}shop weapons\`
`)
.setTimestamp()
.setFooter('Resets in: 0H 0M 0S')
message.channel.send({ embeds: [shopEmbed] })
break;
}
}
}
Ekli dosyalar
-
shop.png17.1 KB · Görüntüleme: 221
-
shop-rings.png34.4 KB · Görüntüleme: 225
-
shop-rings.png34.4 KB · Görüntüleme: 196
-
shop-wallpapers.png34.4 KB · Görüntüleme: 303
-
shop-weapons.png55.1 KB · Görüntüleme: 204
-
shop-rings.png34.4 KB · Görüntüleme: 188
-
shop-wallpapers.png34.4 KB · Görüntüleme: 236
-
shop-weapons.png55.1 KB · Görüntüleme: 211