modified to use images

This commit is contained in:
Mohammed Ashab Uddin
2020-08-06 14:07:52 +04:00
parent 117e0949d6
commit 54d3e68d87
3 changed files with 89 additions and 41 deletions

View File

@@ -87,11 +87,11 @@ const commands = [
//inputs the logo of the company to website using url of logo
new Command({
//User command
command: 'wg website logo',
command: 'wg website logo <url>',
//function to be executed
callback : logic.onSetLogo
callback : logic.onSetLogo,
requireMedia : true
}),
@@ -180,10 +180,12 @@ const commands = [
}),
new Command({
//User command
command: 'wg product image <product-image>',
command: 'wg product image',
//function to be executed
callback : logic.onSetProductImage
callback : logic.onSetProductImage,
requireMedia: true
}),
];