Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {Client} = require('discord.js');
- const bigo_bot=new Client({intents: [1, 512, 32768]});
- const bigo_tok="";
- const bigo_cha_1_nitro="";
- const bigo_cha_2_boost="";
- bigo_bot.on('ready', async () => {
- const bigo_emb = {
- title: 'اختر من القائمة:',
- image: {
- url: 'https://media.discordapp.net/attachments/1376436257277743104/1381647964023291985/Screenshot_2.png'
- },
- color: 0x000000
- };
- const bigo_row_1 = {
- type: 3,
- custom_id: 'options_menu',
- placeholder: 'اختر لمعرفة السعر',
- options: [
- {
- label: 'نـيـتـرو قـيـمـنـق',
- description: 'اضغط لمعرفة اسعار النيتروهات',
- value: 'bigo_nitr'
- }
- ]
- };
- const bigo_row_2 = {
- type: 3,
- custom_id: 'options_menu',
- placeholder: 'اختر لمعرفة السعر',
- options: [
- {
- label: 'سـيـرفــر بـوسـت',
- description: 'اضغط لمعرفة اسعار البوستات',
- value: 'bigo_boss'
- }
- ]
- };
- const bigo_row_nitro_1 = {
- type: 1,
- components: [bigo_row_1]
- };
- const bigo_row_boost_2 = {
- type: 1,
- components: [bigo_row_2]
- };
- (await bigo_bot.channels.fetch(bigo_cha_1_nitro))?.send({embeds: [bigo_emb],components: [bigo_row_nitro_1]}).catch(() => console.error("room id plz"));
- (await bigo_bot.channels.fetch(bigo_cha_2_boost))?.send({embeds: [bigo_emb],components: [bigo_row_boost_2]}).catch(() => console.error("room id plz"));
- });
- bigo_bot.on('interactionCreate', async (interaction) => {
- if (!interaction.isStringSelectMenu()) return;
- if (interaction.customId !== 'options_menu') return;
- let bigo_emb_1;
- switch (interaction.values[0]) {
- case 'bigo_nitr':
- bigo_emb_1 = {
- title: 'نـيـتـرو قـيـمـنـق',
- description: 'شهر قيفت: xx$\nسنه قيفت: xx$',
- image: {
- url: 'https://media.discordapp.net/attachments/1376436257277743104/1381647964023291985/Screenshot_2.png'
- },
- color: 0x000000
- };
- break;
- case 'bigo_boss':
- bigo_emb_1 = {
- title: 'سـيـرفــر بـوسـت',
- description: '14 بوست شهر: xx$\n14 بوست 3 شهور: xx$',
- image: {
- url: 'https://media.discordapp.net/attachments/1376436257277743104/1381647964023291985/Screenshot_2.png'
- },
- color: 0x000000
- };
- break;
- }
- await interaction.reply({
- embeds: [bigo_emb_1],
- ephemeral: true
- });
- });
- bigo_bot.login(bigo_tok).then(() => console.log("BIGO -"+bigo_bot.user.tag)).catch(e => console.error(e));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement