Discord.js机器人未获取带有args名称的图像

时间:2018-10-27 19:39:51

标签: discord.js

命令是这样的:?pokegif Mewtwo Mega X然后它不发送图像。但是当我写?pokegif Mewtwo-megax时,它出现了。但我想把它作为第一个例子

import numpy as np
def sample_Quaternion():
    r = np.random.uniform(0, 1 - 0.001, 3)
    while np.linalg.norm(r) > 1:
        r = np.random.uniform(0, 1 - 0.001, 3) # Just to keep the L2 norm within [0, 1.0)
    w = [np.sqrt(1 - (r[0]*r[0] + r[1]*r[1] + r[2]*r[2]))]
    r = np.concatenate(r, w) # the output of this would represent (x, y, z, w)
    return r

1 个答案:

答案 0 :(得分:0)

  

?pokegif Mewtwo Mega X则不发送图像。但是当我   写出它出现了吗?pokegif Mewtwo-megax。

之所以会这样,是因为文件名是 mewtwo-megax.gif 不是 mewtwo-mega-x.gif

?pokegif Mewtwo MegaX ,而不是说?pokegif Mewtwo MegaX

您可以在pokemonshowdown上查看所有文件名