Skip to content

Commit

Permalink
deployment merge 🚀
Browse files Browse the repository at this point in the history
added all type of properties code
Merge pull request #34 from yahu1031/development
  • Loading branch information
yahu1031 committed Jan 5, 2021
2 parents a9b9b2e + c46f43a commit b064397
Show file tree
Hide file tree
Showing 4 changed files with 1,241 additions and 5 deletions.
60 changes: 60 additions & 0 deletions commands/errors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
const Discord = require('discord.js');

// const adblink = 'https://download2032.mediafire.com/stdvudx807sg/hvevxm4zmocjnhd/15_Second_ADB_Installer_v1.5.3.zip';
// const androidimg = 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Android_robot_2014.svg/151px-Android_robot_2014.svg.png';
const flutterimg = 'https://cdn.discordapp.com/attachments/756903745241088011/795994905600196648/Group_38.png';
const licenseimg = 'https://cdn.discordapp.com/attachments/756903745241088011/795996485179015198/file_type_license_1_1.png';
const sdkimg = 'https://cdn.discordapp.com/attachments/756903745241088011/796080023227334666/th-removebg-preview.png';
const dartimg = 'https://cdn.discordapp.com/attachments/756903745241088011/796081901840105572/Group_39.png';
const pluginimg = 'https://cdn.discordapp.com/attachments/756903745241088011/796082433496973322/Group_40.png';

module.exports = {
name: 'error',
description: 'This will give you information about error you will find during installation.',
args: true,
execute(client, message, args) {
if (args[0] === 'help') {
return message.channel.send('**__Usage of adb command__** \n \n Use this command for adb download link for windows. \n > **__Eg__:** `!adb install`\n \nPlease do read the note of this command\'s result');
}
else if (args[0] === 'license') {
return message.reply(new Discord.MessageEmbed()
.setColor('#ff0000')
.setAuthor('Android license error')
.setThumbnail(licenseimg)
// .setDescription('**Android Debug Bridge**(adb) is a versatile command-line tool that lets you communicate with a device. This is recommended version to download.')
.addFields({
name: '\n__Solution 1__\n',
value: '\nAfter installing Flutter in the system, run `flutter doctor --android-license` this command in terminal/cmd. ' +
'Now you will be asked to accept few conditions/policies. Enter `y` on every question. And now you are ready to go.',
}).setTimestamp());
}
else if (args[0] === 'sdk') {
return message.reply(new Discord.MessageEmbed()
.setColor('#ff0000')
.setAuthor('Android SDK error')
.setThumbnail(sdkimg)
// .setDescription('**Android Debug Bridge**(adb) is a versatile command-line tool that lets you communicate with a device. This is recommended version to download.')
.addFields({
name: '\n__Solution 1__\n',
value: '\nAfter installing Flutter in the system, run `flutter doctor --android-license` this command in terminal/cmd. ' +
'Now you will be asked to accept few conditions/policies. Enter `y` on every question. And now you are ready to go.',
}).setTimestamp());
}
else if (args[0] === 'plugin') {
return message.reply(new Discord.MessageEmbed()
.setColor('#ff0000')
.setAuthor('Plugins not Installed')
.setThumbnail(pluginimg)
// .setDescription('**Android Debug Bridge**(adb) is a versatile command-line tool that lets you communicate with a device. This is recommended version to download.')
.addFields({
name: 'Installed but issue?',
value: 'Currently we don\'t have any fix for this issue. Hope in future we will get a working solution for this. You can ignore it if you have already installed them.',
},
{
name: 'Not Installed',
value: 'If you haven\'t installed them yet then follow the steps.\n\n' +
'**1.** Open settings(preferences)',
}).setTimestamp());
}
},
};
6 changes: 3 additions & 3 deletions commands/java.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ module.exports = {
.setThumbnail(javaLogo)
.setDescription('These are the recommended java versions you can install to work with flutter.')
.addFields({
name: 'JRE 8u271',
value: `[**Download from here**](${jreLink} "Download JRE now")\n `,
}, {
name: 'JDK 8u271',
value: `[**Download from here**](${jdkLink} "Download JDK now")`,
}, {
name: 'JRE 8u271',
value: `[**Download from here**](${jreLink} "Download JRE now")\n `,
}).setFooter('You must need an oracle account to download these.')
.setTimestamp());
}
Expand Down
2 changes: 1 addition & 1 deletion commands/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
if (args[0].includes('.')) {
if (property != '') {
const prop = client.flutterData.find(
d => d.name.toLowerCase() === property && d.type === 'property' && d.qualifiedName.toLowerCase().includes(`.${widget}.${property}`),
d => d.name.toLowerCase() === property && d.type != 'class' && d.type != 'constructor' && d.qualifiedName.toLowerCase().includes(`.${widget}.${property}`),
);
const embededLinks = new Discord.MessageEmbed()
.setColor('#46D1FD')
Expand Down
Loading

0 comments on commit b064397

Please sign in to comment.