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="token";// هنا حط توكن
- const bigo_cha="roomid";// هنا حط ايدي الروم
- 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_nitro'
- },
- {
- label: 'سـيـرفــر بـوسـت',
- description: 'اضغط لمعرفة اسعار البوستات',
- value: '_bigo_boost'
- }
- ]
- };
- const bigo_row = {
- type: 1,
- components: [bigo_row_1]
- };
- (await bigo_bot.channels.fetch(bigo_cha))?.send({embeds: [bigo_emb],components: [bigo_row]}).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_nitro':
- 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_boost':
- 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