MalwareWerewolf / RaptorSA

RaptorSA a multi function Discord Js bot.
MIT License
52 stars 53 forks source link

About mute command #18

Closed Lowkik-Sai closed 3 years ago

Lowkik-Sai commented 3 years ago

While i am muting a member,it is coming that Error: val is not a non-empty string or a valid number. val=undefined How to solve this and time is also not defined in mute command like s= ,h=,d=...

MalwareWerewolf commented 3 years ago

Hi @Lowkik-Sai , I tested the command but in my case I am not seeing an error, the command is working as it should:

image

Did you do some changes to the code ? I am asking you this question because there is no variable named "time", there is another variable declared as "mutetime":

image

If you find this error in another case, please provide more details.

Lowkik-Sai commented 3 years ago

I dont do any change and wait i will send you 3 screenshots and check if there is any mistake!!! Screenshot_2020-10-15-16-15-52-44_572064f74bd5f9fa804b05334aa4f912 Once check these screenshots and i do same like you but getting error and thanks for reply🙂 Screenshot_2020-10-15-16-15-41-85 Screenshot_2020-10-15-16-15-24-45

Lowkik-Sai commented 3 years ago

@Cramenorn

MalwareWerewolf commented 3 years ago

Hello @Lowkik-Sai , I think that's a problem with Heroku, from the moment I do not use that kind of platform I cannot be very helpful.

Maybe there is a problem with the node modules not with the code written in the mute.js file. But as I said I do not know the platform.

In a local environment is not throwing exceptions, try to update all modules to see if the error still appears.

For example with Docker I needed to update every package and node to the latest version, with old versions the bot was not working.

Lowkik-Sai commented 3 years ago

Oh ok,but if you know how to solve this error then ping me or dm me : Roc$tarLS109#8861 Thank you!