mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
fix dumb error
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class JishoCommand extends Command {
|
|||||||
if (!body.data.length) return msg.say('Could not find any results.');
|
if (!body.data.length) return msg.say('Could not find any results.');
|
||||||
const data = body.data[0];
|
const data = body.data[0];
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
**${data.japanese[0].word}**
|
**${data.japanese[0].word || data.japanese[0].reading}**
|
||||||
${data.senses[0].english_definitions.join(', ')}
|
${data.senses[0].english_definitions.join(', ')}
|
||||||
`);
|
`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "47.0.2",
|
"version": "47.0.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user