GithubHelp home page GithubHelp logo

bad-apple-bot's People

Contributors

npcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bad-apple-bot's Issues

sry I can't understand....

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

Evreything set up, but will not run

Pls help anytime wneh i start bot in discord in cmd i see this error

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

Tried the solution given in the last issue

Traceback (most recent call last):
File "C:\Users\username\Desktop\bad apple bot\bad apple discord player.py", line 59, in (module)
cv2.imwrite("frame%d.jpg" % count, image)
NameError: name 'cv2' is not defined

how do i use repl.it

um i see the comments that you could use repl.it or somrthing.
i have no idea how to do this after doing import

Everything set up, but not run

I set everything up following the easy guide commented by 1vs9-standar
I try to run and I get this error

Traceback (most recent call last):
  File "C:\Users\VenyK\Desktop\bad-apple-bot-main\bad-apple-discord-player.py", line 61, in <module>
    client = discord.Client('ODIzODA1NzEwMDQyMzk4NzYx.YFmK2g.1njeNFihMrKssdPskXXXXXXXXXX')
TypeError: __init__() takes 1 positional argument but 2 were given

Unable to run with different video

Can u pls tell me how to run it with different video? Also how to find exact length of video?

I tried to put my video's frame and length and this error showed up
:gnoring exception in on_message
Traceback (most recent call last):
File "C:\Users\priti\PycharmProjects\pythonProject3\venv\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\priti\Pictures\bad-apple-bot-main\bad apple discord player.py", line 88, in on_message
await message.channel.send(frames[int(i)])
File "C:\Users\priti\PycharmProjects\pythonProject3\venv\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\priti\PycharmProjects\pythonProject3\venv\lib\site-packages\discord\http.py", line 247, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In content: Must be 2000 or fewer in length.

help i really don't know what to do

Traceback (most recent call last):
File "main.py", line 21, in
FrameCapture("bad_apple.mp4")
File "main.py", line 15, in FrameCapture
cv2.imwrite("frame%d.jpg" % count, image)
cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-ms668fyv/opencv/modules/imgcodecs/src/loadsave.cpp:753: error: (-215:Assertion failed) !_img.empty() in function 'imwrite'

as i am really new to code i think i just got myself in something too hard but i have to finish it cause now it's a personal challenge

Change Fps

In wich part of the code are the fps determined?

Evreything set up, but will not run

I set everything up following the easy guide commented by 1vs9-standart on
MyDepression2324's issue. I run this file and file explorer acts like it executed but inimitably returns to the foreground window, no new windows or anything appear, not even for a second. So I ran it in pyCharm and got this error


  File "C:\Users\user\Desktop\bad-apple-bot-main\bad apple discord player.py", line 58
    path = "C:\Users\user\Desktop\bad-apple-bot-main/frame"+str(i*4)+".jpg" #<--- path to folder containing every frame of the video
                                                            ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Process finished with exit code 1

This is all I know.

the video to frames not working

so i replaced the bad apple video to some other video didn't touch the code(yes i did rename the video bad_apple.mp4) and i have already downloaded all the modules required. it does not work and i do not know why someone pls help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.