mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Node 15
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class ApodCommand extends Command {
|
||||
)
|
||||
.setImage(body.media_type === 'image' ? body.url : null)
|
||||
.setURL(body.url)
|
||||
.setFooter(`Image Credits: ${body.copyright ? body.copyright.replace(/\n/g, '/') : 'Public Domain'}`)
|
||||
.setFooter(`Image Credits: ${body.copyright ? body.copyright.replaceAll('\n', '/') : 'Public Domain'}`)
|
||||
.setTimestamp();
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
|
||||
@@ -33,7 +33,7 @@ module.exports = class TimeCommand extends Command {
|
||||
label: 'time zone',
|
||||
prompt: 'Which time zone do you want to get the time of?',
|
||||
type: 'string',
|
||||
parse: timeZone => timeZone.replace(/ /g, '_').toLowerCase()
|
||||
parse: timeZone => timeZone.replaceAll(' ', '_').toLowerCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user