Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sry I can't understand.... #10

Open
gryphus0173 opened this issue Feb 4, 2021 · 5 comments
Open

sry I can't understand.... #10

gryphus0173 opened this issue Feb 4, 2021 · 5 comments

Comments

@gryphus0173
Copy link

I was unable to resolve this error.
This is the first time I'm touching the BOT, so it might be an elementary mistake.

Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\gryph\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\gryph\badapplediscordplayer.py", line 87, in on_message
await message.channel.send(frames[int(i)])
File "C:\Users\gryph\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\abc.py", line 935, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
File "C:\Users\gryph\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 247, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message

@gryphus0173
Copy link
Author

I forgot
that's happen when I sent !bad Apple

@ayok01
Copy link

ayok01 commented Feb 5, 2021

I think it's because I ran "videotoframes.py" and didn't match the output file paths.

path = "frames/frame"+str(i*4)+".jpg" #<--- path to folder containing every frame of the video

In my case, I solved it by adding "./".

@elite25el
Copy link

Can you drop the code?

@gryphus0173
Copy link
Author

gryphus0173 commented Feb 6, 2021

Sorry I solved it thank you everyone.
Now working this bot.

@GriLL714
Copy link

GriLL714 commented Feb 6, 2021

how did you solve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants