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

No bg.png file #11

Closed
Vaibhav-Naik-26 opened this issue Jul 14, 2022 · 2 comments
Closed

No bg.png file #11

Vaibhav-Naik-26 opened this issue Jul 14, 2022 · 2 comments

Comments

@Vaibhav-Naik-26
Copy link

When nowplaying command is used an error is thrown saying no bg.png file , please add that image file

Error:

/home/runner/all-in-one-discord-bot/node_modules/canvas/lib/image.js:91
  SetSource.call(img, src)
            ^

Error: ENOENT, No such file or directory './bg.png'
    at setSource (/home/runner/all-in-one-discord-bot/node_modules/canvas/lib/image.js:91:13)
    at Image.set (/home/runner/all-in-one-discord-bot/node_modules/canvas/lib/image.js:62:9)
    at /home/runner/all-in-one-discord-bot/node_modules/canvas/index.js:34:15
    at new Promise (<anonymous>)
    at Object.loadImage (/home/runner/all-in-one-discord-bot/node_modules/canvas/index.js:23:10)
    at Object.run (/home/runner/all-in-one-discord-bot/commands/music/nowplaying.js:111:37)
    at Client.<anonymous> (/home/runner/all-in-one-discord-bot/events/message.js:23:24)
    at Client.emit (node:events:402:35)
    at MessageCreateAction.handle (/home/runner/all-in-one-discord-bot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/runner/all-in-one-discord-bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/runner/all-in-one-discord-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (/home/runner/all-in-one-discord-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (/home/runner/all-in-one-discord-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
    at WebSocket.onMessage (/home/runner/all-in-one-discord-bot/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (node:events:390:28)
    at Receiver.receiverOnMessage (/home/runner/all-in-one-discord-bot/node_modules/ws/lib/websocket.js:1059:20) {
  errno: 2,
  code: 'ENOENT',
  path: './bg.png',
  syscall: 'fopen'
}
exit status 1
@Aurea6
Copy link

Aurea6 commented Jul 14, 2022

Use the image (given below) as bg.png file!
It might fix the issue if it doesn't work ask support from their official server.
bg.png file

@Vaibhav-Naik-26
Copy link
Author

hm ok, i wanted the same one

@Vaibhav-Naik-26 Vaibhav-Naik-26 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2022
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

2 participants