-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added all type of properties code Merge pull request #34 from yahu1031/development
- Loading branch information
Showing
4 changed files
with
1,241 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.